unsubscribe

-----Original Message-----
From: Tilman Hausherr <thaush...@t-online.de> 
Sent: Thursday, May 25, 2023 1:59 AM
To: users@pdfbox.apache.org
Subject: Re: PDF with mangled font rendering in some environments

On 25.05.2023 01:02, Daniel Skiles wrote:
> 2023-04-06 14:05:51,245 [admin] [53088500EB38627B70BCA6FA9037CD0C]
> [172.18.0.1] [service={}] DEBUG [catalina-exec-1]
> (FileSystemFontProvider.java:196)
> - Loaded Calibri-Regular from
> /usr/share/fonts/fonts_compat/ms/Calibri/Carlito-Regular.ttf

It is using carlito instead of calibri. However the GIDs are not identical. I 
opened both in DTL OTMaster light 3.7 and they are not.

I tried to simulate this by making it look that I don't have calibri but I 
failed, it didn't use Carlito instead it used Liberation Sans and this also 
produced garbled fonts.

I also tried to change the code so that it avoids the "Using non-embedded GIDs 
in font" segment and that worked.

I think the problem is that the logic in that part of the code applies only 
when the found font is the exact same one that should have been embedded.

Tilman


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to