freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Problem with CMap Research


From: Werner LEMBERG
Subject: Re: [ft-devel] Problem with CMap Research
Date: Sat, 23 Dec 2006 07:55:08 +0100 (CET)

> I use FreeType with an TTF Arial font
> and i want to get the glyph "quoterigh".

You mean `quoteright', I think.

> (Unicode value 0x2019 --> 0x92 --> Glyph Index 182 In FontLab).

What's the `0x92'?

> With freeType, i can't get this glyph in the Cmap Format4,

Mhmm, this font contains *two* cmap format 4 tables.  What you mean is
that you want to access the cmap for the PID/EID pair (3,1) -- this is
Microsoft Unicode.  It is *completely irrelevant* for FreeType which
format this table actually has -- more recent fonts will most probably
use format 12 probably to cover character codes outside of the BMP of
Unicode also.

> (i get the glyph 0) but when i try to put the value 182 in the
> fonction "FT_Load_Glyph", i get the real "quoterigh", not the
> default glyph.
>
> Glyph.m_ID =
> FT_Get_Char_Index((m_vect_FT_FontFace.at(m_UI32_CurrentFace)),146);

Indeed, there is no glyph for character code 146.  What about using
0x2019 instead of 146?


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]