LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   new font problems.... (https://www.linuxquestions.org/questions/slackware-14/new-font-problems-241592/)

Mr-Imbroglio 10-12-2004 12:30 AM

new font problems....
 
alright, i've been using gnome for a while now, and with word that slack is soon gonna be dropping gnome i decided to give flux a go, i got fooling around with different themes and with transparencies and such when i realized that certain themes weren't working due to not having the fonts installed, so i grabbed the 3 artwiz-aleczapka fonts, artwiz-aleczapka-de-1.3/-en-1.3/-se1.3, upon following directions in the readme's, i unpacked all 3 fonts, and then did a "fc-cache -fv ./" in all 3 directories, after that i then added my FontPath to my xorg.conf directory, but the next step is where i'm having difficulties, i added the following to /etc/fonts/local.conf

Code:

<dir>/home/imbroglio/dwnlds/fonts/artwiz-aleczapka-en-1.3:unscaled</dir>
<dir>/home/imbroglio/dwnlds/fonts/artwiz-aleczapka-se-1.3:unscaled</dir>
<dir>/home/imbroglio/dwnlds/fonts/artwiz-aleczapka-de-1.3:unscaled</dir>

thats when i get a "Fontconfig error: "local.conf", line 2: junk after document element

so i was wondering if i did something wrong in the local.conf file, if so what do i need to add/change, any help is appreciated, thx

(*btw, the coded section is all that is contained in my local.conf file, i googled and found nothing, i'm hoping its as simple as just having to add something)

gbonvehi 10-12-2004 01:22 AM

I think you don't have to put :unscaled at the end, anyway, putting them in ~/.fonts will automatically include them since that directory is checked on fonts.conf.

Mr-Imbroglio 10-12-2004 12:48 PM

okay so if i want them to be used globally, put the font directories under /root/.fonts?

Mr-Imbroglio 10-13-2004 10:43 PM

bump, all i have to do is put font folders under /root/.font?

gbonvehi 10-13-2004 11:38 PM

No, if you want them globally put them in /usr/X11/lib/fonts/local
This directory isn't in xorg.conf as default so you have to add to it.
IE:
Code:

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath  "/usr/X11R6/lib/modules"
        FontPath    "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath    "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath    "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath    "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath    "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath    "/usr/X11/lib/fonts/local"
EndSection

"/usr/X11/lib/fonts/local" is actually a symlink to "/usr/X11R6/lib/X11/fonts/local"

Oh and if you create /etc/fonts/local.conf file be sure that you put this at the beggining:
Code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

and this at the end:
Code:

</fontconfig>
Maybe you forgot about that and that's why it was telling you there was an error in the config file.

pbhj 09-25-2005 07:16 PM

dvd::rip
 
The insertion of the !DOCTYPE and fontconfig tags (?xml was there already) worked for me when I had similar errors on dvdrip (Fontconfig error: "local.conf", line 5: junk after document element)

Thanks!


All times are GMT -5. The time now is 02:49 AM.