Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717286 - media-fonts/fira-code: add ttf USE flag
Summary: media-fonts/fira-code: add ttf USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-13 09:01 UTC by Andrew Udvare
Modified: 2020-05-05 06:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2020-04-13 09:01:24 UTC
Pull request here: https://github.com/gentoo/gentoo/pull/13375

The ttf USE flag installs TTF files instead of OTF files (except for the Symbol font).

Fira Code 2 has significantly changed metrics and the OTF files tend to render blurry for certain characters (f, _) with the same fontconfig. The TTF files do not have this problem.

Related thread: https://github.com/tonsky/FiraCode/issues/798#issuecomment-544230516
Comment 1 Hans de Graaff gentoo-dev Security 2020-04-14 05:54:15 UTC
Reading through the associated bug and linked issues it is clear that upstream recommends to always use the TTF files on Linux because they contain hinting information that is needed for crisp rendering. If this is that case then it probably makes more sense to install the TTF files by default (and I'm not sure it makes sense to offer an OTF install.

I'd like to get the opinion of our fonts team on this since I don't know enough about how we prefer to handle this.
Comment 2 Joonas Niilola gentoo-dev 2020-04-14 06:16:46 UTC
Then you'll most likely have to wait for a long time.

I'd vote for installing TTF here unconditionally. Preferring OTF over TTF is just a recommendation, not a policy.
Comment 3 Larry the Git Cow gentoo-dev 2020-05-05 06:57:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5a4752edf9d8cfe3675a072ad17761a5c7e943d

commit d5a4752edf9d8cfe3675a072ad17761a5c7e943d
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-05-05 06:56:51 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-05-05 06:56:59 +0000

    media-fonts/fira-code: add 3.1
    
    Starting with this version the TTF font files are installed. This is the
    recommended install on Linux and should provide better rendering
    quality.
    
    Thanks to Andrew Udvare for pointing this out.
    
    Closes: https://bugs.gentoo.org/717286
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 media-fonts/fira-code/Manifest             |  1 +
 media-fonts/fira-code/fira-code-3.1.ebuild | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)