[Harfbuzz-indic] easy test case generation with FontForge scripts

Bernard Massot bmassot at free.fr
Tue Nov 1 12:14:13 PDT 2011


Hi Pravin,

Thank you for showing interest in my scripts.

On Mon, Oct 31, 2011 at 06:12:09PM +0530, pravin.d.s at gmail.com wrote:
> Just problem i found with this is, when we edit fonts (.ttf) in fontforge
> it shows does not show correct glyph index.
> 
> Example:
> Open Lohit-Devanagari.ttf with fontforge, view in compact mode, check क
> glyph index it shows 67 (in decimal).
According to FF's doc, this number is "the encoding of the glyph in the
current font expressed in decimal". I'm not sure what it means, but it's
not the glyph index. To get what FF thinks is the glyph index, use :
Print(GlyphInfo("GlyphIndex")) # printed on stdout
That's what my program uses, and it gives correct results.

> Now open same font with ftdemo program ftgrid
> $ftgrid -f 67 ppem 200
> /usr/share/fonts/lohit-devanagari/Lohit-Devanagari.ttf it show ओ glyph
GlyphInfo("GlyphIndex") agrees with ftgrid.

So I believe my program is reliable.

Regards,
-- 
Bernard Massot


More information about the HarfBuzz-Indic mailing list