seanyo / Hello-I-Tweet-As

Name Tags are Back...in Twitter Form! Twitter's the New Name Tag!
itweet.as
2 stars 2 forks source link

Some characters not correctly rendering (i18n?) #21

Open seanyo opened 13 years ago

seanyo commented 13 years ago

Some characters are rendering as a black square on name tags:

Example ID: http://twitter.com/#!/KuraFire

Talked with Faruk - this is an S-cedille and is supported by UTF-8 and UTF-16

Other characters which are i18n, do work. Perhaps this is because this character is in the 8-bit set...

Example ID: http://twitter.com/#!/t

Here is another one that doesn't work: http://twitter.com/#!/uxJenn

It is an apple character, that also doesn't work on non-Macs....

ccharles commented 13 years ago

This is almost certainly an issue of using fonts that do not include these characters rather than an encoding issue.

seanyo commented 13 years ago

Ok - that makes sense. How are fonts handled by ReportLab? I can look at tracking down a different font and I'll look into what characters are allowed by Twitter.

ccharles commented 13 years ago

ReportLab's font support doesn't appear to be terribly robust. It looks like we can drop in a TTF and make it work, but I'm not sure. Their documentation is also spotty :-).

DejaVu Sans is likely to be our best bet for a replacement font, but it's not nearly as pretty. I'll play with this when I have some time...