[ft] Rendering chinese characters
2012-06-26 06:37:16 GMT
I m using the following piece of code for rendering the Chinese character and the font file is ming_uni.ttf:
FT_Init_FreeType( &library );
FT_Set_Char_Size(temp_ptr->face,16*64,16*64 ,500,500 );
slot = face->glyph;
glyph_index = FT_Get_Char_Index(face,0x00027267);
printf("Glyph index is %d is \n",glyph_index);
when I printed the glyph_index ,it is zero…bt if I use 0xF900 instead of 0x00027267 ,I m able to see the Chinese character..
My doubt is why the FT_Get_Char_Index does not display Chinese character for Unicode value 0x00027267?
Is that the problem of font file ,I m using?
Why I m nt able to get the glyph (or charmap) of 0x00027267 and similar values?
Please help me……….
Thanks in adv.
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
_______________________________________________ Freetype mailing list Freetype <at> nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype