You are not logged in.

#1 2018-10-17 02:19:41

diegoortizmatajira
Member
Registered: 2018-10-17
Posts: 3

[SOLVED] Fonts not rendering correctly on some sites in browsers

Since I installed Arch Linux I've noticed some texts are not rendering Ok on some apps, and some pages on web browsers (Chrome, Firefox and Epiphany)

Sympthoms

- Some texts seem truncated (missing upper part) example: https://vimeo.com/search?q=kubernetes

https://i.imgur.com/oZk4BeA.png
https://i.imgur.com/godpb8B.png

What can it be done to solve this rendering issues.

Last edited by diegoortizmatajira (2018-10-21 20:07:13)

Offline

#2 2018-10-17 02:20:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Fonts not rendering correctly on some sites in browsers

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-10-17 07:19:25

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Fonts not rendering correctly on some sites in browsers

Looks like you use a font w/ pretty large ascender/descender and they're stuffed into pixel-size boxes, oriented by proabaly Arial metrics.
I'd suggest to use the web isnpector on a broken element, see what font is resolved and the box size. Then check the font (local resolution as well as attributes)

https://wiki.archlinux.org/index.php/Me … ible_fonts
https://www.archlinux.org/packages/extr … fontforge/

Offline

#4 2018-10-21 19:33:00

diegoortizmatajira
Member
Registered: 2018-10-17
Posts: 3

Re: [SOLVED] Fonts not rendering correctly on some sites in browsers

Thanks Seth, used the inspector to identify the font causing the issue, reducing it to pages that used generic font family "sans-serif"

After some investigation I was able to solve the issue for some pages (Archlinux forum included).

Looked at /etc/fonts/conf.d. Edited 45-latin.conf and  60-latin.conf and put the font that I wanted to be used (Verdana in my case) in top of the list for the sans-serif group.

The issue was solved partially, some pages like vimeo persist with bad rendering when using by default "Helvetica" font.

Last edited by diegoortizmatajira (2018-10-21 19:38:39)

Offline

#5 2018-10-21 20:06:20

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Fonts not rendering correctly on some sites in browsers

Please either add the override to your users fontconfig or a local file. The edits will likely be overridden w/ the next update otherwise.
https://wiki.archlinux.org/index.php/Fo … figuration

Offline

#6 2018-10-21 20:06:56

diegoortizmatajira
Member
Registered: 2018-10-17
Posts: 3

Re: [SOLVED] Fonts not rendering correctly on some sites in browsers

Removed "helvetica" font from "~/.local/share/fonts" and now it displays those pages correctly

Offline

Board footer

Powered by FluxBB