Page 1 of 3
convert Apple Color Emoji
Posted: 2013-03-28T01:34:47-07:00
by coryvirok
I'm trying to convert a glyph from the Mac OS X "Apple Color Emoji.ttf" font to a PNG.
convert -font ./Apple\ Color\ Emoji.ttf -background none -pointsize 96 label:$x $x.png
$x refers to the label. The above generates a blank image. Any thoughts on what I might be doing wrong?
Re: convert Apple Color Emoji
Posted: 2013-03-28T09:03:08-07:00
by snibgo
It should work, giving black letters. What version of IM are you using?
Re: convert Apple Color Emoji
Posted: 2013-03-28T11:15:58-07:00
by coryvirok
bash-3.2$ convert --version
Version: ImageMagick 6.7.7-6 2013-03-27 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenCL
Also, I'd like the resulting image to have the same colors as the glyph.
Re: convert Apple Color Emoji
Posted: 2013-03-28T11:34:43-07:00
by snibgo
Despite the apparent date, 6.7.7 is an ancient version. I suggest you upgrade and try the command again.
Re: convert Apple Color Emoji
Posted: 2013-03-28T12:06:15-07:00
by coryvirok
I just downloaded and compiled/linked the latest source:
Version: ImageMagick 6.8.4-2 2013-03-28 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib freetype jng jpeg png x xml zlib
I'm still seeing just blank images, (or white if I remove the -background none option.)
This particular font is a color font with embedded bitmaps:
http://typographica.org/typeface-review ... lor-emoji/
Re: convert Apple Color Emoji
Posted: 2013-03-28T13:04:47-07:00
by snibgo
... a color font with embedded bitmaps ...
Ah. Doubtless that's the issue.
Re: convert Apple Color Emoji
Posted: 2016-01-05T10:31:39-07:00
by gmaxera
I'm getting the same problem with ImageMagick 6.9.2-10
Is it possible that since 2013 ImageMagick still not support these kind of fonts ?
Re: convert Apple Color Emoji
Posted: 2016-01-05T11:00:00-07:00
by fmw42
As far as I know, those color emojis are not fonts that IM supports. Typical fonts are .ttf and a few others.
Re: convert Apple Color Emoji
Posted: 2016-01-05T11:05:42-07:00
by magick
ImageMagick relies on the Freetype delegate library to render TrueType fonts. If Freetype cannot read the font, there is no hope that ImageMagick will be able to render the characters. ImageMagick cannot read AppleColorEmoji.ttf. Try it with the Freetype library utilities. If it can read it-- that would indicate a bug in ImageMagick.
Re: convert Apple Color Emoji
Posted: 2016-01-06T02:44:22-07:00
by gmaxera
From what I know freetype support Apple color emoji TTF font since version 2.5.2
Re: convert Apple Color Emoji
Posted: 2016-01-06T02:48:09-07:00
by magick
We tried a couple of font renderers available on Linux and they failed to grok Apple color emoji TTF. We'll keep investigating and see if we can find a solution.
Re: convert Apple Color Emoji
Posted: 2016-01-06T02:58:31-07:00
by gmaxera
How can I simple test if freetype support the Apple color emoji font well ??
I didn't find a sample application to use for test freetype font support
Re: convert Apple Color Emoji
Posted: 2016-01-06T03:10:28-07:00
by magick
Freetype includes a separate download for their demos. Fedora, for example, includes these in the repos as freetype-demos. Use one of the demo programs to verify if Freetype can grok your TTF file. If so, we can assume the rendering problem is with ImageMagick.
Re: convert Apple Color Emoji
Posted: 2016-01-06T03:46:52-07:00
by gmaxera
Re: convert Apple Color Emoji
Posted: 2016-01-06T04:56:51-07:00
by gmaxera
I finally tested using ftview and it worked.
Debian 8.2 live + freetype 2.6.1
Here the screenshot:
http://32e506a6aea3853b929e-0b1385a62d7 ... _apple.png