[Fontconfig] Can't enable any bitmap fonts except Fixed, Unifont and WQY
a at colourful.land
a at colourful.land
Fri Oct 5 04:21:25 UTC 2018
On Wed, 26 Sep 2018, Akira TAGOH wrote:
> On Tue, Sep 25, 2018 at 7:27 PM Weiwu Zhang <a at colourful.land> wrote:
>>
>> In the past decade, enabling bitmap is as easy as linking
>> 70-force-bitmaps.conf in /etc/fonts/conf.d while removing any
>> references to 70-no-bitmaps.conf
>
> I don't know what 70-force-bitmaps.conf does though
Oh, I used it on Debian and Ubuntu so I thought it were part of fontconfig
project. I included it in the end of this email†.
> you could check some steps to see why it doesn't appear on your box.
> First, you can see with fc-cache -v if the targeted directory is
> scanned by fontconfig and fonts are cached properly.
It looks normal:
$ fc-cache -v | grep 100
/usr/share/fonts/X11/100dpi: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/100dpi is the directory where helvetica is:
$ du -c /usr/share/fonts/X11/100dpi/helv* | tail
8 /usr/share/fonts/X11/100dpi/helvR24-ISO8859-2.pcf.gz
8 /usr/share/fonts/X11/100dpi/helvR24-ISO8859-3.pcf.gz
8 /usr/share/fonts/X11/100dpi/helvR24-ISO8859-4.pcf.gz
8 /usr/share/fonts/X11/100dpi/helvR24-ISO8859-9.pcf.gz
1544 total
> if not at this
> stage, you may need to update your conf to get it cached. otherwise
> some config might be wrong. it works for me at least:
>
> $ fc-match -f '%{family}: %{file}\n' helvetica
> Helvetica: /usr/share/X11/fonts/100dpi/helvR08.pcf.gz
Not for me:
$ fc-match -f '%{family}: %{file}\n' helvetica
TeX Gyre Heros: /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf
What OS are you using? I'm thinking this is a Debian/Ubuntu specific problem.
† about 70-force-bitmaps.conf
$ cat /etc/fonts/conf.avail/70-force-bitmaps.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Accept bitmap fonts -->
<selectfont>
<acceptfont>
<pattern>
<patelt name="scalable"><bool>false</bool></patelt>
</pattern>
</acceptfont>
</selectfont>
</fontconfig>
More information about the Fontconfig
mailing list