[ft-devel] supporting coloured bitmaps in FreeType

2012-08-15 Thread Graham Asher
Hi to all FreeTypers after a long silence on my part - too much to do in CartoType. I have a simple proposal that would enable FreeType to support fonts which can create coloured glyphs. It is primarily intended for bitmap font formats used for emojis, emoticons and the like. I have an

Re: [ft-devel] supporting coloured bitmaps in FreeType

2012-08-15 Thread Werner LEMBERG
The idea is to add just two modes (for the moment - no need to be over-elaborate) to FT_Pixel_Mode, for premultiplied ARGB, and the same format using 8-bit indexes into a palette. These modes are convenient when creating bitmap fonts from PNG images. [...] This sounds great! Are you going

Re: [ft-devel] supporting coloured bitmaps in FreeType

2012-08-15 Thread Behdad Esfahbod
On 08/15/2012 11:10 AM, Werner LEMBERG wrote: The idea is to add just two modes (for the moment - no need to be over-elaborate) to FT_Pixel_Mode, for premultiplied ARGB, and the same format using 8-bit indexes into a palette. These modes are convenient when creating bitmap fonts from PNG

Re: [ft-devel] supporting coloured bitmaps in FreeType

2012-08-15 Thread Graham Asher
Well, what I'm suggesting is just adding these constants, which is a 5 minute patch. I'm not allowed to release my client's bitmap font format (which I invented) into the wild. It would be nice to have a standard coloured-bitmap font format but it would probably not be a good idea for me to

Re: [ft-devel] supporting coloured bitmaps in FreeType

2012-08-15 Thread Graham Asher
I have asked my client whether they will consider allowing me to make their bitmap font format public-domain so that someone can write a clean FreeType driver for it. I have a driver for it but it's not 'clean': it depends on a huge amount of other proprietary stuff. We would also need a clean