You are not logged in.

#1 2009-06-14 01:04:06

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Q: How to replace all monospace fonts with single font via fonts.conf?

As title suggests, I'm attempting to replace all monospace fonts with dina or terminus using ~/.fonts.conf.  I have figured out how to do it one font at a time (see below), but I want a rule that will affect all monospace fonts based on the "spacing" property.  Advice or suggestions anyone?

Working so far, but messy and requires updating as new monospace fonts are discovered:

    <!-- Replace monospace fonts with bitmap  -->
    <match target="pattern" name="family">
        <test name="family" qual="any">
            <string>monospace</string>
            <string>Monaco</string>
            <string>Andale Mono</string>
            <string>DejaVu Sans Mono</string>
            <string>Bitstream Vera Sans Mono</string>
        </test>
        <edit name="family" mode="assign"><string>terminus</string></edit>
    </match>

Not working, but what I'm hoping to accomplish:

    <!-- Replace monospace fonts with bitmap --> 
    <match target="font">
        <test compare="eq" name="spacing"><int>100</int></test>
        <edit mode="assign" name="family"><string>terminus</string></edit>
    </match>

or:

    <!-- Replace monospace fonts with bitmap --> 
    <match target="font">
        <test compare="eq" name="spacing"><const>monospace</const></test>
        <edit mode="assign" name="family"><string>terminus</string></edit>
    </match>

Last edited by thayer (2009-06-14 01:21:33)


thayer williams ~ cinderwick.ca

Offline

Board footer

Powered by FluxBB