Re: Removing chars(unicode) that is not supported by font

Glenn Linderman <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.