[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Using Unicode with FreeType?
From: |
Infro |
Subject: |
[ft] Using Unicode with FreeType? |
Date: |
Sat, 15 May 2010 05:53:53 -0500 |
Hello all,
I'm curious as to why when I try to load charecters that I know are in a
font, and I'm using the unicode char map, and UTF(16/32)/USC-4 as suggested,
and yet I get a glyphindex of 0.
Using arial font, %windir%\fonts\arial.ttf, I've tried to load the Hiragana
'A' or あ, 0x3042 or 12354d.
using
FT_New_Face(Library->FreeTypeLibrary, marshaller->marshal_as<const
char*>(FaceFileName), 0, FacePointer);
FT_Set_Char_Size(FreeTypeFace, 64*Size, 0, DpiX, DpiY);
wchar_t Letter = Text[CharIndex];
FT_Get_Char_Index(FreeTypeFace, Letter);
where Letter is 0x3042, I get a Index of 0, I've tried all 3 charmaps as
well.
I'm using freetype-2.3.12.
Is there perhaps something I'm missing or not understanding?
TIA
Infro.
- [ft] Using Unicode with FreeType?,
Infro <=