[Top][All Lists]

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

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

From: Himanshu Joshi
Subject: Re: [ft] [ft-devel] Regarding Colored Emoji
Date: Mon, 2 Dec 2013 20:45:25 +0530

Hi Behdad,
 One more question, bitmap retunred by FreeType will consist of complete PNG file with file header etc or it will be only RBB encoded data?

On Mon, Dec 2, 2013 at 7:54 PM, Himanshu Joshi <address@hidden> wrote:
Hi Behdad,
 Thank you for the guidence, I was thinking of resizing after debugging about the available strikes in FreType but was not very sure what to use for the same. I was using it on Windows to make one demo application, will add libPNG to windows project and try your suggestions.

On Sat, Nov 30, 2013 at 1:15 AM, Behdad Esfahbod <address@hidden> wrote:
On 13-11-29 04:35 AM, Himanshu Joshi wrote:
> Hi,
>  Was trying to use Colored Bitmap fonts with FreeType 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:
>  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?


reply via email to

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