Error "no unicode cmap for font" with font Webdings and Wingdings

1,205 views
Skip to first unread message

Adrien Coquio

unread,
Sep 15, 2010, 12:13:17 PM9/15/10
to Prawn
Hi,

I would like to use the fonts Webdings and Wingdings in my pdf to
insert some little picture but when I try to use this fonts ( I added
it at the font_families and use it with text and <font> marker ) I got
the error "no unicode cmap for font"
Anybody already got this problem ?

Thanks

Adrien

Adrien Coquio

unread,
Oct 12, 2010, 4:39:31 AM10/12/10
to Prawn
I tried to fix this problem since I posted but I wasn't able to solve
it.
Anybody have an idea ?
Thanks

adrien

Daniel Nelson

unread,
Oct 12, 2010, 10:09:46 AM10/12/10
to prawn...@googlegroups.com
> I would like to use the fonts Webdings and Wingdings in my pdf to
> insert some little picture but when I try to use this fonts ( I added
> it at the font_families and use it with text and <font> marker ) I got
> the error "no unicode cmap for font"

Are you sure you are using unicode versions of these fonts, and not
some old 256 character font set?

- Daniel

Adrien Coquio

unread,
Oct 12, 2010, 11:54:44 AM10/12/10
to Prawn
Thanks for your answer Daniel :)
I'm pretty sure I use the unicode versions of these fonts since I took
it from a Windows 7. I don't know what can I do to be sure of that ?
Any other idea ?
Thanks

adrien

gra

unread,
Feb 13, 2012, 11:28:59 AM2/13/12
to prawn...@googlegroups.com
Hi Adrien,

I was having the same issue.  I found that although there's a Unicode character to glyph map, TTFunk is ignoring it because if the table's platform_id = 3 (Microsoft), it required the encoding_id to be 1.  I'm not sure where the encoding comes from but it seems to be 0 for symbol fonts like Webdings etc.  Changing TTFunk::Table::Cmap::Subtable.unicode? to allow 0 fixed the issue.

I've logged issue #7 in ttfunk for this.  https://github.com/sandal/ttfunk/issues/7 

Cheers,
Gra.

Adrien Coquio

unread,
Feb 14, 2012, 8:31:33 AM2/14/12
to prawn...@googlegroups.com
Hi,

Thanks for figured out this and noticed me. I will give it a try when I will go back on this project.

Regards,

Adrien

2012/2/13 gra <graham...@gmail.com>
Reply all
Reply to author
Forward
0 new messages