[reportlab-users] Embedded font problems

Tim Roberts timr at probo.com
Mon Mar 13 16:19:38 EDT 2017


Robin Becker wrote:
> On 13/03/2017 16:46, Tim Roberts wrote:
>>
>> I should have mentioned my test was Reportlab 3.1.44 in Python 3.4 on
>> Windows 10.  Perhaps this is a Windows vs Linux thing.
> I'm running on windows 7 and this fails for me. I looked inside the ttf file and 
> the unicode --> glyph mappings are strictly in a private area uF020 - uFFFF.
>
> Nothing we normally do would undo that. A special decoder encoder pair would be 
> required.
>
> It's possible that the older version of reportlab was doing something integer 
> bases that failed, but since you are using python 3.4 I'm not sure that can be true.
>
> Did you install the font?

OK, I can explain this now.  Instead of following the link from the
original mail, I Googled code128.ttf and found this:

    http://www.dafont.com/code-128.font

THAT code128.ttf file does not use the private range.  It's in the
normal ASCII region.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list