NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

notes on native xorg and fonts from pkgsrc



Greetings!

I have noticed on netbsd-CURRENT and pkgsrc, that after installing a font, i 
could not access it from the font lists found in applications (for example in 
Abiword). To correct this problem, i had to do the following steps:
1) add the directories holding the installed fonts to xorg.conf
2) add the directory holding the fonts to fontconfig (as ater step1 i could 
still not list them, tough i could see them in xfontsel)

to xorg.conf I added the following lines:
Section "Files"
        FontPath     "/usr/pkg/lib/X11/fonts/misc/"
        FontPath     "/usr/pkg/lib/X11/fonts/TTF/"
        FontPath     "/usr/pkg/lib/X11/fonts/OTF"
        FontPath     "/usr/pkg/lib/X11/fonts/Type1/"
        FontPath     "/usr/pkg/lib/X11/fonts/100dpi/"
        FontPath     "/usr/pkg/lib/X11/fonts/75dpi/"
EndSection

and i added the atached file to /etc/fonts/conf.d/10-pkgsrc-fonts.conf
if you wish to use them please tune the paths accordingly.

One other thing i noted about native xorg, is that one has to delete a few 
files from /etc/fonts/conf.d, namely 10*conf, except the one setting 
autohinting the way one's setup needs, and the one enabling autohinting. This 
is due to the fact that they get included in alphabetical order, and as such, 
the one switching it off is included last. Therefore i'd recommend that base 
install would not place these files here, rater to some directory in 
/usr/share/examples . This would also fix the problem, that an update may re-
install the manually removed files. One other possible solution is to add a 
dependent dummy package to all font packages, that would generate a similiar 
file to the one attached containing the necessary settings, but using the local 
pkgsrc variables. Should i not get other ideas to solve this annoyance, i 
shall make steps do realise this above mentioned solution. (That seems most 
inelegant to me)

Thanks for your time, should you have read this mail, and if you had similiar 
problems, i hope this procedure can solve them for you.

Gergely GÃbor

Attachment: 10-pkgsrc-fonts.conf
Description: application/xml

Attachment: signature.asc
Description: This is a digitally signed message part.



Home | Main Index | Thread Index | Old Index