[Harfbuzz-indic] Malayalam rendering with latest Harfbuzz
suzuki toshiya
mpsuzuki at hiroshima-u.ac.jp
Wed Aug 3 01:22:48 PDT 2011
Hi,
Bernard Massot wrote:
> On Wed, Aug 03, 2011 at 12:47:12PM +0530, Pravin Satpute wrote:
>> I think good to add these test cases in test-complex-shape.c
>> like
>> { 0x0915, 0x094d, 0 }, -> Unicode
>> { 0x0080, 0x0051, 0 } -> Expected glyph ids from fonts
>>
>> Behdad any quick trick to get glyphs ids from fonts?
> Here is my non-quick trick : dump font in XML format with the "ttx"
> program and look for your glyphs in "id" attributes of <GlyphID> tags in
> the generated .ttx file. Then you have to convert them to hexadecimal.
>
> I'm interested in a more productive way to achieve that.
Excuse me, what required is a tool converting an Unicode text to
a serie of glyph IDs for a given font, something like:
$ ./get-gids-of-font-by-unicode-str.exe test_font.ttf < sample.utf8
gid128
gid81
...
# There might be some discussion if the input like "U+xxxx" is better
# or raw Unicode text is better.
If the glyph IDs with no consideration of OpenType layout are sufficient,
it is not so difficult to make such tool with FreeType2. I will try.
Also it is not so difficult to make such tool by Perl if the dependency
to TTF module is acceptable.
Regards,
mpsuzuki
More information about the HarfBuzz-Indic
mailing list