You are not logged in.

#1 2018-04-10 17:42:00

Jm56Z
Member
Registered: 2018-01-28
Posts: 5

[Solved][Should be in SA] Firefox shows symbols instead of characters.

Hello,

I'll begin this message with this link:
https://bbs.archlinux.org/viewtopic.php?id=216418
Wich describes exactly my problem and what I've been trying to do for about an hour now.

Here is my /etc/fonts/font.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
	<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
		<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
	</its:rules>

	<description>Default configuration file</description>

<!--
	DO NOT EDIT THIS FILE.
	IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
	LOCAL CHANGES BELONG IN 'local.conf'.

	The intent of this standard configuration file is to be adequate for
	most environments.  If you have a reasonably normal environment and
	have found problems with this configuration, they are probably
	things that others will also want fixed.  Please submit any
	problems to the fontconfig bugzilla system located at fontconfig.org

	Note that the normal 'make install' procedure for fontconfig is to
	replace any existing fonts.conf file with the new version.  Place
	any local customizations in local.conf which this file references.

	Keith Packard
-->

<!-- Font directory list -->

	<dir>/usr/share/fonts</dir>
	<dir>/usr/local/share/fonts</dir>
	<dir prefix="xdg">fonts</dir>
	<!-- the following element will be removed in the future -->
	<dir>~/.fonts</dir>

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>mono</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>monospace</string>
		</edit>
	</match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans serif</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>sans-serif</string>
		</edit>
	</match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>sans-serif</string>
		</edit>
	</match>

<!--
  Load local system customization file
-->
	<include ignore_missing="yes">conf.d</include>

<!-- Font cache directory list -->

	<cachedir>/var/cache/fontconfig</cachedir>
	<cachedir prefix="xdg">fontconfig</cachedir>
	<!-- the following element will be removed in the future -->
	<cachedir>~/.fontconfig</cachedir>

	<config>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
		<rescan>
			<int>30</int>
		</rescan>
	</config>

</fontconfig>

And I don't know where to change

Fonts for: Latin
Proportional: Sans Serif
Serif: serif
Sans-Serif: sans-serif
Monospace: monospace

to

...
Monospace: Liberation Mono

Note: I ran

yaourt -Syua

before asking.

PS0: Sorry for posting this here, I couldn't post anything anywhere else in these forums
PS1: Please don't use code quoting, I can't read it....

Thanks for your help, Jm56Z

Last edited by Jm56Z (2018-04-10 19:30:27)

Offline

#2 2018-04-10 17:56:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved][Should be in SA] Firefox shows symbols instead of characters.

Read the post you linked to, it tells you where to change these settings.

Also please use [code⁣] tags instead of [quote⁣] tags when posting.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-04-10 19:26:28

Jm56Z
Member
Registered: 2018-01-28
Posts: 5

Re: [Solved][Should be in SA] Firefox shows symbols instead of characters.

I feel so dumb.
Missed the "advanced" button in about:preferences...
Sorry....
However I had to install Liberation Mono.

Here's what I did :

# mkdir /usr/share/fonts/truetype
// could have been any directory, anywhere.

# mv ~/Downloads/LiberationMono-*.ttf  /usr/share/fonts/truetype
// or any ttf font, anywhere, to the directory...

# mkfontscale && mkfontdir 

# fc-cache

# xset fp rehash

Hope it will be useful to some people... smile

Have a nice day !

Last edited by Jm56Z (2018-04-10 19:29:05)

Offline

#4 2018-04-10 19:35:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved][Should be in SA] Firefox shows symbols instead of characters.

Why on earth did you do all of that?????

You could have just done...

pacman -S ttf-liberation

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB