Hello Charles,
have you tried using the FT_LOAD_NO_BITMAP flag to prevent
loading embedded bitmaps from the font ?
Hope this helps,
- David Turner
- The FreeType Project (www.freetype.org)
Charles Wang a écrit :
Hi,
Using FT Lib which version is 2.2.1.
************* Code start ****************
error = FT_New_Face(library, "SimHei.ttf", 0, &face);
error = FT_Select_Charmap(face, FT_ENCODING_UNICODE);
error = FT_Set_Char_Size(face, 16 << 6, 16 << 6, 96, 96);
error = FT_Set_Pixel_Sizes(face, 16, 16);
error = FT_Load_Char(face, uwCode, FT_LOAD_RENDER);
************* Code end ****************
The render is OK, I can draw the font correctly, BUT,
If I render a ASCII (uwCode = 'A' ) , face->glyph->bitmap.pixel_mode = 2
If I render a CJK char (a Chinese charactor, unicode), face->glyph->
bitmap.pixel_mode = 1
If I set the font size to 22x22, or bigger, then display CJK
charactor, face->glyph->bitmap.pixel_mode = 2
Request:
I just want to render CJK charactor (unicode) which pixel mode is GRAY.
But now if I render small size font (less than 22x22), the pixel mode
is always MONO
Thanks and Regards
Charles
------------------------------------------------------------------------
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype
***********************************************************************************
Information contained in this email message is confidential and may be
privileged, and is intended only for use of the individual or entity named
above. If the reader of this message is not the intended recipient, or the
employee or agent responsible to deliver it to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this communication
in error, please immediately notify the [EMAIL PROTECTED] and destroy the
original message.
***********************************************************************************
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype