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: Mon, 02 Dec 2013 10:31:22 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 13-12-02 10:15 AM, Himanshu Joshi wrote:
> 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?

PNG data is called PNG data, not bitmap. :)  The bitmap returned by FreeType
is a bitmap, BGRA per pixel.

> 
> On Mon, Dec 2, 2013 at 7:54 PM, Himanshu Joshi <address@hidden
> <mailto: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
>     <mailto:address@hidden>> wrote:
> 
>         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/
> 
> 
> 

-- 
behdad
http://behdad.org/



reply via email to

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