You are not logged in.

#1 2016-03-18 19:14:22

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

[SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

I just now upgraded with pacman -Syu. I did notice that there was some upgrade involving en_US.UTF-8.

Now the fonts in the terminal, and in firefox, look dreadful (especially in gmail). The environment variable LANG is still set to en_US.UTF-8 and /etc/locale.conf looks like :

LANG=en_US.UTF-8
LC_NUMERIC=C
LC_TIME=C
LC_MONETARY=C
LC_PAPER=C
LC_MEASUREMENT=C

The font used by the terminal is Monospace Regular 12. I am using the gnome window manager.

Any help appreciated - I'm assuming it's connected to the locale upgrade, but maybe it is not?

Last edited by nilesOien (2016-03-19 22:25:19)


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#2 2016-03-18 20:47:10

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

You can check pacman's log to see what was upgraded.  I assume you are referring to glibc?  Why do you think this affected your fonts specificall?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2016-03-18 22:06:42

pavelh
Member
Registered: 2016-02-26
Posts: 10

Re: [SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

What is the output of these commands?

fc-match Monospace
fc-match arial, sans-serif

Last edited by pavelh (2016-03-18 22:08:44)

Offline

#4 2016-03-18 22:18:30

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

Re: [SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

Thanks - the commands and their output are as follows :

[oien@joy ~]$ fc-match Monospace
SyrCOMAdiabene.otf: "East Syriac Adiabene" "Regular"
[oien@joy ~]$ fc-match arial, sans-serif

To be clear, that second command just prints a blank line.

You can see how the fonts look at this URL : http://gong2.nso.edu/niles/archIssue.jpg

Thanks for considering this. As an aside, I remain delighted with Arch!

EDIT : I just listed all the fonts with fc-match, it seems like it can only find 87 fonts which seems pretty minimal to me? And none of the common ones like arial, which seems odd

[oien@joy ~]$ fc-match --all | wc -l
87
[oien@joy ~]$ fc-match --all
SyrCOMAdiabene.otf: "East Syriac Adiabene" "Regular"
SyrCOMAntioch.otf: "Estrangelo Antioch" "Regular"
SyrCOMBatnan.otf: "Serto Batnan" "Regular"
SyrCOMCtesiphon.otf: "East Syriac Ctesiphon" "Regular"
SyrCOMJerusalem.otf: "Serto Jerusalem" "Regular"
SyrCOMJerusalemOutline.otf: "Serto Jerusalem Outline" "Regular"
SyrCOMKharput.otf: "Serto Kharput" "Regular"
SyrCOMMalankara.otf: "Serto Malankara" "Regular"
SyrCOMMardin.otf: "Serto Mardin" "Regular"
SyrCOMMidyat.otf: "Estrangelo Midyat" "Regular"
SyrCOMNisibin.otf: "Estrangelo Nisibin" "Regular"
SyrCOMNisibinOutline.otf: "Estrangelo Nisibin Outline" "Regular"
SyrCOMQenNeshrin.otf: "Estrangelo Quenneshrin" "Regular"
SyrCOMTalada.otf: "Estrangelo Talada" "Regular"
SyrCOMTurAbdin.otf: "Estrangelo TurAbdin" "Regular"
SyrCOMUrhoy.otf: "Serto Urhoy" "Regular"
SyrCOMEdessa.otf: "Estrangelo Edessa" "Regular"
Cantarell-Regular.otf: "Cantarell" "Regular"
GohaTibebZemen.otf: "Goha-Tibeb Zemen" "Regular"
GohaTibebZemen.ttf: "Goha-Tibeb Zemen" "Regular"
SyrCOMBatnanBold.otf: "Serto Batnan" "Bold"
SyrCOMJerusalemBold.otf: "Serto Jerusalem" "Bold"
SyrCOMMardinBold.otf: "Serto Mardin" "Bold"
SyrCOMUrhoyBold.otf: "Serto Urhoy" "Bold"
Cantarell-Bold.otf: "Cantarell" "Bold"
SyrCOMJerusalemItalic.otf: "Serto Jerusalem" "Italic"
Cantarell-Oblique.otf: "Cantarell" "Oblique"
Cantarell-BoldOblique.otf: "Cantarell" "BoldOblique"
7x13-ISO8859-1.pcf.gz: "Fixed" "Regular"
7x13.pcf.gz: "Fixed" "Regular"
8x13-ISO8859-1.pcf.gz: "Fixed" "Regular"
8x13.pcf.gz: "Fixed" "Regular"
clR6x12-ISO8859-1.pcf.gz: "Clean" "Regular"
clR6x12.pcf.gz: "Clean" "Regular"
12x13ja.pcf.gz: "Fixed" "ja"
6x12-ISO8859-1.pcf.gz: "Fixed" "SemiCondensed"
6x12.pcf.gz: "Fixed" "SemiCondensed"
6x13-ISO8859-1.pcf.gz: "Fixed" "SemiCondensed"
6x13.pcf.gz: "Fixed" "SemiCondensed"
7x13B-ISO8859-1.pcf.gz: "Fixed" "Bold"
7x13B.pcf.gz: "Fixed" "Bold"
8x13B-ISO8859-1.pcf.gz: "Fixed" "Bold"
8x13B.pcf.gz: "Fixed" "Bold"
6x13B-ISO8859-1.pcf.gz: "Fixed" "Bold SemiCondensed"
6x13B.pcf.gz: "Fixed" "Bold SemiCondensed"
7x13O-ISO8859-1.pcf.gz: "Fixed" "Oblique"
7x13O.pcf.gz: "Fixed" "Oblique"
8x13O-ISO8859-1.pcf.gz: "Fixed" "Oblique"
8x13O.pcf.gz: "Fixed" "Oblique"
6x13O-ISO8859-1.pcf.gz: "Fixed" "Oblique SemiCondensed"
6x13O.pcf.gz: "Fixed" "Oblique SemiCondensed"
7x14-ISO8859-1.pcf.gz: "Fixed" "Regular"
7x14.pcf.gz: "Fixed" "Regular"
7x14B-ISO8859-1.pcf.gz: "Fixed" "Bold"
7x14B.pcf.gz: "Fixed" "Bold"
6x10-ISO8859-1.pcf.gz: "Fixed" "Regular"
6x10.pcf.gz: "Fixed" "Regular"
9x15-ISO8859-1.pcf.gz: "Fixed" "Regular"
9x15.pcf.gz: "Fixed" "Regular"
9x15B-ISO8859-1.pcf.gz: "Fixed" "Bold"
9x15B.pcf.gz: "Fixed" "Bold"
6x9-ISO8859-1.pcf.gz: "Fixed" "Regular"
6x9.pcf.gz: "Fixed" "Regular"
8x16.pcf.gz: "Fixed" "Regular"
5x8-ISO8859-1.pcf.gz: "Fixed" "Regular"
5x8.pcf.gz: "Fixed" "Regular"
cu12.pcf.gz: "ClearlyU" "Regular"
cu-alt12.pcf.gz: "ClearlyU Alternate Glyphs" "Regular"
cu-pua12.pcf.gz: "ClearlyU PUA" "Regular"
5x7-ISO8859-1.pcf.gz: "Fixed" "Regular"
5x7.pcf.gz: "Fixed" "Regular"
9x18-ISO8859-1.pcf.gz: "Fixed" "Regular"
9x18.pcf.gz: "Fixed" "Regular"
18x18ja.pcf.gz: "Fixed" "ja"
18x18ko.pcf.gz: "Fixed" "ko"
9x18B-ISO8859-1.pcf.gz: "Fixed" "Bold"
9x18B.pcf.gz: "Fixed" "Bold"
4x6-ISO8859-1.pcf.gz: "Fixed" "Regular"
4x6.pcf.gz: "Fixed" "Regular"
10x20-ISO8859-1.pcf.gz: "Fixed" "Regular"
10x20.pcf.gz: "Fixed" "Regular"
micro.pcf.gz: "micro.pcf" "Regular"
12x24.pcf.gz: "Fixed" "Regular"
arabic24.pcf.gz: "Newspaper" "Regular"
cursor.pcf.gz: "cursor.pcf" "Regular"
deccurs.pcf.gz: "deccurs.pcf" "Regular"
decsess.pcf.gz: "decsess.pcf" "Regular"

Last edited by nilesOien (2016-03-19 00:10:33)


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#5 2016-03-19 00:43:21

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

Re: [SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

See https://wiki.archlinux.org/index.php/Fo … stallation Your FontPath appears incomplete...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-03-19 00:55:57

pavelh
Member
Registered: 2016-02-26
Posts: 10

Re: [SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

You don't have many fonts. Try installing dejavu family and windows fonts from the windows 10 iso. Create an aliases in the font config for Helvetica and other fonts if you don't like them. You can see what is rendered as a font in the dev tools of the browser for every single page. Check both firefox and chrome. Read the wiki https://wiki.archlinux.org/index.php/font_configuration for aliases and font configuration.

Example for aliases:

<alias>
    <family>serif</family>
    <prefer>
      <family>Times New Roman</family>
    </prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Helvetica</family>
    </prefer>
  </alias>
  <alias>
    <family>sans</family>
    <prefer>
      <family>Helvetica</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Source Code Pro</family>
    </prefer>
  </alias>
  <match>
    <test name="family">
      <string>Helvetica</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Helvetica</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Arial</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Helvetica</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Tahoma</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Helvetica</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Comic Sans MS</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Helvetica</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Times New Roman</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Times New Roman</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Times</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Times New Roman</string>
    </edit>
  </match>
    <match>
    <test name="family">
      <string>Georgia</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Times New Roman</string>
    </edit>
  </match>
    <match>
    <test name="family">
      <string>Consolas</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Source Code Pro</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Verdana</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Helvetica</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Courier New</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Source Code Pro</string>
    </edit>
  </match>

You can also read about font aliases here : https://seasonofcode.com/posts/how-to-s … linux.html

Last edited by pavelh (2016-03-19 00:57:49)

Offline

#7 2016-03-19 02:38:18

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

Re: [SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

Thanks, all.

Looking in /var/log/pacman.log I see this, which may have messed up the locale :

[2016-03-18 11:07] [ALPM-SCRIPTLET] Generating locales...
[2016-03-18 11:07] [ALPM-SCRIPTLET]   en_US.UTF-8... done
[2016-03-18 11:07] [ALPM-SCRIPTLET] Generation complete.

And these two, which may have messed up the font path :

[2016-03-18 11:08] [ALPM] upgraded gnome-shell (3.18.3-3 -> 3.18.4-1)
[2016-03-18 11:08] [ALPM] upgraded gnome-shell-extensions (3.18.3-1 -> 3.18.4-1)
[2016-03-18 11:08] [ALPM] upgraded gnome-terminal (3.18.2-1 -> 3.18.3-1)
[2016-03-18 11:09] [ALPM] upgraded xorg-server-common (1.18.0-4 -> 1.18.1-3)
[2016-03-18 11:09] [ALPM] upgraded xorg-server (1.18.0-4 -> 1.18.1-3)
[2016-03-18 11:09] [ALPM] upgraded xorg-server-xwayland (1.18.0-4 -> 1.18.1-3)
[2016-03-18 11:09] [ALPM] upgraded xorg-xrandr (1.4.3-1 -> 1.5.0-1)

Oddly, "xset q" shows :

Font Path:
  /usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,built-ins

Which seems like maybe a reasonable font path? I'll have to compare it to the system I didn't upgrade (my work system) tomorrow though. I guess I could get past this by installing fonts, but really I'm a bit curious as to why the upgrade caused this. Thanks for all your help, I'll try to look at it more over the weekend. /usr/share/fonts/TTF seems to have the DejaVu* fonts in it, but I can't find them :

[oien@joy ~]$ fc-match DejaVu
SyrCOMAdiabene.otf: "East Syriac Adiabene" "Regular"
[oien@joy ~]$ fc-match DejaVuSans
SyrCOMAdiabene.otf: "East Syriac Adiabene" "Regular"
[oien@joy ~]$ fc-match DejaVuSerif
SyrCOMAdiabene.otf: "East Syriac Adiabene" "Regular"

Which is puzzling, but then again I don't have much experience with fonts.

Any other thoughts would be appreciated. Thanks!

EDIT : I did try "xset fp rehash", but it did not have any effect.

Last edited by nilesOien (2016-03-19 02:43:35)


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#8 2016-03-19 22:33:05

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

Re: [SOLVED] en_US.UTF-8 fonts after March 18 2016 upgrade

It looks like the upgrade introduced new files, fonts.dir and fonts.scale, in the directory /usr/share/fonts/TTF/ that were not quite right. It seems like they caused the X server to ignore the DejaVu* fonts that were in that directory. I seemed to need to delete these fonts.* files and re-write them with 'mkfontscale' and 'mkfontdir' and then refresh things with 'xset fp rehash'.

This script did the trick for me :

#!/bin/bash

cd /usr/share/fonts
find . -type f -name fonts.dir -exec /bin/rm -vf {} \;
find . -type f -name fonts.scale -exec /bin/rm -vf {} \;

for dir in *; do echo "Entering $dir"; if [ -d  "$dir"  ]; then cd "$dir"; if [ ! -f "fonts.alias" ]; then mkfontscale; mkfontdir; echo "Made index files in $PWD"; fi; xset +fp "$PWD"; echo "Added $PWD"; cd .. ; echo ; fi; done && xset fp rehash

exit 0

So - now I know a little bit more about fonts, and to look at /var/log/pacman.log to figure out what went on. Thanks, all!


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

Board footer

Powered by FluxBB