[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] width problem
From: |
Werner LEMBERG |
Subject: |
Re: [ft] width problem |
Date: |
Tue, 23 Aug 2011 23:02:39 +0200 (CEST) |
> When I get width array of font with Free Type (say Shruti) I get
> array of 1491 glyphs/widths.
>
> When I try to add same font to pdf document with Adobe I get font
> dictionary with different widths (values and sizes). Is there some
> scaling that I'm missing?
>
> I use ::FT_Load_Glyph(ftFace, glyphIndex, FT_LOAD_NO_SCALE) to load
> glyph in slot and ftFace->glyph->metrics.width to access width.
This is far too generic. Adobe might
. do font subsetting
. use a different default width on which all other metric values
are based
. use fix metrics from TrueType to generic PostScript units
. use a scaling matrix for whatever reasons
etc., etc.
Please remember that FreeType is *not* a library to manipulate fonts.
Its primary usage is to *render* fonts.
Werner