Skip to content

Why does `ttf-font` have only 10 providers?

I believe the title is self-explanatory, but let me add some context.

For me, this question arises from the dependency of firefox on ttf-font and my dislike of having fonts I don't ever use on my system (any graphical drop-down with fonts becomes very messy very quickly).

A thing I did was install the font I actually want (say, ttf-fira-sans), which does not provide ttf-font. I then edited /var/lib/pacman/local/ttf-fira-sans-{version}/desc, adding ttf-font to its %PROVIDES% section (probably not the best thing to do). Deleting the font that used to provide ttf-font before now had no visible negative effects.

My question expanded:

Is there good reason only 10 font packages provide `ttf-font`? (there are 40+ ttf packages in the official repos)

If not, should this be reported / what should I do about this?

​

P.S. A similar question has been asked, but nothing seems to have changed.

​

Edit: wording

Edited 11 Jul 2019. We only hold this version.

29 points10 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
29 · 100% up
Kind
Text
ID
cbrfhe

Author

1
posts
6
comments
0
media
View profile

10 comments

Do they all cover the full scope? (sans, sans serif, monospaced) maybe this could be an explanation.

5 points

Good point, although if that's the case and many are split, shouldn't Firefox require something like ttf-sans, ttf-serif, ttf-mono?

10 points

Came to my mind too - turns out - some of them are very limited even.

Take ttf-caladea for example. Comes in exactly one variety (serif) with options for Regular, Bold, Italic and Bold Italic.

Also, I was thinking something like wider Unicode support, but I'm not sure how to check that.

7 points

This is a bug, then. ttf-font should only be provided by packages containing fonts that

  1. provide at least Latin coverage and
  2. have at least one font for each of sans-serif, serif and monospace

as determined by fontconfig.

9 points

You could create an empty dummy package that provides that "ttf-font" name. The PKGBUILD for that could look something like this:

pkgname=ttf-font-dummy
pkgver=1
pkgrel=1
pkgdesc="Dummy ttf-font provider"
arch=(any)
provides=(ttf-font)
2 points

Make a dummy that provides ttf-fonts then remove what you dont use and see what breaks?

1 points

I did a similar thing. Just instead of creating a dummy package I made a actual font provide ttf-fonts. Then deleted the font I didn't use. Nothings seems to have broken.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.