You are not logged in.

#1 2014-11-10 19:47:24

Melab
Member
Registered: 2014-11-05
Posts: 17

Where to install fonts to

I'm not sure if the documentation, but there is no /usr/share/fonts or /usr/share/fonts.avail on my Arch Linux installation. I've got some TrueType files that I extracted from Mac OS X's Helvetica.dfont (it's purty), so I've got no installation packaging meaning I can only install these files manually. Is there a new location to install these to? And once they're there are they immediately loaded or do I need to reset my profile or something?

Offline

#2 2014-11-10 19:48:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Where to install fonts to

You can easily write a PKGBUILD, or copy one from the AUR, to have pacman manage the installation...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-11-10 19:55:18

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: Where to install fonts to

jasonwryan wrote:

You can easily write a PKGBUILD, or copy one from the AUR, to have pacman manage the installation...

Okay, but I don't know if /usr/share/fonts is where I ought to be installing fonts to. That's what I'm unclear about.

Offline

#4 2014-11-10 19:58:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,776
Website

Re: Where to install fonts to

Yes it is*.  You'd see this in the examples from the AUR.

EDIT: * a subsdir of /usr/share/fonts at least, e.g., /usr/share/fonts/TTF/ for true type fonts.

Last edited by Trilby (2014-11-10 19:59:16)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-11-10 20:36:56

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Where to install fonts to

Please read the wiki "fonts" topic: https://wiki.archlinux.org/index.php/Fonts

If you only want the fonts available for your user (not systemwide), you can put them in ~/.local/share/fonts.

https://wiki.archlinux.org/index.php/Fo … stallation

Offline

#6 2014-11-12 00:48:02

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: Where to install fonts to

Trilby wrote:

Yes it is*.  You'd see this in the examples from the AUR.

EDIT: * a subsdir of /usr/share/fonts at least, e.g., /usr/share/fonts/TTF/ for true type fonts.

I know that that is the directory given in the examples, but it doesn't exist in the distribution. That looks like an inconsistency or one that should at least be explained to be normal.

Offline

#7 2014-11-12 00:58:14

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Where to install fonts to

Melab wrote:

I know that that is the directory given in the examples, but it doesn't exist in the distribution.

What? You mean you really don't have a /usr/share/fonts directory? I do, in my unmodified Arch install. Something appears to be broken in your install if you do not have this directory.

(edit) I'm wrong.

Last edited by 2ManyDogs (2014-11-12 01:05:05)

Offline

#8 2014-11-12 01:03:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,776
Website

Re: Where to install fonts to

2ManyDogs wrote:
Melab wrote:

I know that that is the directory given in the examples, but it doesn't exist in the distribution.

What? You mean you don't have a /usr/share/fonts directory? I do, in my unmodified Arch install.

I'm not sure what you mean by unmodified - but that directory is not part of a base install:

$ pacman -Qo /usr/share/fonts
/usr/share/fonts is owned by terminus-font 4.39-1
/usr/share/fonts is owned by ttf-dejavu 2.34-1
/usr/share/fonts is owned by ttf-droid 20121017-3
/usr/share/fonts is owned by ttf-ms-fonts 2.0-10
/usr/share/fonts is owned by xorg-font-util 1.3.0-2
/usr/share/fonts is owned by xorg-fonts-100dpi 1.0.1-5
/usr/share/fonts is owned by xorg-fonts-alias 1.0.3-1
/usr/share/fonts is owned by xorg-fonts-encodings 1.0.4-4
/usr/share/fonts is owned by xorg-fonts-misc 1.0.1-3

None of these packages are part of the base group, nor or any of them (strictly) necessary for running X11.

But I don't know how this leads to the conclusion of an inconsistency.  That directory is consistent: that's where fonts go.  If every path had to exist before you installed anything that would reside in it ... well, I can't even come up with a suitably silly simily - but that'd be crazy.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2014-11-12 01:04:07

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Where to install fonts to

Well call me wrong then (because I'm wrong).

Offline

#10 2014-11-12 06:10:41

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: Where to install fonts to

Trilby wrote:
2ManyDogs wrote:
Melab wrote:

I know that that is the directory given in the examples, but it doesn't exist in the distribution.

What? You mean you don't have a /usr/share/fonts directory? I do, in my unmodified Arch install.

I'm not sure what you mean by unmodified - but that directory is not part of a base install:

$ pacman -Qo /usr/share/fonts
/usr/share/fonts is owned by terminus-font 4.39-1
/usr/share/fonts is owned by ttf-dejavu 2.34-1
/usr/share/fonts is owned by ttf-droid 20121017-3
/usr/share/fonts is owned by ttf-ms-fonts 2.0-10
/usr/share/fonts is owned by xorg-font-util 1.3.0-2
/usr/share/fonts is owned by xorg-fonts-100dpi 1.0.1-5
/usr/share/fonts is owned by xorg-fonts-alias 1.0.3-1
/usr/share/fonts is owned by xorg-fonts-encodings 1.0.4-4
/usr/share/fonts is owned by xorg-fonts-misc 1.0.1-3

None of these packages are part of the base group, nor or any of them (strictly) necessary for running X11.

But I don't know how this leads to the conclusion of an inconsistency.  That directory is consistent: that's where fonts go.  If every path had to exist before you installed anything that would reside in it ... well, I can't even come up with a suitably silly simily - but that'd be crazy.

So if I just copy my files there, then will the system be able to see them? Is there any particular naming convention I should follow (I like to keep my systems as conventional as possible)?

Offline

#11 2014-11-12 06:40:10

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: Where to install fonts to

$ fc-cache -vf
fc-cache: command not found
$ sudo pacman -S fc-cache
error: target not found: fc-cache

Offline

#12 2014-11-12 07:09:42

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: Where to install fonts to

There is pkgfile utility for such things:

$ pkgfile fc-cache
extra/fontconfig

Offline

#13 2014-11-12 12:21:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,776
Website

Re: Where to install fonts to

And when you install fontconfig, guess what directory it will create.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2014-11-14 19:03:13

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: Where to install fonts to

Trilby wrote:

And when you install fontconfig, guess what directory it will create.

Oh, the name of the package is "fontconfig"?

ETA: This is getting even more confusing. Fonts are installed in

/usr/share/fonts

but they aren't available to the console for use?

Last edited by Melab (2014-11-14 19:11:50)

Offline

#15 2014-11-14 19:26:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Where to install fonts to


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2014-11-14 19:34:51

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Where to install fonts to

Console fonts are a different beast entirely... https://wiki.archlinux.org/index.php/Co … sole_fonts ... the wiki (quite possibly the best of it's kind) is your friend wink

*** sniped again! ***

Last edited by satanselbow (2014-11-14 19:35:31)

Offline

Board footer

Powered by FluxBB