[OpenIndiana-discuss] Fonts in some websites become pixelated
Udo Grabowski (IMK)
udo.grabowski at kit.edu
Wed Jul 31 09:56:12 UTC 2024
On 31/07/2024 11:39, Peter Tribble wrote:
> On Wed, Jul 31, 2024 at 4:42 AM scavenger via openindiana-discuss <
> openindiana-discuss at openindiana.org> wrote:
>
>> Please review the way you configure fonts in your OS. In
>> /etc/fonts/conf.d, you are putting conflicting configuration files. For
>> example: 70-yes-bitmaps.conf and 70-no-bitmaps.conf are both there. Can you
>> guess what is the effect of this? I can't.
>>
>
> Oh dear, that's horribly broken.
>
> The way that fontconfig works is to install a whole list of template
> configuration files into
> .../conf.avail, and then symlinks are placed into conf.d to pick up the
> configuration you
> actually want.
>
> The OpenIndiana build appears to trample all over this. There's a minor
> bug, in that you
> can use --with-templatedir='/etc/fonts/conf.avail' rather than the current
> mechanism of
> leaving it at the default /usr/share/fontconfig/conf.avail and moving it
> after the install.
> But the actual problem is caused by creating symbolic links in conf.d for
> *all* the files
> in conf.avail, rather than (a) either leaving the links that 'make install'
> creates alone, or
> (b) removing and recreating only the symlinks that are present in conf.d
> (the way that
> solaris-userland does it, where it notes that 'Make links in conf.d be
> relative links to
> ../conf.avail instead of absolute').
>
And it looks screwed up inside the files, too, reject=no for no-bitmaps
and accept=no for yes-bitmaps:
# cat /etc/fonts/conf.d/70-no-bitmaps.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<description>Reject bitmap fonts</description>
<!-- Reject bitmap fonts -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="outline"><bool>false</bool></patelt>
</pattern>
</rejectfont>
</selectfont>
</fontconfig>
# cat /etc/fonts/conf.d/70-yes-bitmaps.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<description>Accept bitmap fonts</description>
<!-- Accept bitmap fonts -->
<selectfont>
<acceptfont>
<pattern>
<patelt name="outline"><bool>false</bool></patelt>
</pattern>
</acceptfont>
</selectfont>
</fontconfig>
--
Dr.Udo Grabowski Inst.of Meteorology & Climate Research IMK-ASF-SAT
https://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology https://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026
More information about the openindiana-discuss
mailing list