Peter Maydell wrote:
>fontconfig appears to ignore a user's fonts.conf <prefers> list if it's
>in a Japanese locale.

>I have a ~/.config/fontconfig/fonts.conf which includes
> <alias>
>  <family>serif</family>
>  <prefer>
>   <family>Source Serif Pro</family>
>   <family>IPAMincho</family>
>  </prefer>
> </alias>

After some experimentation I have been able to get the results
I wanted by replacing the above <alias> block with:
 <match>
   <test name="family">
     <string>serif</string>
   </test>
   <edit name="family" mode="prepend" binding="strong">
     <string>Source Serif Pro</string>
   </edit>
   <edit name="family" mode="prepend" binding="strong">
     <string>IPAMincho</string>
   </edit>
 </match>

(the 'binding="strong" part in particular seems to be required.)

However I still don't understand why the <alias> version doesn't work --
the documentation doesn't say anything about <alias> being locale
dependent or circumstances where fontconfig will ignore it.

thanks
-- PMM

Reply via email to