|
Re: [ft] Origin and Line spacing: msg#00058fonts.freetype.user
> I try to set the position of my text like we can do it under windows > with GDI or .NET (font origin at the top-left) and i got two problem > [...] Have a look at the new ftdiff demo program which shows how to position multi-line text with FreeType. > First, i need to move the origin a the top-left corner of the font for > drawing like a GDI DrawText. (I used glyph->metrics.vertAdvance to move > my Y origin, but i dont know if is a good choice). Using `vertAdvance' is bad. This is a metrics for scripts written vertically (and it is documented as such). Most fonts don't contain info about the line spacing -- additionally, it's really a matter of taste. s a rule of thumb, similar to TeX, just multiply the design size by 1.2 to get the line spacing. For example, a 12pt font should have about 14pt line spacing. BTW, slightly bigger factors often give more pleasant results (at least in printed books). Werner |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ft] New FreeType proofing tool: ftdiff: 00058, David Turner |
|---|---|
| Previous by Thread: | [ft] Origin and Line spacingi: 00058, Sebastien LEIX |
| Next by Thread: | [ft] ftdiff: 00058, Michael Zedler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |