bohoomil / fontconfig-ultimate

freetype2-infinality run-time settings => infinality compatible fontconfig => infinality-bundle
454 stars 38 forks source link

How to make consolas hintslight, when the system uses hintfull? #172

Closed vooze closed 7 years ago

vooze commented 8 years ago

Thank you for the great font rendering! I just finished compiling it for ubuntu 16.04.

I'm using hintfull as I think that looks best for most fonts, but consolas, since it works best with hinslight, most fonts works just fine and infinality is tuned to choose hintslight/full for different fonts (when autohinting like browsers I think)

Is this even possible? I have selected hintfull in unity-tweak-tool under fonts.

I tried this:

  <match target="font">
    <test name="family">
      <string>Consolas</string>
    </test>
    <test name="weight" compare="less">
      <const>medium</const>
    </test>
    <test name="pixelsize" compare="less">
      <double>13.5</double>
    </test>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintslight</const>
    </edit>
    <edit name="lcd_filter" mode="assign">
      <const>lcdlegacy</const>
    </edit>
  </match>

But it seems to do nothing in terminal and other desktop applications.. The problem is with with bold fonts are too bold/unclear, when using hintfull for some reason.

Thank you :)