How to make a font height equal to "tmHeight"?
-
Hi, When I printed a text on screen, I saw the text height equal to "tmHeight- tmInternalLeading". For example: I printed a text size "8" on screen, I got the actual text height "tmHeight - tmInternalLeading" which is less than "8". I printed a letter of "H" which height is less than "8", when I used "Arial" true type font of size "8". Is there a way to make a actual text height (on screen) (ascent) equal to "8"? Best,
-
Hi, When I printed a text on screen, I saw the text height equal to "tmHeight- tmInternalLeading". For example: I printed a text size "8" on screen, I got the actual text height "tmHeight - tmInternalLeading" which is less than "8". I printed a letter of "H" which height is less than "8", when I used "Arial" true type font of size "8". Is there a way to make a actual text height (on screen) (ascent) equal to "8"? Best,
8 points, 8 pixel, 8em? And where?
transoft wrote:
Is there a way to make a actual text height (on screen) (ascent) equal to "8"?
Yes, by setting the font-size. Do keep in mind that different characters have different heights', unless you're using a monospace font like courier.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
8 points, 8 pixel, 8em? And where?
transoft wrote:
Is there a way to make a actual text height (on screen) (ascent) equal to "8"?
Yes, by setting the font-size. Do keep in mind that different characters have different heights', unless you're using a monospace font like courier.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
Thanks for reply. Maybe I did not make clear. I set font size to be 8 unit which should be printed on screen to be (suppose) 100. But I got 90 (letter height) which equals to ascent. It looks like font size is defined to be equal to "ascent + InternalLeading". My question is: Is there a way to let (letter height) to be "ascent + InternalLeading".
-
Thanks for reply. Maybe I did not make clear. I set font size to be 8 unit which should be printed on screen to be (suppose) 100. But I got 90 (letter height) which equals to ascent. It looks like font size is defined to be equal to "ascent + InternalLeading". My question is: Is there a way to let (letter height) to be "ascent + InternalLeading".
transoft wrote:
Maybe I did not make clear.
True. Which "unit"? A pixel can be a unit, a centimeter can be one. Printed on screen? On a form as a label? Drawed as a bitmap?
transoft wrote:
It looks like font size is defined to be equal to "ascent + InternalLeading".
Where did you get that information? The font size is usually set by specifying the size property, as shown here[^]. Can you post some code that explains what you're doing?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
8 points, 8 pixel, 8em? And where?
transoft wrote:
Is there a way to make a actual text height (on screen) (ascent) equal to "8"?
Yes, by setting the font-size. Do keep in mind that different characters have different heights', unless you're using a monospace font like courier.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
visit this [url=http://www.jbbuilders.org.uk/jb/\]roofers in london[/url]
-
visit this [url=http://www.jbbuilders.org.uk/jb/\]roofers in london[/url]
-
transoft wrote:
Maybe I did not make clear.
True. Which "unit"? A pixel can be a unit, a centimeter can be one. Printed on screen? On a form as a label? Drawed as a bitmap?
transoft wrote:
It looks like font size is defined to be equal to "ascent + InternalLeading".
Where did you get that information? The font size is usually set by specifying the size property, as shown here[^]. Can you post some code that explains what you're doing?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
The information -- is correct. There is internal leading (rhymes with sledding) and external leading. They are there to pad the character within its space and to provide space between lines for things like ascenders and descenders, which exceed the character's space.