You are not logged in.

#1 2015-03-21 23:42:52

Pierrre
Member
Registered: 2014-10-27
Posts: 10

Font rendering issue with Adobe Source Sans Pro

I want to use Adobe Source Sans Pro as my environment desktop font.
There are 2 sources:
- adobe-source-sans-pro-fonts => OTF files
- ttf-google-fonts-git from AUR => TTF files

I'd like to use adobe-source-sans-pro-fonts instead of ttf-google-fonts-git because it's really big and I don't need all the fonts.
BUT
The font rendering is ugly on my desktop with adobe-source-sans-pro-fonts (not sharp/accurate).
It's nice with ttf-google-fonts-git.

What is the difference between ttf-google-fonts-git and adobe-source-sans-pro-fonts?
The only difference I see is OTF and TTF files.
If I open the font files manually with gnome-font-viewer, the TTF one is fine, but the OTF one is ugly.

I use xfce with font hinting enabled.

Any idea?

Last edited by Pierrre (2015-03-23 08:25:50)

Offline

#2 2015-03-22 10:23:26

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

Re: Font rendering issue with Adobe Source Sans Pro

Pierrre wrote:

Adobe Source Code Pro as my environment desktop font.

Fix your fontconfig rules - I use:

    <match target="font">
        <test name="family"><string>Source Code Pro</string></test>
        <edit mode="assign" name="autohint"><bool>true</bool></edit>
        <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
    </match>

    <match target="font">
        <test name="family"><string>@font-face:Source Sans Pro</string></test>
        <edit mode="assign" name="autohint"><bool>true</bool></edit>
        <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
    </match>

Then see the difference that the rules make:

pango-view --font="Source Code Pro 10" --text "abcdefghijklmnopqrstuvwxyz 1234567890 +-;:'#?<>~\""

I use xfce with font hinting enabled.

That's nonsense. It's *fontconfig* that decides the font hinting, not the GUI.

The XFCE devs seem to be stuck in the 90s sad

Offline

#3 2015-03-22 12:13:27

Pierrre
Member
Registered: 2014-10-27
Posts: 10

Re: Font rendering issue with Adobe Source Sans Pro

Thank you, but your font config rules don't fix my issue sad
I copy-pasted it in /etc/fonts/conf.d/51-local.conf then reboot, but the font rendering is still ugly.

The only difference is ttf-google-fonts-git uses TTF files and adobe-source-sans-pro-fonts uses OTF.
Is it an issue with OTF rendering?
Is there an issue with adobe-source-sans-pro-fonts package?

Offline

#4 2015-03-22 22:54:52

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

Re: Font rendering issue with Adobe Source Sans Pro

$ fc-match "Source Code Pro"
SourceCodePro-Regular.otf: "Source Code Pro" "Regular"

Which comes from texlive:
/usr/share/texmf-dist/fonts/opentype/adobe/sourcecodepro/SourceCodePro-Regular.otf

Oh, and I'm using bohoomil's Infinality font-rendering patches. Which you are too, if you actually care about beautiful font-rendering wink

I have seen this happen before, I vaguely recall, where the opentype version renders better than the truetype version. Dunno why.

Texlive comes with loads of opentype fonts, so that's great. To take advantage of them, I have:

/etc/fonts/conf.d/09-texlive-fonts.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <dir>/usr/share/texmf-dist/fonts/type1/adobe</dir>
    <dir>/usr/share/texmf-dist/fonts/afm</dir>
    <dir>/usr/share/texmf-dist/fonts/opentype</dir>
    <dir>/usr/share/texmf-dist/fonts/truetype</dir>
</fontconfig>

BTW, you don't need to *reboot*, to see the change. Just re-run the pango-view command, or close & reopen the browser.

Offline

#5 2015-03-23 08:33:33

Pierrre
Member
Registered: 2014-10-27
Posts: 10

Re: Font rendering issue with Adobe Source Sans Pro

There was 1 error in my first post: I want to use Source SANS Pro, not Source CODE Pro.

I've the same problem with Gnome 3: the OTF font is ugly.

Offline

#6 2015-03-23 08:40:57

Pierrre
Member
Registered: 2014-10-27
Posts: 10

Re: Font rendering issue with Adobe Source Sans Pro

Screenshots:

ttf-google-fonts-git
http://i.imgur.com/1g8eKj5.png

adobe-source-sans-pro-fonts
http://i.imgur.com/hVth52q.png



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

Board footer

Powered by FluxBB