Windows fonts guide(Including my .fonts.conf)
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    liraz Guest

    Windows fonts guide(Including my .fonts.conf)

    Right, there are already enough resources ouch there to which I will post links. But this guide is mainly aimed at those who are confused on how to enable AA for linux fonts(retaining their nice appearence) and disabling it for windows fonts(likewise).

    So you get the best of both worlds!

    1. create a local rpmbuild directory(works in FC4)
    http://fedoranews.org/tchung/rpmbuild/


    2. Download source rpm of freetype and compile(available in the fedora mirrors)
    http://fedoranews.org/hoyt/rpm/
    *Note*:
    in the freetype.spec file change
    %define without_bytecode_interpreter 1
    to
    %define without_bytecode_interpreter 0

    the RPM when made may give you errors when trying to install. You will need to exit X and then need you may need to --force the install of the new freetype rpm. Restart X and walla.

    3.

    Download Windows corefonts

    4.

    Follow This guide on how to setup correct dpi settings + settings in firefox(ignore .fonts.conf)

    5.
    use this .fonts.conf:
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <dir>~/.fonts</dir>

    <match target="font" >
    <edit mode="assign" name="antialias">
    <bool>true</bool>
    </edit>
    </match>

    <!-----MAC FONTS EXCEPTIONS
    <match target="font" >
    <test compare="eq" name="family" qual="any" >
    <string>Monaco</string>
    <string>Chicago</string>
    <string>Geneva</string>
    <string>Charcoal </string>
    <string>New York</string>
    <string>Lucida Grande</string>
    <string>Gadget</string>
    </test>

    <edit mode="assign" name="hinting">
    <bool>false</bool>
    </edit>
    </match>
    !------>
    <match target="font" >
    <test compare="eq" name="family" qual="any" >
    <string>Comic Sans MS</string>
    <string>Tahoma</string>
    <string>Trebuchet MS</string>
    <string>Arial Black</string>
    <string>Fixedsys Excelsior 2.00</string>
    <string>Georgia</string>
    <string>Verdana</string>
    <string>Times New Roman</string>
    <string>Courier New</string>
    <string>Webdings</string>
    <string>Arial</string>
    </test>

    <test compare="less" name="size" qual="any" >
    <double>17</double>
    </test>

    <edit mode="assign" name="antialias" >
    <bool>false</bool>
    </edit>
    </match>




    <!---
    BELOW:TAKEN FROM UBUNTU CLEAR TYPE FONTS GUIDE.
    http://www.ubuntuforums.org/showthread.php?t=20976
    !--->


    <!--
    <match target="font">
    <test name="weight">
    <const>bold</const>
    <const>black</const>
    </test>
    <edit name="antialias" mode="assign">
    <bool>true</bool>
    </edit>
    </match>
    !-->

    <match target="pattern">
    <test qual="any" name="family">
    <string>Bitstream Vera Sans</string>
    </test>
    <edit name="family" mode="assign">
    <string>Arial</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>Helvetica</string>
    </test>
    <edit name="family" mode="assign">
    <string>Arial</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>Palatino</string>
    </test>
    <edit name="family" mode="assign">
    <string>Georgia</string>
    </edit>
    </match>

    </fontconfig>
    If you want to setup mac fonts, it's in there too. I still have a few improvements to make but as soon as that's done i'll post a new .fonts.conf.
    Right, now that's it. Constructive critisism/improvement welcome =)

  2. #2
    harman Guest

    Error 1

    Hi,

    Tried to follow the guide, but when compiling freetype, got the following error :

    Code:
    /home/harman/rpmbuild/BUILD/freetype-2.1.9/ft2demos-2.1.9/graph/x11/grx11.c:1401: error: request for member 'set_title' in something not a structure or union
    /home/harman/rpmbuild/BUILD/freetype-2.1.9/ft2demos-2.1.9/graph/x11/grx11.c:1401: warning: statement with no effect
    /home/harman/rpmbuild/BUILD/freetype-2.1.9/ft2demos-2.1.9/graph/x11/grx11.c:1402: error: request for member 'root' in something not a structure or union
    /home/harman/rpmbuild/BUILD/freetype-2.1.9/ft2demos-2.1.9/graph/x11/grx11.c:1402: error: request for member 'listen_event' in something not a structure or union
    /home/harman/rpmbuild/BUILD/freetype-2.1.9/ft2demos-2.1.9/graph/x11/grx11.c:1402: warning: statement with no effect
    make: *** [/home/harman/rpmbuild/BUILD/freetype-2.1.9/ft2demos-2.1.9/obj/grx11.o] Error 1
    error: Bad exit status from /home/harman/tmp/rpm-tmp.20335 (%build)
    
    
    RPM build errors:
        Bad exit status from /home/harman/tmp/rpm-tmp.20335 (%build)
    Any help would be great.

    Thanks
    Harman

Similar Threads

  1. help with .fonts.conf
    By liraz in forum Using Fedora
    Replies: 0
    Last Post: 13th June 2005, 11:01 AM
  2. .fonts.conf, Disabling AA only for windows fonts.
    By liraz in forum Using Fedora
    Replies: 1
    Last Post: 27th April 2005, 01:40 PM
  3. Windows fonts?
    By Adrian in forum Using Fedora
    Replies: 1
    Last Post: 29th March 2005, 09:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •