[reportlab-users] Removing chars(unicode) that is not supported by font
Glenn Linderman
v+python at g.nevcal.com
Wed Aug 19 01:52:42 EDT 2015
On 8/18/2015 7:07 AM, Kaviraj Kanagaraj wrote:
> Hi Everyone.
>
> I need a help on removing unsupported characters by the font before
> write it into pdf.
>
> For example:
>
> I am using Lato Font. And I see that unicode u'\u2036' (REVERSED
> DOUBLE PRIME) is not supported by Lato Font. So its displaying
> "notdef" character(a question mark with box around it). But I want to
> remove characters like this that doesn't supported by the font.
>
> Basically I want to custom "notdef" to null character so that it
> removes it in pdf. Any way to do this? How do I solve this problem?
You can learn how to tell if a character is in a particular TTF font by
reading my posting from January at
https://pairlist2.pair.net/pipermail/reportlab-users/2015-January/011285.html
It is not a documented API, though. Whether one has been created in a
more recent version, I couldn't say.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20150818/40d3dbf9/attachment.html>
More information about the reportlab-users
mailing list