freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] How to map a char to glyph with pcf


From: duhuanpeng
Subject: Re: [ft-devel] How to map a char to glyph with pcf
Date: Sat, 24 Mar 2018 12:58:36 +0800

Hi, I still using my "ad-hoc" code to dealing this mapping. XD

>> [3] buf --> Glyph Index
>
>Yes.  In FreeType, after selecting the character map, you can now use 
>`FT_Load_Char' to map a (16bit) code value in `buf' to a glyph index.

Do you mean :
 FT_Error FT_Select_Charmap(FT_Face      face, FT_Encoding  encoding);

I tried it,
   https://paste.ubuntu.com/p/trZNMgwccR/
but I get error code 6.

Is there some sample code?

    duhuanpeng

Attachment: gothic14.pcf.Z
Description: Binary data

Attachment: song14.pcf.Z
Description: Binary data

Attachment: gotm14pcfZ.c
Description: Text document

Attachment: gothic14pcfZ.c
Description: Text document

Attachment: song14pcfZ.c
Description: Text document

Attachment: gotm14.pcf.Z
Description: Binary data


reply via email to

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