Page 1 of 1

Add a new colored glyph (from a .png) to a TTF font

Posted: Sun Jun 11, 2017 4:56 pm
by loki5100
Hello,

Using font creator, is it possible to do this :
  1. I have an already made font (.ttf)
  2. I want to add to this ttf a new glyph taken from a png image i have (an emoji icon)
  3. Save this font in a way i can use it under android (CBDT)
thanks by advance

Re: Add a new colored glyph (from a .png) to a TTF font

Posted: Sun Jun 11, 2017 6:12 pm
by Bhikkhu Pesala
  1. FontCreator makes coloured fonts from layers. Each layer is a single colour. If the PNG has many colours it may take a lot of work. Four colours is not too hard. See the tutorial on Creating Multi-coloured Glyphs
  2. The emojji may be covered by copyright. If it's your own creation or released in the public domain or opensource, there is no issue.
  3. I have no idea what limitations, if any, apply to fonts for Android.

Re: Add a new colored glyph (from a .png) to a TTF font

Posted: Sun Jun 11, 2017 6:36 pm
by loki5100
Thanks Bhikkhu Pesala !

My .png have more than 256 colors (it's a PNG 24 files).
I can reduce it, but anyway it's will have much more than few colors :(

But i not understand, why not store directly png inside the font and use instead layer ?
I m quite curious why i can't find a tool that can to this, it is really useful to add to a font a custom glyph from a png, especially now that colored font are well supported in mobile

So with FontCreator i have no chance ?

Re: Add a new colored glyph (from a .png) to a TTF font

Posted: Sun Jun 11, 2017 7:53 pm
by Bhikkhu Pesala
TrueType fonts are scalable vectors, bitmaps are a fixed size.

Bitmaps fonts do exist, but FontCreator does not create them.

You can buy plugins for PhotoShop.

Re: Add a new colored glyph (from a .png) to a TTF font

Posted: Mon Jun 12, 2017 7:30 am
by loki5100
with plugin for photoshop i can buy? i try with https://www.fontself.com/ but this tool require to start a new font from scratch and me i want to update an existing TTF font :(

As i understand i need just to update a CBDT table in the ttf ...

maybe font creator can be ok, if when we gave an png image font creator can automatically create the n layers for each colors (doesn't matter if their is a lot of layers if font creator can do it automatically)

Re: Add a new colored glyph (from a .png) to a TTF font

Posted: Mon Jun 12, 2017 7:45 am
by Bhikkhu Pesala
loki5100 wrote: Mon Jun 12, 2017 7:30 amMaybe font creator can be OK, if when we gave an png image font creator can automatically create the n layers for each colors (doesn't matter if their is a lot of layers if font creator can do it automatically)
You're wasting your time posting here about this. FontCreator cannot use a PNG to make colour fonts. Maybe one day, but for now at least, you need to look elsewhere.

Google is your friend.

Re: Add a new colored glyph (from a .png) to a TTF font

Posted: Mon Jun 12, 2017 8:04 am
by loki5100
sorry, i didn't think i was wasting my time discussing with you ...

I ask about this feature because their is no other tools (0 tool and i search) on the net that can do this and i m not hurry. font creator was the most closest i can found that can do it...

Re: Add a new colored glyph (from a .png) to a TTF font

Posted: Mon Jun 12, 2017 11:02 am
by Bhikkhu Pesala
Try searching and reading on Typedrawers. There may well be a practical method, but not yet with FontCreator.