[Touch-packages] [Bug 1824260] Re: wrong kerning in SS-5 PDF form fields

2020-10-28 Thread xiota
Thank you. I have done as you suggest. Upstream merge request is here: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/merge_requests/128 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to fontconfig in Ubuntu. https://b

[Touch-packages] [Bug 1824260] Re: wrong kerning in SS-5 PDF form fields

2020-10-27 Thread xiota
> How do you make it replace CourierStd with Ubuntu Mono? > Do you have custom font configuration which affect it? I created custom config files to define the fallback fonts after having issues with strange fallback font selection a few years ago. The problem is associated with the generic font

[Touch-packages] [Bug 1824260] Re: wrong kerning in SS-5 PDF form fields

2020-10-27 Thread xiota
The following config would be better than the one I proposed earlier: CourierStd Courier CourierStd monospace I submitted a request to fontconfig: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/262 - What one per

[Touch-packages] [Bug 1824260] Re: wrong kerning in SS-5 PDF form fields

2020-10-26 Thread xiota
I just checked a few fonts. The fonts I thought might have problems are mostly fine. Only some consecutive capitals clash, like WWW. Ubuntu Mono looks bad (too much space), but it's readable. I'll submit a request at the fontconfig gitlab. -- You received this bug notification because you are a

[Touch-packages] [Bug 1824260] Re: wrong kerning in SS-5 PDF form fields

2020-10-26 Thread xiota
The proposed patch might not fix the problem on all machines because not all monospace fonts have the same metrics as Courier. So it would be good to also add the following to 30-metric-aliases.conf: CourierStd Nimbus Mono PS TeX Gyre Cursor Cousine Liber

[Touch-packages] [Bug 1824260] Re: wrong kerning in SS-5 PDF form fields

2020-10-26 Thread xiota
CourierStd is not defined in any of the config files at `/etc/fonts/conf.d`, so it falls back to sans-serif, not monospace. On my computer, the sans-serif fallback is set to Ubuntu. In config files at `/etc/fonts/conf.d`, creating duplicate rules for "CourierStd" each time "Courier" or "Courier Ne

[Touch-packages] [Bug 1824260] Re: wrong kerning in SS-5 PDF form fields

2020-10-24 Thread xiota
Looking at `ss-5.pdf`, I saw the same rendering issue. The problem appears to be associated with font substitution. In particular, CourierStd is replaced with Ubuntu, which obviously won't render properly. ![pdf-fonts](/uploads/aaa50e12cccb20910b8fa7c5d2d01b57/pdf-fonts.png) I was able to correct