https://bugzilla.redhat.com/show_bug.cgi?id=2063714
--- Comment #1 from Akira TAGOH <tagoh(a)redhat.com> ---
First, no, this isn't related to Bug#517789. fontconfig is trying to estimate
the score from the various properties provided by font caches. what fonts are
the best font according to the request is depending on what a sort of fonts
installed. strictly speaking, it is reproducible but it isn't that easy to
predict which one it would be.
Usually we add a substitute rule to make it predictable. it is mostly obvious
from the order of the family names. However, in this case, if no serif fonts is
installed, it will be decided by other properties. thus, it doesn't care what
fonts are default for sans-serif, and it could says this behavior isn't a bug.
One thing we can make it better is to add sans-serif at the end of family name
list as a last resort. that may looks like (not tested):
<fontconfig>
<match>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="append_last">
<string>sans-serif</string>
</edit>
</match>
</fontconfig>
Note the position of this config. it must be proceeded prior to other config
which interacts with "sans-serif". This would gives you Noto Sans related
family instead of DejaVu Sans. though adding different typefaces as a fallback
sounds not a good idea.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2063714