trying to get fonts working in X11
blubee blubeeme
gurenchan at gmail.com
Wed Nov 29 10:48:38 UTC 2017
I've run into issues like that before and what I've done
mkdir /usr/local/share/fonts/YOUR_FONT_FOLDER
put the fonts in there, you can make it as complicated or simple as you
like. For example multiple font folders or just dump all of them into one
font folder.
Then:
cd /usr/local/share/fonts/YOUR_FONT_FOLDER
mkfontdir .
then create a xorg.conf file
touch /usr/local/etc/X11/xorg.conf.d/00-fonts.conf
I use the 00 prefix to organize my conf files
inside that file just add something like this:
Section "Files"
FontPath "/usr/local/share/fonts/YOUR_FONT_FOLDER"
EndSection
that should get everything working.
for example I've installed the noto fonts from google and Fira fonts for my
terminal.
I added them to folders like this:
Section "Files"
FontPath "/usr/local/share/fonts/TTF/noto"
FontPath "/usr/local/share/fonts/TTF/Fira"
EndSection
both fonts are picked up by all programs. Noto is great for web since it
captures a lot of exotic fonts but it's 1.1GB
Fira just looks great on my terminal.
On Wed, Nov 29, 2017 at 2:57 PM, Brett Wiggins <s3682305 at student.rmit.edu.au
> wrote:
> Hello,
>
> I am having issues installing and getting fonts to work in X. I have
> consulted the handbook page (
> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-fonts.html)
> and have installed a few fonts. The fonts I have installed are on my system
> here;
>
> /usr/local/share/fonts
>
> I have used xset to try and set fonts for example roboto-fonts-ttf;
>
> xset fp+ /usr/local/share/fonts/roboto-fonts-ttf
> xset fp rehash
>
> I have done so with a few of the fonts. Here is a list of fonts installed
> on my system;
>
> total 216
> drwxrwxrwx 2 root wheel 69120 Nov 26 17:19 100dpi
> drwxrwxrwx 2 root wheel 79360 Nov 26 17:18 75dpi
> drwxrwxrwx 2 root wheel 1024 Nov 26 17:17 OTF
> drwxrwxrwx 2 root wheel 1024 Nov 26 17:17 TTF
> drwxrwxrwx 2 root wheel 512 Nov 28 19:37 TrueType
> drwxrwxrwx 2 root wheel 1536 Nov 26 17:17 Type1
> drwxrwxrwx 2 root wheel 512 Nov 27 05:56 cantarell
> drwxrwxrwx 2 root wheel 3072 Nov 26 17:18 cyrillic
> drwxrwxrwx 2 root wheel 1536 Nov 26 17:18 dejavu
> drwxrwxrwx 3 root wheel 2048 Nov 26 17:17 encodings
> drwxrwxrwx 2 root wheel 4608 Nov 28 19:10 freefonts
> drwxrwxrwx 2 root wheel 15360 Nov 26 17:18 misc
> drwxrwxrwx 2 root wheel 1024 Nov 29 17:14 roboto-fonts-ttf
> drwxrwxrwx 2 root wheel 4096 Nov 28 19:09 urwfonts
> drwxrwxrwx 2 root wheel 1024 Nov 26 17:17 util
>
> Is the ownership of the directories or files a problem? I changed all of
> the directories to 777 but that doesn't seem to do anything. I have run
> xset on every directory, but in my dekstop applications such as firefox,
> the text is still hard to read. Below is info regarding my system. Any help
> would be appreciated.
>
> FreeBSD beastie 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21
> 02:08:28 UTC 2017
> root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
> amd64
>
> xorg-7.7_3 X.Org complete distribution metaport
> xorg-apps-7.7_2 X.org apps meta-port
> xorg-cf-files-1.0.6 X.org cf files for use with imake builds
> xorg-docs-1.7.1,1 X.org documentation files
> xorg-drivers-7.7_5 X.org drivers meta-port
> xorg-fonts-7.7_1 X.org fonts meta-port
> xorg-fonts-100dpi-7.7 X.Org 100dpi bitmap fonts
> xorg-fonts-75dpi-7.7 X.Org 75dpi bitmap fonts
> xorg-fonts-cyrillic-7.7 X.Org Cyrillic bitmap fonts
> xorg-fonts-miscbitmaps-7.7 X.Org miscellaneous bitmap fonts
> xorg-fonts-truetype-7.7_1 X.Org TrueType fonts
> xorg-fonts-type1-7.7 X.Org Type1 fonts
> xorg-libraries-7.7_2 X.org libraries meta-port
> xorg-macros-1.19.1 X.Org development aclocal macros
> xorg-server-1.18.4_4,1 X.Org X server and related programs
>
>
> hw.model: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
> hw.machine: amd64
> hw.ncpu: 8
>
> Thank you for your time,
>
> Brett.
> _______________________________________________
> freebsd-x11 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"
>
More information about the freebsd-x11
mailing list