View previous topic :: View next topic |
Author |
Message |
Hammett Apprentice
Joined: 26 Jan 2005 Posts: 231 Location: Barcelona, Catalonia
|
Posted: Mon Mar 06, 2023 7:37 pm Post subject: font rendering change in fontconfig 2.14.2 |
|
|
Hi all,
Has anyone noticed monospace fonts being badly rendered with fontconfig-2.14.2 ? Today I ran an update world and noticed the new terminals had badly rendered fonts, it would seem like the fonts are not aliased anymore (forward slash and parenthesis look very blocky).
Haven't noticed changes with non-monospace fonts though...
I haven't changed anything on the fontconfig files, and reverting to fontconfig-2.14.0-r1 solved the issue.
Thanks
Kind regards, _________________ I don't fear the people. I fear the demon inside them. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Mar 06, 2023 7:57 pm Post subject: |
|
|
Which font do you use in your terminal?
Compare the output of
Code: | fc-match -v <your terminal font> |
before and after the update.
On my machine, for example, I get:
Code: | # fc-match -v "Source Code Pro"
Pattern has 42 elts (size 48)
family: "Source Code Pro"(s)
familylang: "en"(s)
style: "Regular"(s)
stylelang: "en"(s)
fullname: "Source Code Pro"(w)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
size: 12(f)(s)
pixelsize: 16(f)(s)
spacing: 100(i)(s)
foundry: "ADBO"(s)
antialias: True(w)
hintstyle: 1(i)(w)
hinting: True(w)
verticallayout: False(s)
autohint: False(w)
globaladvance: True(s)
file: "/usr/share/fonts/source-code-pro/SourceCodePro-Regular.otf"(s)
index: 0(i)(w)
outline: True(s)
scalable: True(s)
dpi: 96(f)(s)
rgba: 5(i)(w)
scale: 1(f)(s)
charset:
....
fontversion: 133562(i)(s)
capability: "otlayout:DFLT otlayout:cyrl otlayout:grek otlayout:latn"(w)
fontformat: "CFF"(s)
embeddedbitmap: False(w)
decorative: False(s)
lcdfilter: 1(i)(w)
namelang: "en"(s)
prgname: "fc-match"(s)
postscriptname: "SourceCodePro-Regular"(s)
color: False(s)
symbol: False(s)
variable: False(s)
fonthashint: False(s)
order: 0(i)(s)
|
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1685
|
Posted: Tue Mar 07, 2023 9:39 am Post subject: |
|
|
There's a few Meson arguments you could try.
Try, for example, MYMESONARGS="-Ddefault-hinting=full" emerge -v1 media-libs/fontconfig (just an example based on the link I've given). |
|
Back to top |
|
|
Hammett Apprentice
Joined: 26 Jan 2005 Posts: 231 Location: Barcelona, Catalonia
|
Posted: Wed Mar 08, 2023 8:24 am Post subject: |
|
|
mike155 wrote: | Which font do you use in your terminal?
Compare the output of
Code: | fc-match -v <your terminal font> |
before and after the update.
On my machine, for example, I get:
Code: | # fc-match -v "Source Code Pro"
Pattern has 42 elts (size 48)
family: "Source Code Pro"(s)
familylang: "en"(s)
style: "Regular"(s)
stylelang: "en"(s)
fullname: "Source Code Pro"(w)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
size: 12(f)(s)
pixelsize: 16(f)(s)
spacing: 100(i)(s)
foundry: "ADBO"(s)
antialias: True(w)
hintstyle: 1(i)(w)
hinting: True(w)
verticallayout: False(s)
autohint: False(w)
globaladvance: True(s)
file: "/usr/share/fonts/source-code-pro/SourceCodePro-Regular.otf"(s)
index: 0(i)(w)
outline: True(s)
scalable: True(s)
dpi: 96(f)(s)
rgba: 5(i)(w)
scale: 1(f)(s)
charset:
....
fontversion: 133562(i)(s)
capability: "otlayout:DFLT otlayout:cyrl otlayout:grek otlayout:latn"(w)
fontformat: "CFF"(s)
embeddedbitmap: False(w)
decorative: False(s)
lcdfilter: 1(i)(w)
namelang: "en"(s)
prgname: "fc-match"(s)
postscriptname: "SourceCodePro-Regular"(s)
color: False(s)
symbol: False(s)
variable: False(s)
fonthashint: False(s)
order: 0(i)(s)
|
|
Hi, the font is the same (was the first thing I checked), but it is just rendered badly. Forward slahes would look like 4 diagonal squares, ie, not aliased at all.
sam_ wrote: | There's a few Meson arguments you could try.
Try, for example, MYMESONARGS="-Ddefault-hinting=full" emerge -v1 media-libs/fontconfig (just an example based on the link I've given). |
I'll have a look. Thanks! _________________ I don't fear the people. I fear the demon inside them. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Wed Mar 08, 2023 11:58 am Post subject: |
|
|
Hammett wrote: | Hi, the font is the same (was the first thing I checked), but it is just rendered badly. Forward slahes would look like 4 diagonal squares, ie, not aliased at all.
|
@Hammet: the output of the command I posted above shows the font rendering parameters, like antialiasing, hinting, lcdfilter, etc. Is there a difference in those parameters before and after the update? |
|
Back to top |
|
|
Hammett Apprentice
Joined: 26 Jan 2005 Posts: 231 Location: Barcelona, Catalonia
|
Posted: Wed Mar 08, 2023 5:13 pm Post subject: |
|
|
mike155 wrote: | Hammett wrote: | Hi, the font is the same (was the first thing I checked), but it is just rendered badly. Forward slahes would look like 4 diagonal squares, ie, not aliased at all.
|
@Hammet: the output of the command I posted above shows the font rendering parameters, like antialiasing, hinting, lcdfilter, etc. Is there a difference in those parameters before and after the update? |
Hi Mike155, apologies, I read the post too quickly:
output of fontconfig-2.14.2:
Code: | Pattern has 42 elts (size 48)
family: "Victor Mono"(s)
familylang: "en"(s)
style: "Regular"(s)
stylelang: "en"(s)
fullname: "Victor Mono Regular"(w)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
size: 12(f)(s)
pixelsize: 12.5(f)(s)
spacing: 100(i)(s)
foundry: "UKWN"(s)
antialias: True(w)
hintstyle: 3(i)(s)
hinting: True(s)
verticallayout: False(s)
autohint: True(w)
globaladvance: True(s)
file: "/home/hammett/.local/share/fonts/VictorMono-Regular.ttf"(s)
0021: 00000000 00000004 ffff0000 00000000 03ff0200 00000000 00140000 00000000
0022: 440683ad 00000f80 00000100 00000033 000000fc 00000000 00000000 00000000
0023: 00000f00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0025: ffffffff ffffffff ffffffff ffffffff ffffffff 00000000 00000400 00000000
0026: 00000000 00000000 00000005 00000000 00000000 00000000 00000000 00000000
0027: 00400000 00000000 00000000 00000000 00000000 00000000 00000000 00000300
00a6: 00000000 00000000 c0000000 00000000 00000000 00000000 00000000 00000000
00e0: 00000000 00000000 00000000 00000000 00000000 000f0007 00000000 00000000
(s)
lang: aa|ab|av|ay|ba|be|bg|bi|bin|br|bs|bua|ce|ch|chm|co|cs|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gn|gv|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kum|kv|ky|lb|lez|lt|lv|mg|mh|mk|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|se|sel|sh|sk|sl|sma|smj|smn|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn|tr|ts|tt|tyv|uk|uz|vi|vo|vot|wa|wen|wo|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|ty|za(s)
fontversion: 99614(i)(s)
capability: "otlayout:DFLT otlayout:cyrl otlayout:latn"(w)
fontformat: "TrueType"(s)
embeddedbitmap: True(s)
decorative: False(s)
namelang: "en"(s)
prgname: "fc-match"(s)
postscriptname: "VictorMono-Regular"(s)
color: False(s)
symbol: False(s)
variable: False(s)
fonthashint: True(s)
order: 0(i)(s)
embeiddedbitmap: True(w) |
Output of fontconfig-2.14.2
Code: | Pattern has 42 elts (size 48)
family: "Victor Mono"(s)
familylang: "en"(s)
style: "Regular"(s)
stylelang: "en"(s)
fullname: "Victor Mono Regular"(w)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
size: 12(f)(s)
pixelsize: 12.5(f)(s)
spacing: 100(i)(s)
foundry: "UKWN"(s)
antialias: True(w)
hintstyle: 3(i)(s)
hinting: True(s)
verticallayout: False(s)
autohint: True(w)
globaladvance: True(s)
file: "/home/hammett/.local/share/fonts/VictorMono-Regular.ttf"(s)
index: 0(i)(w)
outline: True(s)
scalable: True(s)
dpi: 75(f)(s)
rgba: 5(i)(w) 1(i)(w)
scale: 1(f)(s)
charset:
0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
0001: ffcfffff 7ef3cfff ffff3dfe 7fffffff 00040000 00018003 1fffe000 00000000
0002: 0f000000 00800000 00000000 00000000 00000000 10000000 3f0000c0 00000000
0003: 08041fdf 000001c8 00000000 40300000 ffffd7f0 fffffffb 0080ffff 00000000
0004: ffffffff ffffffff ffffffff 003f0cfc ffffc000 ffffffff ffffffff 33ffffff
0023: 00000f00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0025: ffffffff ffffffff ffffffff ffffffff ffffffff 00000000 00000400 00000000
0026: 00000000 00000000 00000005 00000000 00000000 00000000 00000000 00000000
0027: 00400000 00000000 00000000 00000000 00000000 00000000 00000000 00000300
00a6: 00000000 00000000 c0000000 00000000 00000000 00000000 00000000 00000000
00e0: 00000000 00000000 00000000 00000000 00000000 000f0007 00000000 00000000
(s)
lang: aa|ab|av|ay|ba|be|bg|bi|bin|br|bs|bua|ce|ch|chm|co|cs|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gn|gv|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kum|kv|ky|lb|lez|lt|lv|mg|mh|mk|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|se|sel|sh|sk|sl|sma|smj|smn|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn|tr|ts|tt|tyv|uk|uz|vi|vo|vot|wa|wen|wo|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|ty|za(s)
fontversion: 99614(i)(s)
capability: "otlayout:DFLT otlayout:cyrl otlayout:latn"(w)
fontformat: "TrueType"(s)
embeddedbitmap: True(s)
decorative: False(s)
namelang: "en"(s)
prgname: "fc-match"(s)
postscriptname: "VictorMono-Regular"(s)
color: False(s)
svariable: False(s)
fonthashint: True(s)
order: 0(i)(s)
embeiddedbitmap: True(w)ymbol: False(s) |
Few extra lines show in the newest fontconfig, but I cannot see anything that could account for the degradation in rendering quality. Perhaps Outline?
You can find an image here. Top half is fontconfig 2-14-0-r1 and bottom half fontconfig-2.14.2.
https://postimg.cc/LYgspZLG
Image does not make justice, but bottom half is definitely worse on my monitor.
Thanks! _________________ I don't fear the people. I fear the demon inside them. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1685
|
Posted: Sat Mar 11, 2023 7:30 pm Post subject: |
|
|
Someone filed bug 900681 earlier which may be related. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|