You are not logged in.

#1851 2016-02-08 12:02:29

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

Re: infinality-bundle: good looking fonts made (even) easier

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>

Offline

#1852 2016-02-08 16:12:55

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: infinality-bundle: good looking fonts made (even) easier

brebs wrote:

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)

Offline

#1853 2016-02-08 16:20:51

brontosaurusrex
Member
Registered: 2016-01-11
Posts: 20
Website

Re: infinality-bundle: good looking fonts made (even) easier

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

#1854 2016-02-08 18:23:25

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

Re: infinality-bundle: good looking fonts made (even) easier

easysid wrote:

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

#1855 2016-02-09 14:02:41

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

brebs wrote:
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

#1856 2016-02-10 08:48:05

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: infinality-bundle: good looking fonts made (even) easier

brebs wrote:

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.

Voyager wrote:

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)

Offline

#1857 2016-02-10 10:45:31

ixi
Member
Registered: 2013-09-11
Posts: 9

Re: infinality-bundle: good looking fonts made (even) easier

This has to be python.org messing with the font styling in some way because Courier Prime on archlinux.org looks fine:
e2hJKuA.png
but Courier Prime on python.org looks janky as hell:
aWBhyJo.png

Offline

#1858 2016-02-10 13:13:47

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

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

#1859 2016-02-10 14:54:04

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: infinality-bundle: good looking fonts made (even) easier

Voyager wrote:

Can you share the list with sym-links in /etc/fonts/conf.d ?
Maybe there is a problem with "selective-rendering" for specific fonts

http://pastebin.com/uG6NS9fp

Voyager wrote:

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?

ixi wrote:

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

Bdgys57.png

Last edited by easysid (2016-02-10 15:16:52)

Offline

#1860 2016-02-10 15:42:11

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

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

#1861 2016-02-10 16:15:05

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

Voyager wrote:

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

#1862 2016-02-10 16:47:08

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: infinality-bundle: good looking fonts made (even) easier

Voyager wrote:

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.

Offline

#1863 2016-02-10 16:57:40

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

Well, as I can see, this forum uses Consolas, not Courier
One more string in config files... smile

Offline

#1864 2016-02-10 18:19:01

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: infinality-bundle: good looking fonts made (even) easier

sl1pkn07 wrote:

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

#1865 2016-02-10 18:33:54

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

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

#1866 2016-02-10 19:36:07

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: infinality-bundle: good looking fonts made (even) easier

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

#1867 2016-02-10 21:25:45

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

sl1pkn07 wrote:

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

#1868 2016-02-10 22:58:39

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: infinality-bundle: good looking fonts made (even) easier

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

#1869 2016-02-10 23:20:51

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

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

#1870 2016-02-11 00:33:44

likytau
Member
Registered: 2012-09-02
Posts: 142

Re: infinality-bundle: good looking fonts made (even) easier

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.

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

#1871 2016-02-11 11:39:00

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: infinality-bundle: good looking fonts made (even) easier

infinality in 2.6.3 is broken

Offline

#1872 2016-02-11 15:24:03

Voyager
Member
Registered: 2014-06-10
Posts: 26

Re: infinality-bundle: good looking fonts made (even) easier

likytau wrote:
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

#1873 2016-02-17 03:26:09

Kilz
Member
Registered: 2008-03-01
Posts: 140

Re: infinality-bundle: good looking fonts made (even) easier

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

#1874 2016-02-17 20:30:08

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

Re: infinality-bundle: good looking fonts made (even) easier

Perfect Gentleman wrote:

infinality in 2.6.3

Gentoo have patches for 2.6.3 - see ebuild:

infinality? ( https://dev.gentoo.org/~polynomial-c/${INFINALITY_PATCH}.xz )"

So the patch is here.

Offline

#1875 2016-02-18 08:34:09

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: infinality-bundle: good looking fonts made (even) easier

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

Board footer

Powered by FluxBB