bohoomil / fontconfig-ultimate

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

[Not a bug] Regarding my last email #114

Open 0xBRM opened 8 years ago

0xBRM commented 8 years ago

I talked about changing the weight of fonts globally (or even on a per family basis, that would be ideal), without resorting to emboldening, and here is why:

Font rendering

Notice how light the kanji look compared to the other fonts. They would look much nicer if one were able to increase their weight, and more in line with the English alphabet.

bohoomil commented 8 years ago

Did you try using preset 4 or 5 instead of 3 in infinality-settings.sh?

### Available styles:
### 1 <> extra sharp
### 2 <> sharper & lighter ultimate
### 3 <> ultimate: well balanced (default)
### 4 <> darker & smoother
### 5 <> darkest & heaviest ("MacIsh")

USE_STYLE="3"

if [ "$USE_STYLE" = "1" ]; then
  export INFINALITY_FT_FILTER_PARAMS="04 22 38 22 04"
elif [ "$USE_STYLE" = "2" ]; then
  export INFINALITY_FT_FILTER_PARAMS="06 22 36 22 06"
elif [ "$USE_STYLE" = "3" ]; then
  export INFINALITY_FT_FILTER_PARAMS="08 24 36 24 08"
elif [ "$USE_STYLE" = "4" ]; then
  export INFINALITY_FT_FILTER_PARAMS="10 25 37 25 10"
elif [ "$USE_STYLE" = "5" ]; then
  export INFINALITY_FT_FILTER_PARAMS="12 28 42 28 12"
fi
0xBRM commented 8 years ago

I did, but nothing happened, so there might be something odd about my setup.

bohoomil commented 8 years ago

There are two handy debugging oneliners you may want to use:

  1. grep Xft <(xrdb -q) -- returns your Xft settings.
  2. grep INFINALITY <(env) -- returns your Infinality configuration.

If you set a different rendering style, it should be reflected in this line:

INFINALITY_FT_FILTER_PARAMS=08 24 36 24 08  <-- values for presets 1-5
0xBRM commented 8 years ago

You're fast!

http://screenshotcomparison.com/comparison/147611 Both were saved in png, by opening Firefox's commandline (compiled with the system-cairo USE flag) and typing screenshot tokyo_profile$NUMBER.png.

Note: My FF is set to use the Liberation fonts (serif and sans serif) and Bitstream Vera Sans Mono (monospace). Note2: Using KDE.

@space:~ ⇒  equery uses firefox | grep system-cairo
+system-cairo
@space ~ ⇒ grep Xft <(xrdb -q)
Xft.antialias:  1
Xft.autohint:   0
Xft.dpi:        103
Xft.hinting:    1
Xft.hintstyle:  hintslight
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb

Profile 3:

@space:~ ⇒  grep INFINALITY <(env)
INFINALITY_FT_STEM_FITTING_STRENGTH=15
INFINALITY_FT_USE_VARIOUS_TWEAKS=true
INFINALITY_FT_FILTER_PARAMS=08 24 36 24 08
INFINALITY_FT_FRINGE_FILTER_STRENGTH=25
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=15
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=25

Profile 4 (rebooted):

@space:~ ⇒  grep INFINALITY <(env)
INFINALITY_FT_STEM_FITTING_STRENGTH=15
INFINALITY_FT_USE_VARIOUS_TWEAKS=true
INFINALITY_FT_FILTER_PARAMS=10 25 37 25 10
INFINALITY_FT_FRINGE_FILTER_STRENGTH=25
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=15
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=25

eselect fontconfig list shows 52-infinality.conf is the only option selected. eselect infinality list shows ultimate-free is the only option selected. eselect lcdfilter list shows ultimate is the only option selected.

Update: I have checked ~/.config/fontconfig/ and it's the same as https://github.com/bohoomil/fontconfig-ultimate/tree/master/doc/fontconfig-infinality-ultimate/fontconfig-user so global settings aren't being overwritten.

Oh, and thanks for bringing proper (the best, really) font rendering to GNU/Linux.