[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] FW: Getting the charcode Value when the Glyph ID is known
From: |
mpsuzuki |
Subject: |
Re: [ft] FW: Getting the charcode Value when the Glyph ID is known |
Date: |
Sat, 30 Apr 2011 04:29:59 +0900 |
On Fri, 29 Apr 2011 12:01:54 +0000
"Balraj Balakrishnan, Integra-PDY, IN"
<address@hidden> wrote:
>How can I achieve the glyph image with its proper positioning, in order
>to tackle this scenario?
Sorry, I could not understand it from your message, what is
your scenario? You want to do something like OCR?
>Can you help me with other alternatives which are there to iterate all
>the glyphs present in the font file irrespective of the cmap table.
You can get the maximum glyph index from FT_Face->num_glyphs.
Scanning like
for ( gid = 0; gid < face->num_glyphs; gid ++ )
{
/* blah blah blah */
}
is very popular in various softwares using FT2.
Regards,
mpsuzuki