freetype
[Top][All Lists]
Advanced

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

Re: [ft] Rendering chinese characters


From: daya.k58
Subject: Re: [ft] Rendering chinese characters
Date: Tue, 26 Jun 2012 10:25:33 +0000

Hi mpsuzuki,
using ftview ,I m able to see BMP characters,But  my intention is to display 
chinese characters in non-BMP plane.......

when I give  the following command
 ftview  -m '豈' font ming.ttf  ,I m able to display the character  as this 
character belongs BMP plane...
ftview -m 'text' fontfile 
In ftview  ,is there any  option to give 'unicode point' as argument?
(because in the place of text in ftview command ,I have to copy the  equivalent 
character of 0x00027267,which I am not able to.....I m able copy only 
squares!!! ) 

Thanks in adv...............

Thanks& Regards,
Daya




________________________________________
From: suzuki toshiya address@hidden
Sent: Tuesday, June 26, 2012 1:06 PM
To: Daya Devi K (WT01 - Product Engineering Services)
Cc: address@hidden
Subject: Re: [ft] Rendering chinese characters

In addition, if you're working on Unix like systems, please try "ftview" 
command.
It will show the glyphs in the font without consideration if they are 
accessible via some character code,
so it might be helpful to know if the font supports non-BMP characters.

Regards,
mpsuzuki

suzuki toshiya wrote:
> Hi,
>
> Basically, if glyph index returned by FT_Get_Char_Index() is zero,
> the font is expected to lack the glyph for the character code passed
> to FT_Get_Char_Index().
>
> Regards,
> mpsuzuki
>
> address@hidden wrote:
>> Hi,
>>
>> I don't know how to check whether a character is present in the font file or 
>> not....
>> pls anyone let me know the way to find whether a character is present in the 
>> font file or not....
>>
>>
>> Thanks and regards,
>> Daya
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: suzuki toshiya [mailto:address@hidden
>> Sent: Tuesday, June 26, 2012 12:14 PM
>> To: Daya Devi K (WT01 - Product Engineering Services)
>> Cc: address@hidden
>> Subject: Re: [ft] Rendering chinese characters
>>
>> Hi,
>>
>> Are you sure that your font file (I don't know what it is) include the 
>> character for +0x00027267?
>> If you are sure, how you have checked it?
>>
>> Regards,
>> mpsuzuki
>>
>> address@hidden wrote:
>>> Hi,
>>>
>>>     I m using the following piece of code for rendering the  Chinese 
>>> character and the font file is ming_uni.ttf:
>>>
>>> {
>>> FT_Library  library;
>>>   FT_GlyphSlot slot;
>>> FT_Face face;
>>> FT_Init_FreeType( &library );
>>> FT_New_Face( library,"/usr/local/share/ming.ttf",0,&face);
>>> 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.
>>>
>>>
>>> Regards,
>>> Daya
>>>
>>>
>>> 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.
>>>
>>> www.wipro.com
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Freetype mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/freetype
>>
>> 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.
>>
>> www.wipro.com
>
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype


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. 

www.wipro.com



reply via email to

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