[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] How to map a char to glyph with pcf
From: |
duhuanpeng |
Subject: |
[ft-devel] How to map a char to glyph with pcf |
Date: |
Tue, 20 Mar 2018 20:40:16 +0800 |
hi,
I find it, I cannot use FT_Load_Char() to load the glyph from a pcf file.
(face->charmaps[0]->encoding is zero)
and I make a dirty hack to do this mapping before using FT_Load_Glyph()
Like:
https://paste.ubuntu.com/p/T3M2mHVYg4/
it works.
My question is, is there any better way to map the "char" to "glyph" using
The freetype2 libiray.
duhuanpeng
song14.pcf.bmp.xz
Description: Binary data
gothic14.pcf.Z
Description: Binary data