[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glyph info
From: |
crusius_at_stanford . edu |
Subject: |
Re: glyph info |
Date: |
Fri, 06 Oct 2000 23:32:19 -0700 |
In reply to Werner LEMBERG <address@hidden>
>
>
>> hi, i have a problem and hope someone can help. my problem is that
>> i need the horizAdvance of the glyphs i'm drawing in an unit not
>> related to the bitmap dimensions. more specifically, i need the
>> horizAdvance in 1/65536 pt units, no matter what is the scale i
>> render the bitmap in (which will normally be on the order of 10
>> pixels wide). is there any simple way to do it
>
>I suppose that you don't mean `scaling' but `resolution'.
>
>Further I assume that you use FreeType 2.
that's right.
>On a per-glyph basis, the field face->glyph->linearHoriAdvance (after
>a call to FT_Load_Glyph) contains the advance width in original font
>units if the flag FT_LOAD_UNSCALED_LINEAR has been used. Together
>with face->units_per_EM you should be able to do what you want.
that flag does not seem to exist (although it is mentioned in the
documentation). are you talking about FT_LOAD_NO_SCALE instead? if i
use that flag i always get linearHoriAdvance=0 for cmr10.pfb... the
horiAdvance seems to be correct for the font, though.
--
Cesar Augusto Rorato Crusius __o __o __o __o __o
Stanford University _`\<, _`\<, _`\<, _`\<, _`\<,
e-mail:address@hidden (_)/(_) (_)/(_) (_)/(_) (_)/(_) (_)/(_)
www.stanford.edu/~crusius
o _ _ _
__o __o __o __o /\_ _ \\o (_)\__/o (_)
_`\<, _`\<, _`\<, _`\<, _>(_) (_)/<_ \_| \ _|/' \/
(_)/(_) (_)/(_) (_)/(_) (_)/(_) (_) (_) (_) (_)' _\o_
He who sacrifices functionality for ease of use
Loses both and deserves neither
- glyph info, crusius_at_stanford . edu, 2000/10/01
- Re: glyph info,
crusius_at_stanford . edu <=
- Re: glyph info, crusius_at_stanford . edu, 2000/10/08