You are not logged in.
Pages: 1
I'm trying to embolden a few CJK fonts through fontconfig and have it kind-of working.
~/.fonts.conf:
<match target="pattern">
<test name="family">
<string>mikachan</string>
</test>
<edit name="embolden" mode="assign">
<bool>true</bool>
</edit>
</match>
This works when one of the fonts is used specifically, like setting my terminal font to mikachan will embolden and use it for everything, but doesn't work when it's displayed normally just because there's Japanese text in whatever I'm viewing.
Does anyone have any idea if I'm trying to do this the wrong way or if it's even possible?
Offline
https://wiki.edubuntu.org/BetterCJKSupp … FontConfig
I think you have to manually specify the fonts
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>DejaVu Serif</family>
<family>Times New Roman</family>
<family>Thorndale AMT</family>
<family>Luxi Serif</family>
<family>Nimbus Roman No9 L</family>
<family>Times</family>
<family>Frank Ruehl</family>
<family>MgOpen Canonica</family>
<family>IPAMonaPMincho</family>
<family>IPAPMincho</family>
<family>Sazanami Mincho</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>MS 明朝</family>
<family>Baekmuk Batang</family>
<family>FreeSerif</family>
</prefer>
</alias>
<match target="font">
<test name="weight" compare="less_eq">
<const>medium</const>
</test>
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<edit name="embolden" mode="assign">
<bool>true</bool>
</edit>
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
Offline
but doesn't work when it's displayed normally just because there's Japanese text in whatever I'm viewing.
You're filtering on the font family. That's what <test name="family"> means. It only affects the font families that you specifically include.
Families should never require "embolden" unless they're really badly designed. Maybe embedded bitmaps are the issue - try this:
<match target="font">
<test name="pixelsize" compare="more">
<double>16</double>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
As used in my improved fonts config.
I'd like to improve my public config in whatever way possible, so please post the config that you end up with.
Offline
Pages: 1