freetype
[Top][All Lists]
Advanced

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

Re: [ft] [ft-devel] Regarding Colored Emoji


From: Behdad Esfahbod
Subject: Re: [ft] [ft-devel] Regarding Colored Emoji
Date: Fri, 29 Nov 2013 14:45:32 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 13-11-29 04:35 AM, Himanshu Joshi wrote:
> Hi,
>  Was trying to use Colored Bitmap fonts with FreeType 2.5.0.1 release, but
> facing following issues
> 1. FT_Set_Char_Size , returns Error code 23
> 2. If i skip call to "FT_Set_Char_Size" as Colored Emoji will be bitmap then
> search for Unicode returns zero (default glyph). Unicode passed is working on
> Android Kitkat messaging.
> 
> 
> FreeType Settings:
> Font: NotoColoredEmoji (Got from Android source)
> Font Size: 16
> 
> Following Macro are ON:
> 1. TT_CONFIG_OPTION_EMBEDDED_BITMAP
> 2. FT_CONFIG_OPTION_USE_PNG
> 
>  Pls suggest if some other setting is required or I am missing something.

FreeType doesn't resize bitmap images.  Noto Sans Color has two strikes, at
55ppem and 109ppem.  You are supposed to query the available sizes from
FreeType, choose the smallest size larger than your desired size,
FT_Set_Char_Size to the chosen size, load glyph, and use whatever imaging
library you have to resize the image.

What platform are you using?

-- 
behdad
http://behdad.org/



reply via email to

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