You are not logged in.

#1 2015-06-07 10:46:22

kenwong
Member
Registered: 2015-04-06
Posts: 21

Font issue: Letter "i"

On some websites, it is not easy to distinguish the letter "i" from "l".  The dot is so close to the the vertical bar.  I have installed infinality.
Here is an example.

How can I improve it?  Thanks!

Offline

#2 2015-06-07 11:13:23

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Font issue: Letter "i"

Play with the INFINALITY_* environment variables.

Check which font it is, and try tweaking the fontconfig rules. E.g. I use:

    <match target="font">
        <test name="family"><string>Arial</string></test>
        <edit mode="assign" name="autohint"><bool>false</bool></edit>
        <edit mode="assign" name="hintstyle"><const>hintfull</const></edit>
    </match>
    <!-- To look clearer when small -->
    <match target="font">
        <test name="family"><string>Arial</string></test>
        <test name="pixelsize" compare="less_eq"><double>10</double></test>
        <test name="weight" compare="less_eq"><const>medium</const></test>
        <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
    </match>

To quickly see the result of the change:

pango-view --font="Arial 10" --text "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 +-;:'#?<>~\""

Offline

Board footer

Powered by FluxBB