You are not logged in.

#1 2014-07-04 17:40:14

D101101
Member
Registered: 2014-07-02
Posts: 36

[SOLVED]Something wrong with Arial "Regular" font

In any application Arial looks like this
105710851080108410861082110110821088107210851072-04072014-203933.png

$ fc-match -a | grep arial
arial.ttf: "Arial" "Normal"
arialbd.ttf: "Arial" "Negreta"
ariali.ttf: "Arial" "Cursiva"
arialbi.ttf: "Arial" "Negreta cursiva"
$ pacman -Qm | grep 'ubuntu\|ttf'
fontconfig-ubuntu 2.11.1-1
freetype2-ubuntu 2.5.2-4
ttf-tahoma 1:1.5.9-1
ttf-win7-fonts 7.1-8

How to fix it?

Last edited by D101101 (2014-07-10 06:19:57)

Offline

#2 2014-07-08 07:25:31

D101101
Member
Registered: 2014-07-02
Posts: 36

Re: [SOLVED]Something wrong with Arial "Regular" font

Any ideas..?

Offline

#3 2014-07-08 10:34:35

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Something wrong with Arial "Regular" font

Your fc-match command only tells us that Arial is installed.  To find the font that is substituted when an application asks for Arial, use

$ fc-match Arial

Once you find what font is being used instead of Arial, you'll have to search through your font configuration files for the rule setting the substitution.  Be aware that some DEs, such as Gnome and KDE, may set rules that overwrite the user configuration files.

See https://wiki.archlinux.org/index.php/Font_Configuration

Offline

#4 2014-07-08 12:27:29

D101101
Member
Registered: 2014-07-02
Posts: 36

Re: [SOLVED]Something wrong with Arial "Regular" font

$ fc-match Arial
arial.ttf: "Arial" "Normal"
$ ls .config/fontconfig
ls: cannot access .config/fontconfig: No such file or directory
$ for i in /etc/fonts/conf.d/*; do if grep '.rial' "$i"; then echo "$i";echo ""; fi; done 2>/dev/null 
Arial             Liberation Sans         Arimo                    Albany             Albany AMT
Arial Narrow      Liberation Sans Narrow
   e.g. Liberation Sans to Arial
   e.g. Arial to Helvetica
   e.g. Arial to Liberation Sans, Arimo, Albany, and Albany AMT
	    <family>Arial</family>
	  <family>Arial</family>
	    <family>Arial Narrow</family>
	  <family>Arial</family>
	  <family>Arial</family>
	  <family>Arial</family>
	  <family>Arial Narrow</family>
	  <family>Arial</family>
	  <family>Arial Narrow</family>
	  <family>Arial</family>
	  <family>Arial Narrow</family>
/etc/fonts/conf.d/30-metric-aliases.conf

		<family>Arial</family>
/etc/fonts/conf.d/45-latin.conf

			<family>Arial</family>
/etc/fonts/conf.d/60-latin.conf

			<family>JG Lao Old Arial</family> <!-- lao -->
/etc/fonts/conf.d/65-nonlatin.conf

			<family>Arial Unicode MS</family>
			<family>Arial Unicode</family>
/etc/fonts/conf.d/69-unifont.conf

I use Xfce

Offline

#5 2014-07-09 11:07:55

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Something wrong with Arial "Regular" font

Identifying the unwanted font could help solve this problem.  If you have leafpad installed, after selecting Arial as the font to use in the editor window, try this command:

$ lsof | grep -i leafpad | egrep -i 'ttf|pfb'

Other apps than leafpad will work, even firefox, while many apps will produce no font listing for the command.  I chose leafpad because I have it installed and it uses just my theme fonts and the editor window font.

Offline

#6 2014-07-09 11:51:07

D101101
Member
Registered: 2014-07-02
Posts: 36

Re: [SOLVED]Something wrong with Arial "Regular" font

$ lsof | grep -i leafpad | egrep -i 'ttf|pfb'
leafpad   10000       sergey  mem       REG                8,2    741536     561407 /usr/share/fonts/TTF/DejaVuSans.ttf
leafpad   10000       sergey  mem       REG                8,2    335068     561324 /usr/share/fonts/TTF/DejaVuSansMono.ttf
leafpad   10000       sergey  mem       REG                8,2    778552     561366 /usr/share/fonts/TTF/arial.ttf
leafpad   10000       sergey  mem       REG                8,2    353824     561433 /usr/share/fonts/TTF/Ubuntu-R.ttf

hm...

$ leafpad

105710851080108410861082110110821088107210851072-09072014-154727.png

$ LC_ALL=C leafpad

105710851080108410861082110110821088107210851072-09072014-154828.png

Offline

#7 2014-07-09 13:55:13

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED]Something wrong with Arial "Regular" font

Are you sure the actual ttf file is correct, and not that messed-up font?


Matt

"It is very difficult to educate the educated."

Offline

#8 2014-07-09 15:46:23

D101101
Member
Registered: 2014-07-02
Posts: 36

Re: [SOLVED]Something wrong with Arial "Regular" font

$ pacman -Qo /usr/share/fonts/TTF/arial.ttf
/usr/share/fonts/TTF/arial.ttf is owned by ttf-win7-fonts 7.1-8

sha256sums is ok...

Offline

#9 2014-07-10 01:51:23

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Something wrong with Arial "Regular" font

Remove ANA-OneiroparmEni82, or repair that font, and your Arial problem will disappear.  See http://lists.freedesktop.org/archives/f … 03984.html.

Offline

#10 2014-07-10 06:19:35

D101101
Member
Registered: 2014-07-02
Posts: 36

Re: [SOLVED]Something wrong with Arial "Regular" font

Thanks

$ rm ~/.fonts/* && fc-cache -vf

solved

Offline

Board footer

Powered by FluxBB