[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] A question about how to get glyph index
From: |
Tom Kacvinsky |
Subject: |
Re: [Devel] A question about how to get glyph index |
Date: |
Wed, 5 Sep 2001 07:07:52 -0400 (EDT) |
Already added to CVS. There is now a FT_Get_Name_Index(FT_Face, FT_STring*)
function. It returns a glyph index for a given glyph name. It works for the
Type 1 and CFF drivers, so you can use it this for for reencoding Type 1/1C
fonts in PDF files.
Tom
On Wed, 5 Sep 2001, [gb2312] WangYi(ÍõÒã) wrote:
> Hi all,
>
> FT2 only provides FT_Get_Char_Index(FT_Face, FT_ULong) to get the glyph
> index. But in PDF, a font definition usually has a /Encoding attribute
> and we should take it as standard. So the best way to access the glyph
> is through the char name, not char code. I think FT2 should provide
> another function to do this, like that:
>
> FT_EXPORT(FT_UInt) FT_Get_Char_Index(FT_Face, FT_String*);
>
> Do you agree with me?
>
> Jacky/09/05
>
> _______________________________________________
> Devel mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/devel
>