Need support for GhostBSD. Ask here if your question does not fit elsewhere.
-
mushroom
- Posts: 12
- Joined: Wed Mar 03, 2021 5:23 am
Post
by mushroom »
Hi all,
This is my first time posting on this forum.
I've just installed webfonts on GhostBSD-21.01.20 with the MATE desktop and the instructions say to add this line:
FontPath "/usr/local/share/fonts/webfonts/"
to the xorg.conf config file. However, I've looked in /etc/X11 and it's not there which leads me to ask these questions:
- Am I looking in the right place?
- Do I need to create it from scratch? If so, how complete does it need to be so it doesn't mess with booting straight into the desktop?
-
nevets
- Posts: 149
- Joined: Tue Jun 23, 2020 3:54 am
Post
by nevets »
Hi, Mushroom...
Terminal -> create the file /usr/local/etc/X11/fontpath.d/fontpath.conf
with this content:
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/share/fonts/webfonts"
EndSection
Were you to add further fonts repeat the FontPath element for each font.
By example, my installation has this content in the fontpath.conf file:
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/share/fonts/Caladea"
FontPath "/usr/local/share/fonts/Carlito"
FontPath "/usr/local/share/fonts/ChromeOS"
FontPath "/usr/local/share/fonts/Comfortaa"
FontPath "/usr/local/share/fonts/GentiumBasic"
FontPath "/usr/local/share/fonts/Liberation"
FontPath "/usr/local/share/fonts/LinLibertineG"
FontPath "/usr/local/share/fonts/SourceCodePro"
FontPath "/usr/local/share/fonts/SourceSansPro"
FontPath "/usr/local/share/fonts/SourceSerifPro"
FontPath "/usr/local/share/fonts/TTF"
FontPath "/usr/local/share/fonts/anonymous-pro"
FontPath "/usr/local/share/fonts/dejavu"
FontPath "/usr/local/share/fonts/google-fonts"
FontPath "/usr/local/share/fonts/noto"
FontPath "/usr/local/share/fonts/roboto-fonts-ttf"
FontPath "/usr/local/share/fonts/twemoji-color-font-ttf"
FontPath "/usr/local/share/fonts/ubuntu-font"
FontPath "/usr/local/share/fonts/vollkorn-ttf"
FontPath "/usr/local/share/fonts/webfonts"
FontPath "/usr/local/share/fonts/gnu-unifont"
FontPath "/usr/local/share/fonts/gnu-unifont-ttf"
FontPath "/usr/local/share/fonts/stix"
EndSection
Regards,
Steve
-
mushroom
- Posts: 12
- Joined: Wed Mar 03, 2021 5:23 am
Post
by mushroom »
nevets wrote: ↑Wed Mar 03, 2021 7:53 pm
Terminal -> create the file /usr/local/etc/X11/fontpath.d/fontpath.conf
with this content:
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/share/fonts/webfonts"
EndSection
Thanks very much, Steve! Worked like a charm.