Page MenuHomeSolus

`serif` font family defaults to `Clear Sans` instead of a serif font
Open, NormalPublic

Description

Fontconfig selects Clear Sans as the default serif font.

$ fc-match serif
ClearSans-Regular.ttf: "Clear Sans" "Regular"

This seems to be caused by a misconfiguration in fontconfig

/usr/share/fontconfig/conf.avail/60-latin.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<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>Set preferable fonts for Latin</description>
	<alias>
		<family>serif</family>
		<prefer>
			<family>Clear Sans</family>
[...snip...]

Additionally, the default sans-serif family font is also Clear Sans instead of Noto Sans.

$ fc-match sans-serif
ClearSans-Regular.ttf: "Clear Sans" "Regular"

Event Timeline

saintdev created this task.Feb 16 2020, 6:40 AM
DataDrake triaged this task as Normal priority.Feb 16 2020, 4:13 PM
DataDrake edited projects, added Software; removed Lacks Project.
DataDrake added a subscriber: DataDrake.

To be clear, Firefox and fontconfig are both behaving correctly. It's more that the system defaults aren't being conveyed to fontconfig.