You are not logged in.
The monospace font on https://wiki.python.org/moin/Vim look a bit off.
Here is a screenshot: http://i.imgur.com/4nGlhyE.png
The inspector shows the font as Courier Prime
I use these fontconfig rules:
<!-- Probably best version of Courier
http://quoteunquoteapps.com/courierprime/ -->
<match target="font">
<test name="family"><string>Courier Prime</string></test>
<test name="slant" compare="not_eq"><const>roman</const></test>
<edit mode="assign" name="autohint"><bool>false</bool></edit>
<edit mode="assign" name="hintstyle"><const>hintfull</const></edit>
</match>
<match target="font">
<test name="family"><string>Courier Prime</string></test>
<test name="weight" compare="more_eq"><const>bold</const></test>
<edit mode="assign" name="autohint"><bool>false</bool></edit>
<edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
</match>
Offline
I use these fontconfig rules:
<!-- Probably best version of Courier http://quoteunquoteapps.com/courierprime/ --> <match target="font"> <test name="family"><string>Courier Prime</string></test> <test name="slant" compare="not_eq"><const>roman</const></test> <edit mode="assign" name="autohint"><bool>false</bool></edit> <edit mode="assign" name="hintstyle"><const>hintfull</const></edit> </match> <match target="font"> <test name="family"><string>Courier Prime</string></test> <test name="weight" compare="more_eq"><const>bold</const></test> <edit mode="assign" name="autohint"><bool>false</bool></edit> <edit mode="assign" name="hintstyle"><const>hintslight</const></edit> </match>
I put them in /etc/fonts/conf.d/99-tt-courier-prime.conf, and ran fc-cache -f. Restarted the browser, but no effect. Still look the same.
Last edited by easysid (2016-02-08 16:37:14)
Desktop screenshots :: Origami :: github
Offline
a. added the 1st two repos, b. installed the bundle, c. absosmurfly unclear on how to configure/use this (font rendering looks the same to me), d. removed entire thing.
Offline
Still look the same.
So, check yourself that the rules are actually taking effect - then tweak them.
To prove that the rules take effect, I like to use:
<edit mode="assign" name="antialias"><bool>false</bool></edit>
... because that is usually the most noticeable change (making the font look horrible).
Offline
easysid wrote:The monospace font on https://wiki.python.org/moin/Vim look a bit off.
Here is a screenshot: http://i.imgur.com/4nGlhyE.png
The inspector shows the font as Courier Prime
I use these fontconfig rules:
<!-- Probably best version of Courier http://quoteunquoteapps.com/courierprime/ --> <match target="font"> <test name="family"><string>Courier Prime</string></test> <test name="slant" compare="not_eq"><const>roman</const></test> <edit mode="assign" name="autohint"><bool>false</bool></edit> <edit mode="assign" name="hintstyle"><const>hintfull</const></edit> </match> <match target="font"> <test name="family"><string>Courier Prime</string></test> <test name="weight" compare="more_eq"><const>bold</const></test> <edit mode="assign" name="autohint"><bool>false</bool></edit> <edit mode="assign" name="hintstyle"><const>hintslight</const></edit> </match>
the site you mentioned uses monospace fonts
so you need to check for "monospace" font family in your .conf files.
For example I use Cousine for monospace and this is how it looks:
http://i.imgur.com/GlQnTrn.png
Offline
So, check yourself that the rules are actually taking effect - then tweak them.
To prove that the rules take effect, I like to use:
<edit mode="assign" name="antialias"><bool>false</bool></edit>
... because that is usually the most noticeable change (making the font look horrible).
I tried that. The webpage looks the same. Maybe the settings aren't taking effect.
I only changed them in 99-tt-courier-prime.conf, and ran fc-cache -f. Restarted just the browser. Maybe a full restart is needed.
the site you mentioned uses monospace fonts
so you need to check for "monospace" font family in your .conf files.For example I use Cousine for monospace and this is how it looks:
http://i.imgur.com/GlQnTrn.png
~ $ fc-match monospace
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
Here is a screenshot from the page: http://i.imgur.com/pXUikK8.png
FWIW, I think that other fonts are a bit off as well, but monospace looks bad to even my untrained eyes.
Last edited by easysid (2016-02-10 08:49:07)
Desktop screenshots :: Origami :: github
Offline
This has to be python.org messing with the font styling in some way because Courier Prime on archlinux.org looks fine:
but Courier Prime on python.org looks janky as hell:
Offline
Can you share the list with sym-links in /etc/fonts/conf.d ?
Maybe there is a problem with "selective-rendering" for specific fonts
It also would be nice if you execute this commands in a new terminal session :
"fc-cache -vr && sudo fc-cache -vr"
when you run fc-cache under root the program will work with system cache in /var/cache/fontconfig/
Offline
Can you share the list with sym-links in /etc/fonts/conf.d ?
Maybe there is a problem with "selective-rendering" for specific fonts
It also would be nice if you execute this commands in a new terminal session :
"fc-cache -vr && sudo fc-cache -vr"
when you run fc-cache under root the program will work with system cache in /var/cache/fontconfig/
Done. What did you mean by new terminal session? A different tty?
This has to be python.org messing with the font styling in some way because Courier Prime on archlinux.org looks fine:
http://i.imgur.com/e2hJKuA.png
but Courier Prime on python.org looks janky as hell:
http://i.imgur.com/aWBhyJo.png
Might be the case. Here is courier prime on Arch forum
Last edited by easysid (2016-02-10 15:16:52)
Desktop screenshots :: Origami :: github
Offline
The string on python.org looks like this:
font-family: courier, monospace;
so at first the browser will use alias for courier, and then for monospace fonts.
Could you execute this command: fc-match Courier ?
Last edited by Voyager (2016-02-10 16:12:02)
Offline
It also would be nice if you execute this commands in a new terminal session :
"fc-cache -vr && sudo fc-cache -vr"
when you run fc-cache under root the program will work with system cache in /var/cache/fontconfig/
Done. What did you mean by new terminal session? A different tty?
In a new tty. It's actually doesn't matter, just to be 100% sure that all pass ok.
Offline
The string on python.org looks like this:
font-family: courier, monospace;
so at first the browser will use alias for courier, and then for monospace fonts.
Could you execute this command: fc-match Courier ?
~ $ fc-match courier
Courier Prime.ttf: "Courier Prime" "Regular"
Liberation mono seems fine on that site, and Courier prime seems fine on this (Arch forum) site. I think we can safely conclude that it is a website specific issue as ixi pointed out? Courier Prime on python.org seems to be problematic. I can probably request people to visit the site and check the same.
Thanks.
Desktop screenshots :: Origami :: github
Offline
Well, as I can see, this forum uses Consolas, not Courier
One more string in config files...
Offline
Hi
I have a problems with a MKV videos with embedded fonts
infinality changing completely the behavior of those fonts, change one for others, breaking the sub typesetting and softsub signs edition (used instead of a hardsub (burn directly in the video))
how to disable all preset for use real font supplied by the MKV?
'ms' preset change the fonts to ms fonts (if installed), 'free' preset change all license fonts like a MS core fonts to a free fonts, and 'combi' preset make a mix of both..... but no exist any preset to use a real font (disable all font substitutions) (like a vanilla fontconfig (?))
greetings
bumped
Offline
sl1pkn07,
I think it's a problem of the player that you use.
Try to reset its settings.
Even if mkv contain subtitles, I'm sure that it does not contain font rendering settings
Offline
with "font rendering settings" you mean font substitution config files included in infinality font repository and activated yes or yes with fontconfig-infinality?
because it is my problem. if the mkv have, for example, the Arial font embeded, fontconfig-infinality change it with a free font counterpart instead of use the embeded font
this is not the problem of player (mpv in this case, which uses libass for render the subtitle, which uses fontconfig for select the font use in that subtitle, as mplayer, mplayer2, etc), is problem of the fontconfig-infinality because is not possible disable all font substitution (set fc-presets to none)
greetings
Last edited by sl1pkn07 (2016-02-10 20:59:55)
Offline
with "font rendering settings" you mean font substitution config files included in infinality font repository and activated yes or yes with fontconfig-infinality?
because it is my problem. if the mkv have, for example, the Arial font embeded, fontconfig-infinality change it with a free font counterpart instead of use the embeded font
this is not the problem of player (mpv in this case, which uses libass for render the subtitle, which uses fontconfig for select the font use in that subtitle, as mplayer, mplayer2, etc), is problem of the fontconfig-infinality because is not possible disable all font substitution (set fc-presets to none)
greetings
I could be wrong, but mkv "knows" what to show you, but it does not have any fonts or font settings.
Have you tried smplayer? it's a gui for mplayer with nice interface settings
Offline
it is not necessary, because is not problem of the player/gui
as i said, libass (Advanced Substation Apha (.ass) subtitle rendering library used by mpv, mplayer2, mplayer, etc) calls fontconfig for select what font is need each line of subtitle(can handle each letter with each font individuality).
if libass say need Arial(included in the mkv as embedded attachment), and fontconfig have that font replaced to other(dejavu for example), libass render the replaced font(dejavu)
a good fix is can disable all font substitution with fc-presets. because manual intervention (remove that sustitution) can lead fontconfig-infinality malfunction
greetings
Offline
I'm not sure it is possible, all I can suggest is to make your own config file, for example 99-arial-alias.conf.
Put this strings there and see the result:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match>
<test name="family"><string>Arial</string></test>
<edit name="family" mode="assign" binding="strong">
<string>Arimo</string>
</edit>
</match>
</fontconfig>
When something will call for Arial font family the Arimo font will be used.
It will affect the whole system, but you will know is it a specific font problem or it is a rendering problem.
Last edited by Voyager (2016-02-10 23:35:45)
Offline
I could be wrong, but mkv "knows" what to show you, but it does not have any fonts or font settings.
The only sense in which this is true, is that mkv does not "have" a subtitle format.
Otherwise -- SSA / ASS subtitles, which is one of the types mkv supports, may indeed contain fonts, and frequently do. Most fansubs I've seen use a font selected specifically for that series. This is not obligatory (a font may be requested just by name + size, alternatively), but it is common.
Last edited by likytau (2016-02-11 00:35:22)
Offline
infinality in 2.6.3 is broken
Offline
Voyager wrote:I could be wrong, but mkv "knows" what to show you, but it does not have any fonts or font settings.
The only sense in which this is true, is that mkv does not "have" a subtitle format.
Didn't know that. Thanks.
Offline
Just a word of thanks for the infinality bundle. I rescued an ancient laptop (HP dx1000) and put Arch on it to get the fastest performance I could (LXDE desktop) but the fonts were hurting my eyes. All better now.
I trust Microsoft about as far as I can comfortably spit a dead rat.
Cinnamon is a wonderful desktop
"Faith is the substance of things hoped for, the evidence of things not seen."
Offline
Offline
brebs, Gentoo's patch is not the latest.
the latest patch doesn't work, but there was pull request for compatibility with 2.6.3, and it works right.
Offline