You are not logged in.
Pages: 1
Hello,
i think that :
GetLineHeight would probably be tm.tmHeight + tm.tmExternalLeading not tm.tmHeight + tm.tmInternalLeading + tm.tmExternalLeading
tmInternalLeading
Specifies the amount of leading (space) INSIDE the bounds set by the tmHeight member. Accent marks and other diacritical characters may occur in this area. The designer may set this member to zero.
so when you add tm.tmInternalLeading it is counted two times.
Offline
It is true, from the font definition perspective.
My concern is that we need some blank space between the lines, for proper rendering.
So I've used this formula to add a little space, so line height returns 1.125 of actual glyph height:
fLineHeight := ((tm.tmHeight+tm.tmExternalLeading)*9)shr 3;
Offline
Pages: 1