You are not logged in.

#1 2010-12-03 00:31:38

colbert
Member
Registered: 2007-12-16
Posts: 809

Funky fonts in terminal, and wierd [not-so]solve

http://img5.glowfoto.com/images/2010/12 … 37964L.png
http://img6.glowfoto.com/images/2010/12 … 34216L.png
http://img5.glowfoto.com/images/2010/12 … 83684L.png

Should look like: http://img6.glowfoto.com/images/2010/12 … 39942L.png

Just did a reinstall of Arch so perhaps I'm missing some obscure font I had previously installed and forgotten about, or some setting. All other fonts in GUI apps look fine.

And the strange thing is that if I run urxvt from urxvt, it looks proper! Normally I just have Mod4+Q bound to run urxvt, and it looks messed as top pics. Then if I run "urxvt" from there and a new urxvt window opens, it looks correct. *shrug* big_smile

Thanks for any help, appreciated!

Offline

#2 2010-12-05 22:50:57

kwirkie
Member
Registered: 2010-01-09
Posts: 15

Re: Funky fonts in terminal, and wierd [not-so]solve

Looks like your locale is set to ISO rather that UTF-8, I suspect that's why rxvt-unicode looks correct.

Check you locale in '/etc/rc.conf'. Probably also worth checking '/etc/locale.gen' to check you chosen the right locale for our system

Offline

#3 2010-12-13 18:40:36

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Funky fonts in terminal, and wierd [not-so]solve

Okay I check rc.conf:

LOCALE="en_US.UTF-8"

and locale.gen:

en_US.UTF-8 UTF-8

^^ That's the only one uncommented. I just rebooted as well, still the same thing though hmm

Offline

#4 2010-12-15 08:57:15

kwirkie
Member
Registered: 2010-01-09
Posts: 15

Re: Funky fonts in terminal, and wierd [not-so]solve

What output do you get in the non-working and working terminal if you execute 'locale'?

You could also try running 'locale-gen' again as root and try restarting the system

Offline

#5 2010-12-16 01:07:14

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Funky fonts in terminal, and wierd [not-so]solve

ââ> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

Now running urxvt from the same shell window so the new one looks right:

└─> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

Appears to be the same hmm  But I do get this when running urxvt from within urxvt:

ââ> urxvt
urxvt: perl extension 'clipboard' not found in perl library search path
Fontconfig error: "~/.fonts.conf", line 77: not well-formed (invalid token)

Not sure if relevant??

Offline

#6 2010-12-16 01:08:43

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Funky fonts in terminal, and wierd [not-so]solve

Perhaps post your ~/.fonts.conf then.

Offline

#7 2010-12-16 01:10:52

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Funky fonts in terminal, and wierd [not-so]solve

Er, that should've been obvious to me lol, my bad: http://pastebin.ca/2020888

Offline

#8 2010-12-16 01:14:24

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Funky fonts in terminal, and wierd [not-so]solve

See if this newer version works (without error):

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

    <!--

    /********************************************************************
                                  README
    /********************************************************************

    This /etc/fonts/local.conf file is intended to be used
    in conjunction with the freetype-infinality subpixel hinting patch at
    http://www.infinality.net/

    - The rules assume that all Windows XP/Vista/7 fonts are installed.
    - The rules assume that the most recent version(s) of the fonts are
        installed.
    - Windows, Apple, Google, and Linux fonts are included in the rules
      along with other misc popular or useful fonts found on the web.
    - Feel free to propose additions and changes to this file at:
        http://www.infinality.net/forum/
        -->

    <!--


    /********************************************************************
    Changes for 2010-11-14
    /********************************************************************

    Added configuration for different rendering styles. These can be enabled by
      uncommenting the style you want.  For instance, if you want your system
      to look like Windows 98, uncomment that style, and make sure others
      are commented out.  Obviously you'd want to have appropriate fonts
      installed for that rendering style.  Aliases for different OS
      fontsets will be added eventually.  The old default style is now
      considered "Infinality" style.  Not all styles that are defined are
      filled in yet- but "Apple" and anything above it are.

    Due to the above, in combination with the prevalence of @font-face on
      the web, I've made "Infinality" style rendering use autohint by
      default, and only call out fonts that specifically should use TT
      hinting.  The patched autohint will render more fonts, better, than
      TT native hinting will.


    /********************************************************************
    Changes for 2010-10-22
    /********************************************************************

    Promoted Century Gothic, Arial Black and Calibri to Full TT subpixel hinting
    Added Google fonts
    Added Nimbus fonts
    Added more Apple fonts
    Replace Courier New with Apple's Courier - MUCH nicer result
    Better comments to help new users understand what everything means
    Reorganization of some rules
    General Cleanup
    Removed code for artificial oblique, as most distros have this in
      /etc/fonts/conf.d/
    Added nonlatin font alias preferences that favor MS fonts, which have the
      best hinting AFAICT. If you have all Windows Vista/7 fonts installed,
      www.wikipedia.org should look pretty nice.

    /********************************************************************
    Changes for 2010-10-03
    /********************************************************************

    Promoted Geneva, Geneva CY to Full TT subpixel hinting.
    Added an alias for "Trebuchet" to point to "Trebuchet MS"
    Minor comment updates

    -->


    <match target="pattern">
        <!-- Choose an OS Style.  This affects how everything is applied -->

        <!-- A Customized combination of things, similar to Windows 7 -->
        <edit name="rendering_style" target="pattern">
            <string>Infinality</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Infinality</string>
        </edit>

        <!--
        <edit name="rendering_style" target="pattern">
            <string>Windows 7</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Windows 7</string>
        </edit>
        -->

        <!--
        <edit name="rendering_style" target="pattern">
            <string>Windows XP</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Windows XP</string>
        </edit>
        -->

        <!--
        <edit name="rendering_style" target="pattern">
            <string>Windows 98</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Windows 98</string>
        </edit>
        -->

        <!--
        <edit name="rendering_style" target="pattern">
            <string>Apple</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Apple</string>
        </edit>
        -->


        <!-- THE BELOW STYLES ARE NOT WELL FILLED-IN YET -->

        <!--
        <edit name="rendering_style" target="pattern">
            <string>No Replacements</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>No Replacements</string>
        </edit>
        -->

        <!--
        <edit name="rendering_style" target="pattern">
            <string>Linux</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Linux</string>
        </edit>
        -->

        <!--
        <edit name="rendering_style" target="pattern">
            <string>Fedora Linux</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Fedora Linux</string>
        </edit>
        -->

        <!-- Create your own -->
        <!--
        <edit name="rendering_style" target="pattern">
            <string>Your Own Style</string>
        </edit>
        <edit name="rendering_style" target="font">
            <string>Your Own Style</string>
        </edit>
        -->

        <!-- Forces certain family replacements - NOT IMPLEMENTED YET -->
        <!--
        <edit name="style_settings">
            <string>Forced</string>
        </edit>
        -->

    </match>

    <!-- ********************  BITMAP / OUTLINE  **********************  -->

    <!-- Prevent gnome from using embedded bitmaps in fonts like Calibri -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Apple</string>
        </test>
        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>
    </match>

    <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Apple</string>
        </test>
        <selectfont>
            <rejectfont>
                <pattern>
                    <patelt name="scalable" >
                        <bool>false</bool>
                    </patelt>
                </pattern>
            </rejectfont>
        </selectfont>
    </match>

    <!-- Substitute truetype fonts for bitmap ones -->
    <match target="pattern" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Apple</string>
        </test>
        <edit name="prefer_outline" >
            <bool>true</bool>
        </edit>
    </match>

    <!-- **************************** ALIASES **********************  -->

    <!-- Uncomment 1 of the 3 below for default fonts -->
    <!-- Default fonts - Microsoft Appearance -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <alias>
            <family>sans</family>
            <default>
                <family>Arial</family>
            </default>
        </alias>
        <alias>
            <family>sans-serif</family>
            <default>
                <family>Arial</family>
            </default>
        </alias>
        <alias>
            <family>serif</family>
            <default>
                <family>Times New Roman</family>
            </default>
        </alias>
    </match>

    <!-- Default fonts - Apple Appearance -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <alias>
            <family>sans</family>
            <default>
                <family>Lucida Grande</family>
            </default>
        </alias>

        <alias>
            <family>sans-serif</family>
            <default>
                <family>Lucida Grande</family>
            </default>
        </alias>

        <alias>
            <family>serif</family>
            <default>
                <family>Times</family>
            </default>
        </alias>
    </match>

    <!-- Default fonts - Linux Appearance -->
    <!-- this is handled by default fontconfig rules -->


    <!-- These MS aliases typically are used in user interfaces -->
    <!-- You will mostly run into fonts with these names in WINE programs -->
    <!-- Uncomment 1 of the below for these UI fonts -->

    <!-- WINE UI fonts - Microsoft Windows Vista/7 Appearance -->

    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
        </test>
        <alias binding="same">
            <family>System</family>
            <accept>
                <family>Segoe UI</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Shell Dlg</family>
            <accept>
                <family>Segoe UI</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Sans Serif</family>
            <accept>
                <family>Segoe UI</family>
            </accept>
        </alias>
    </match>

    <!-- WINE UI fonts - Microsoft Windows 98/XP Appearance -->
    <!-- For Win 98, make sure font smoothing is DISABLED within WINE:
        wget http://files.polosatus.ru/winefontssmoothing_en.sh
        sh winefontssmoothing_en.sh
    -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Windows 98</string>
        </test>
        <alias binding="same">
            <family>System</family>
            <accept>
                <family>Microsoft Sans Serif</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Shell Dlg</family>
            <accept>
                <family>Microsoft Sans Serif</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Sans Serif</family>
            <accept>
                <family>Microsoft Sans Serif</family>
            </accept>
        </alias>
    </match>

    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Windows XP</string>
        </test>
        <alias binding="same">
            <family>System</family>
            <accept>
                <family>Tahoma</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Shell Dlg</family>
            <accept>
                <family>Tahoma</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Sans Serif</family>
            <accept>
                <family>Tahoma</family>
            </accept>
        </alias>
    </match>

    <!-- WINE UI fonts - Apple Appearance -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <alias binding="same">
            <family>System</family>
            <accept>
                <family>Lucida Grande</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Shell Dlg</family>
            <accept>
                <family>Lucida Grande</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Sans Serif</family>
            <accept>
                <family>Lucida Grande</family>
            </accept>
        </alias>
    </match>

    <!-- WINE UI fonts - Linux Appearance -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Linux</string>
        </test>
        <alias binding="same">
            <family>System</family>
            <accept>
                <family>DejaVu Sans</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Shell Dlg</family>
            <accept>
                <family>DejaVu Sans</family>
            </accept>
        </alias>
        <alias binding="same">
            <family>MS Sans Serif</family>
            <accept>
                <family>DejaVu Sans</family>
            </accept>
        </alias>
    </match>

    <!-- Establish priorities for non-Latin fonts -->
    <!-- http://en.wikipedia.org/wiki/List_of_Microsoft_Windows_fonts -->
    <!-- Uncomment 1 of the below for these UI fonts -->

    <!-- Non-latin fonts - Microsoft Windows Vista/7 Appearance -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <alias>
            <family>serif</family>
            <prefer>
                <family>Times New Roman</family>
                <family>Batang</family>
                <family>DFKai-SB</family>
                <family>EucrosiaUPC</family>
                <family>JasmineUPC</family>
                <family>KaiTi</family>
                <family>Kartika</family>
                <family>KodchiangUPC</family>
                <family>MingLiU</family>
                <family>MS Mincho</family>
                <family>SimSun</family>
                <family>Sylfaen</family>
                <family>DaunPenh</family>
                <family>MV Boli</family>
                <family>Iskoola Pota</family>
                <family>Latha</family>
                <family>Microsoft Himalaya</family>
                <family>Mongolian Baiti</family>
                <family>Shruti</family>
                <family>Cardo</family>
                <family>MPH 2B Damase</family>
            </prefer>
        </alias>
        <alias>
            <family>sans-serif</family>
            <prefer>
                <family>Arial</family>
                <family>Meiryo</family>
                <family>Arabic Typesetting</family>
                <family>DokChampa</family>
                <family>Malgun Gothic</family>
                <family>Estrangelo Edessa</family>
                <family>Gautami</family>
                <family>Iskoola Pota</family>
                <family>Microsoft YaHei</family>
                <family>Mangal</family>
                <family>Microsoft JhengHei</family>
                <family>Vrinda</family>
                <family>Plantagenet Cherokee</family>
                <family>Raavi</family>
                <family>Nyala</family>
                <family>Tunga</family>
                <family>Kartika</family>
                <family>MV Boli</family>
                <family>DaunPenh</family>
                <family>Iskoola Pota</family>
                <family>Latha</family>
                <family>Microsoft Himalaya</family>
                <family>Mongolian Baiti</family>
                <family>Shruti</family>
                <family>Skeirs</family>
                <family>Cardo</family>
                <family>MPH 2B Damase</family>
                <family>Tahoma</family>
                <family>Arial Unicode MS</family>
            </prefer>
        </alias>
        <alias>
            <family>monospace</family>
            <prefer>
                <family>Consolas</family>
                <family>Inconsolata</family>
                <family>Andale Mono</family>
                <family>Courier New</family>
                <family>Microsoft JhengHei</family>
                <family>Microsoft YaHei</family>
                <family>MPH 2B Damase</family>
            </prefer>
        </alias>
        <alias>
            <family>fantasy</family>
            <prefer>
                <family>Impact</family>
                <family>Copperplate Gothic Std</family>
                <family>Cooper Std</family>
                <family>Bauhaus Std</family>
            </prefer>
        </alias>
        <alias>
            <family>cursive</family>
            <prefer>
                <family>ITC Zapf Chancery Std</family>
                <family>Zapfino</family>
                <family>Comic Sans MS</family>
            </prefer>
        </alias>
    </match>

    <!-- ************************** REPLACEMENTS  **********************  -->

    <!-- Replaces sans, sans-serif, serif with a specific font preference -->
    <!-- This is also set in aliases above -->

    <!-- Microsoft style - sans, sans-serif, serif -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>sans</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Arial</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>sans-serif</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Arial</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>serif</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Times New Roman</string>
        </edit>
    </match>

    <!-- Apple style - sans, sans-serif, serif -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <test name="family" qual="any" >
            <string>sans</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Lucida Grande</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <test name="family" qual="any" >
            <string>sans-serif</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Lucida Grande</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <test name="family" qual="any" >
            <string>serif</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Times</string>
        </edit>
    </match>



    <!-- Replace these common poorly hinted fonts with Arial -->
    <!-- Adjust as necessary -->

    <!-- Microsoft Appearance - Poorly Hinted Fonts -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Nimbus Sans</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Arial</string>
        </edit>
    </match>
    <match target="pattern" name="family">
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Nimbus Sans</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Arial</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Nimbus Sans L</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Arial</string>
        </edit>
    </match>
    <match target="pattern" name="family">
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Nimbus Sans L</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Arial</string>
        </edit>
    </match>

    <!-- Apple Appearance - Poorly Hinted Fonts -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <test name="family" qual="any" >
            <string>Nimbus Sans</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Helvetica Neue</string>
        </edit>
    </match>
    <match target="pattern" name="family">
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <test name="family" qual="any" >
            <string>Nimbus Sans</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Helvetica Neue</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <test name="family" qual="any" >
            <string>Nimbus Sans L</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Helvetica Neue</string>
        </edit>
    </match>
    <match target="pattern" name="family">
        <test name="family" qual="any" >
            <string>Nimbus Sans L</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Helvetica Neue</string>
        </edit>
    </match>

    <!-- This replacement handles the fonts here, which I recommend
    in place of the default Terminus bitmap files:
    http://files.ax86.net/terminus-ttf/4.30/

    Note that Terminus will only look good at the pixel sizes that
    it was designed for!
    -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>Terminus</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Terminus (ttf)</string>
        </edit>
    </match>
    <match target="pattern" name="family">
        <test name="family" qual="any" >
            <string>Terminus</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Terminus (ttf)</string>
        </edit>
    </match>

    <!-- Replace Helvetica with Arial -->
    <!-- Currently Helvetica has cap height issues -->

    <!-- Microsoft Appearance - Helvetica -->
    <match target="pattern" name="family">
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Arial</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Arial</string>
        </edit>
    </match>

    <!-- Linux Appearance - Helvetica -->
    <match target="pattern" name="family">
        <test name="rendering_style" qual="any" >
            <string>Linux</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Liberation Sans</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Linux</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Liberation Sans</string>
        </edit>
    </match>

    <!-- Replace Helvetica Neue with Arial -->
    <!-- Currently Helvetica Neue has cap height issues -->

    <!-- Microsoft Appearance - Helvetica Neue -->
    <match target="pattern" name="family">
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica Neue</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Arial</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica Neue</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Arial</string>
        </edit>
    </match>

    <!-- Linux Appearance - Helvetica Neue -->
    <match target="pattern" name="family">
        <test name="rendering_style" qual="any" >
            <string>Linux</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica Neue</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Liberation Sans</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Linux</string>
        </test>
        <test name="family" qual="any" >
            <string>Helvetica Neue</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Liberation Sans</string>
        </edit>
    </match>


    <!-- Replace "Arial" with black weight, with font "Arial Black" -->
    <match target="pattern">
        <test name="family" compare="eq" target="default">
            <string>Arial</string>
        </test>
        <test compare="more" name="weight" >
            <const>bold</const>
        </test>
        <edit name="family" mode="prepend" binding="same">
            <string>Arial Black</string>
        </edit>
        <edit name="weight" mode="assign">
            <const>bold</const>
        </edit>
    </match>

    <!-- Replace 'Nimbus Mono L' with Courier New -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>Nimbus Mono L</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Courier New</string>
        </edit>
    </match>
    <match target="pattern" name="family" >
        <test name="family" compare="eq" target="default">
            <string>Nimbus Mono L</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Courier New</string>
        </edit>
    </match>

    <!-- Replace "Lucida Sans Unicode" bold with Lucida Grande bold weight -->
    <match target="pattern">
        <test name="family" compare="eq" target="default">
            <string>Lucida Sans Unicode</string>
        </test>
        <test compare="more" name="weight" >
            <const>medium</const>
        </test>
        <edit name="family" mode="prepend" binding="same">
            <string>Lucida Grande</string>
        </edit>
        <edit name="weight" mode="assign">
            <const>bold</const>
        </edit>
    </match>

    <!-- Microsoft Appearance - Courier -->
    <match target="pattern">
        <test name="rendering_style" qual="any" >
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" compare="eq" target="default">
            <string>Courier</string>
        </test>
        <edit name="family" mode="prepend" binding="same">
            <string>Courier New</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Courier</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Courier New</string>
        </edit>
    </match>

    <!-- NOTE: Apple's Courier renders much nicer than Courier New -->
    <!-- Apple Appearance - Courier -->
    <match target="pattern">
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
            <string>Infinality</string>
        </test>
        <test name="family" compare="eq" target="default">
            <string>Courier New</string>
        </test>
        <edit name="family" mode="prepend" binding="same">
            <string>Courier</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
            <string>Infinality</string>
        </test>
        <test name="family" qual="any" >
            <string>Courier New</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Courier</string>
        </edit>
    </match>

    <!-- Microsoft Appearance:  Replace 'Times' with Times New Roman -->
    <match target="pattern" name="family" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Times</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Times New Roman</string>
        </edit>
    </match>
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Windows 98</string>
        </test>
        <test name="family" qual="any" >
            <string>Times</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Times New Roman</string>
        </edit>
    </match>


    <!-- Fix poorly specified font family names -->

    <match target="pattern" name="family">
        <test name="family" qual="any" >
            <string>Trebuchet</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Trebuchet MS</string>
        </edit>
    </match>
    <match target="font" >
        <test name="family" qual="any" >
            <string>Trebuchet</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Trebuchet MS</string>
        </edit>
    </match>

    <match target="pattern" name="family" >
        <test name="family" qual="any" >
            <string>Palatino</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Palatino Linotype</string>
        </edit>
    </match>
    <match target="font" >
        <test name="family" qual="any" >
            <string>Palatino</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Palatino Linotype</string>
        </edit>
    </match>

    <match target="pattern" name="family" >
        <test name="family" qual="any" >
            <string>Lucida Sans</string>
        </test>
        <edit binding="strong" mode="prepend" name="family" >
            <string>Lucida Grande</string>
        </edit>
    </match>
    <match target="font" >
        <test name="family" qual="any" >
            <string>Lucida Sans</string>
        </test>
        <edit mode="assign" name="family" >
            <string>Lucida Grande</string>
        </edit>
    </match>

    <!-- ********************  BASE SETTINGS  **********************  -->

    <!-- These are the base settings for all rendered fonts.
    We modify them for specific fonts later. -->

    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
        </test>
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
    </match>

    <match target="font" >
        <test name="rendering_style" qual="any">
            <string>Windows 7</string>
        </test>
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
    </match>

    <match target="font" >
        <test name="rendering_style" qual="any">
            <string>Windows XP</string>
        </test>
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
    </match>

    <match target="font" >
        <test name="rendering_style" qual="any">
            <string>Windows 98</string>
        </test>
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
    </match>

    <match target="font" >
        <test name="rendering_style" qual="any">
            <string>Apple</string>
        </test>
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintnone</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
    </match>

    <match target="font" >
        <test name="rendering_style" qual="any">
            <string>Fedora Linux</string>
        </test>
        <edit mode="assign" name="rgba" >
            <const>none</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcdnone</const>
        </edit>
    </match>


    <!-- ********************  FONT GROUPS  **********************  -->

    <!-- Full Subpixel BCI for these fonts.  (Cleartype-like, circa Windows XP/Vista/7) -->
    <!-- These will take advantage of subpixel hinting if infinality patch installed. -->
    <!-- This should only be used by fonts that contain TrueType instructions, -->
    <!-- otherwise fonts will appear blurry. -->

    <match target="font" >
        <test name="family" qual="any" >
            <string>Andale Mono</string>
            <string>Andalus</string>
            <string>Angsana New</string>
            <string>AngsanaUPC</string>
            <string>Aquabase</string>
            <string>Arial Black</string>
            <string>Arial MT</string>
            <string>Arial Narrow</string>
            <string>Arial SF MT</string>
            <string>Arial Unicode MS</string>
            <string>Arial</string>
            <string>ArialMT</string>
            <string>Bitstream Vera Sans Mono</string>
            <string>Bitstream Vera Sans</string>
            <string>Bitstream Vera Serif</string>
            <string>Book Antiqua</string>
            <string>Bookman Old Style</string>
            <string>Browallia New</string>
            <string>BrowalliaUPC</string>
            <string>Calibri</string>
            <string>Cambria</string>
            <string>Candara</string>
            <string>Century Gothic</string>
            <string>Chalkduster</string>
            <string>Charcoal CY</string>
            <string>Charcoal</string>
            <string>Charis SIL</string>
            <string>Chicago</string>
            <string>Comic Sans MS</string>
            <string>Consolas</string>
            <string>Constantia</string>
            <string>Copperplate</string>
            <string>Corbel</string>
            <string>Cordia New</string>
            <string>CordiaUPC</string>
            <string>Courier 10 Pitch</string>
            <string>Courier New</string>
            <string>Courier</string>
            <string>Dark Courier</string>
            <string>DejaVu LGC Sans Mono</string>
            <string>DejaVu Sans Mono</string>
            <string>DejaVu Sans</string>
            <string>DejaVu Serif</string>
            <string>Estrangelo Edessa</string>
            <string>Euphemia</string>
            <string>FrankRuehl</string>
            <string>Franklin Gothic Medium</string>
            <string>Futura</string>
            <string>Gotham Book</string>
            <string>Gotham Light</string>
            <string>Gotham Medium</string>
            <string>Guatami</string>
            <string>Impact</string>
            <string>Latha</string>
            <string>Levinim MT</string>
            <string>Liberation Mono</string>
            <string>Liberation Sans</string>
            <string>Liberation Serif</string>
            <string>Lucida Console</string>
            <string>Lucida Grande</string>
            <string>Lucida Sans Unicode</string>
            <string>Luxi Mono</string>
            <string>Malgun Gothic</string>
            <string>Microsoft Himalaya</string>
            <string>Microsoft JhengHei</string>
            <string>Microsoft Sans Serif</string>
            <string>Microsoft Uighur</string>
            <string>Microsoft YaHei</string>
            <string>Microsoft Yi Baiti</string>
            <string>Miriam Fixed</string>
            <string>Molengo</string>
            <string>Monaco</string>
            <string>Mongolian Baiti</string>
            <string>MoolBoran</string>
            <string>Narkisim</string>
            <string>Nina</string>
            <string>Nyala</string>
            <string>Padauk</string>
            <string>Palatino Linotype</string>
            <string>Plantagenet Cherokee</string>
            <string>Raavi</string>
            <string>Segoe UI</string>
            <string>Segoe UI Semibold</string>
            <string>TITUS Cyberbit Basic</string>
            <string>Tahoma</string>
            <string>Times New Roman</string>
            <string>Traditional Arabic</string>
            <string>Trebuchet MS</string>
            <string>Tunga</string>
            <string>Verdana</string>
            <string>Vrinda</string>
            <string>Yanone Kaffeesatz</string>
        </test>
        <edit mode="assign" name="font_type" target="font">
            <string>TT Instructed Font</string>
        </edit>
        <!--<edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
              </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>-->
    </match>

    <match target="font" >
        <test name="font_type" qual="any" >
            <string>TT Instructed Font</string>
        </test>
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
        </test>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
    </match>

    <match target="font" >
        <test name="font_type" qual="any" >
            <string>TT Instructed Font</string>
        </test>
        <test name="rendering_style" qual="any" >
            <string>Windows 98</string>
        </test>
        <edit mode="assign" name="antialias" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
    </match>

    <match target="font" >
        <test name="font_type" qual="any" >
            <string>TT Instructed Font</string>
        </test>
        <test name="rendering_style" qual="any" >
            <string>Apple</string>
        </test>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintnone</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
    </match>


    <!-- Make these fonts use autohint slight hinting -->
    <!-- Makes only horizontal stems align to pixels.  Truer to glyph -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>AR PL ShanHeiSun Uni</string>
            <string>American Typewriter</string>
            <string>Apple Chancery</string>
            <string>Apple Garamond Light</string>
            <string>Apple Garamond</string>
            <string>AppleGothic</string>
            <string>Apple Symbols</string>
            <string>Arabic Typesetting</string>
            <string>Baekmuk Gulim</string>
            <string>Baskerville</string>
            <string>Big Caslon</string>
            <string>Bitstream Charter</string>
            <string>BrushScript</string>
            <string>Cantarell</string>
            <string>CantarellRegular</string>
            <string>Cantarell Regular</string>
            <string>Cardo</string>
            <string>Century Schoolbook L</string>
            <string>Century</string>
            <string>Charis SIL</string>
            <string>Chalkboard</string>
            <string>CMU Bright</string>
            <string>Cochin</string>
            <string>Comfortaa</string>
            <string>Comfortaa Regular</string>
            <string>ComfortaaRegular</string>
            <string>Courier Std</string>
            <string>Courier10 BT</string>
            <string>Crimson Text</string>
            <string>David</string>
            <string>Delicious</string>
            <string>Didot</string>
            <string>DilenniaUPC</string>
            <string>District</string>
            <string>DokChampa</string>
            <string>Droid Sans Mono</string>
            <string>Droid Sans</string>
            <string>Droid Serif</string>
            <string>Dutch801 Rm BT</string>
            <string>EucrosiaUPC</string>
            <string>FreeMono</string>
            <string>FreeSans</string>
            <string>FreeSerif</string>
            <string>FreesiaUPC</string>
            <string>Frutiger LT Std</string>
            <string>Frutiger Linotype</string>
            <string>Frutiger-Normal</string>
            <string>Garamond</string>
            <string>Gautami</string>
            <string>Geneva CY</string>
            <string>Geneva Regular</string>
            <string>Geneva</string>
            <string>Gentium</string>
            <string>Georgia</string>
            <string>Gill Sans</string>
            <string>Hard Gothic</string>
            <string>Helvetica</string>
            <string>Helvetica CY</string>
            <string>Helvetica Neue</string>
            <string>Herculanum</string>
            <string>Hoefler Text</string>
            <string>IM Fell</string>
            <string>Inconsolata</string>
            <string>IrisUPC</string>
            <string>JasmineUPC</string>
            <string>Jomolhari</string>
            <string>Josefin Sans Std Light</string>
            <string>Kai</string>
            <string>Kalinga</string>
            <string>KodchiangUPC</string>
            <string>Laconic</string>
            <string>Lacuna</string>
            <string>Levenim MT</string>
            <string>LilyUPC</string>
            <string>LilyUPC</string>
            <string>Linux Biolinum</string>
            <string>Linux Libertine</string>
            <string>Lobster</string>
            <string>Lohit Bengali</string>
            <string>Lohit Gujarati</string>
            <string>Lohit Hindi</string>
            <string>Lohit Hindi</string>
            <string>Lohit Kannada</string>
            <string>Lohit Malayalam</string>
            <string>Lohit Oriya</string>
            <string>Lohit Punjabi</string>
            <string>Lohit Tamil</string>
            <string>Lohit Telugu</string>
            <string>Lucida Sans Std</string>
            <string>Luxi Sans</string>
            <string>Luxi Serif</string>
            <string>M+ 2p</string>
            <string>Marker Felt</string>
            <string>Megalopolis</string>
            <string>MetaMedium-Roman</string>
            <string>Metabook-Roman</string>
            <string>MgOpen Canonica</string>
            <string>MgOpen Cosmetica</string>
            <string>MgOpen Modata</string>
            <string>MgOpen Moderna</string>
            <string>Myriad Pro</string>
            <string>Miriam</string>
            <string>MS Mincho</string>
            <string>MyriadRegular</string>
            <string>Neuton</string>
            <string>Nimbus Roman No9 L</string>
            <string>Nimbus Mono L</string>
            <string>Nimbus Sans</string>
            <string>Nimbus Sans L</string>
            <string>Nobile</string>
            <string>Nobile002</string>
            <string>Nobile-bold</string>
            <string>Nobile-italic002</string>
            <string>Nobile-bold-italic002</string>
            <string>OFL Sorts Mill Goudy TT</string>
            <string>Ocean Sans Std</string>
            <string>Old Standard TT</string>
            <string>Optima</string>  <!--- needs work but may be able to be promoted eventually -->
            <string>OTS derived font</string>
            <string>OTS derivied font</string>            <!-- bug in chrome code? -->
            <string>Palladio</string>
            <string>Papyrus</string>
            <string>PrimaSans BT</string>
            <string>proxima-nova-1</string>
            <string>proxima-nova-2</string>
            <string>proxima nova</string>
            <string>proxima nova bold</string>
            <string>proxima nova regular</string>
            <string>Reenie Beanie</string>
            <string>SimHei</string>
            <string>Skia</string>
            <string>Swansea</string>
            <string>Swiss721</string>
            <string>Sylfaen</string>
            <string>Tangerine</string>
            <string>Times LT Std</string>
            <string>Times New Roman MT Std</string>
            <string>Times Roman</string>
            <string>Times Ten LT Std</string>
            <string>Univers LT Std</string>
            <string>URWClassico</string>
            <string>Utopia</string>
            <string>Verdimka</string>
            <string>Vollkorn</string>
            <string>Yanone Kaffeesatz</string>
            <string>Zapfino</string>
            <string>cmbx10</string>
            <string>cmex10</string>
            <string>cmmi10</string>
            <string>cmr10</string>
            <string>cmsy10</string>
            <string>cmtt10</string>
            <string>eufm10</string>
            <string>msam10</string>
            <string>msbm10</string>
            <string>wasy10</string>
            <string>Eurostile LT Std</string>
        </test>
        <edit mode="assign" name="font_type" target="font">
            <string>NON TT Instructed Font</string>
        </edit>
    </match>

    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Linux</string>
            <string>Fedora Linux</string>
        </test>
        <test name="font_type" target="font">
            <string>NON TT Instructed Font</string>
        </test>
        <edit mode="assign" name="autohint"  >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
    </match>

    <!-- For Windows 98 do "smooth edges" for these non-BCI fonts -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Windows 98</string>
        </test>
        <test name="font_type" target="font">
            <string>NON TT Instructed Font</string>
        </test>
        <edit mode="assign" name="rgba" >
            <const>none</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
    </match>

    <!-- For Windows 98 do "smooth edges" for Bold Fonts over 14 px -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Windows 98</string>
        </test>
        <test name="weight" compare="more">
            <const>medium</const>
        </test>
        <test compare="more_eq" name="pixelsize" qual="any" >
            <double>14</double>
        </test>
        <edit mode="assign" name="rgba" >
            <const>none</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
    </match>

    <!-- For Windows 98 do "smooth edges" for fonts above 17 px -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Windows 98</string>
        </test>
        <test compare="more_eq" name="pixelsize" qual="any" >
            <double>18</double>
        </test>
        <edit mode="assign" name="rgba" >
            <const>none</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
    </match>



    <!-- OVERRIDE ABOVE SETTINGS -->
    <!-- Monochrome BCI for these non-bold fonts (circa Windows 98) -->
    <!-- This should only be used by fonts that contain TrueType instructions -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>xxx-NOTHING-xxx</string>
        </test>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
    </match>

    <!-- OVERRIDE ABOVE SETTINGS -->
    <!-- Make these fonts use no antialiasing or hinting (circa DOS / X11) -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>ProFontWindows</string>
            <string>Terminus</string>
            <string>Terminus (ttf)</string>
        </test>
        <edit mode="assign" name="hintstyle" >
            <const>hintnone</const>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>false</bool>
        </edit>
        <!--<edit name="prefer_bitmap">
            <bool>true</bool>
          </edit>-->
    </match>

    <!-- OVERRIDE ABOVE SETTINGS -->
    <!-- Full autohint -->
    <!-- Makes vertical/horizontal stems align to pixels, but is not true to the glyphs -->
    <!-- Some glyphs may look forced into place, however they are very sharp -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>xxx-NOTHING-xxx</string>
        </test>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
    </match>

    <!-- OVERRIDE ABOVE SETTINGS -->
    <!-- Light autohint on italics -->
    <!-- Use for anything that is full auto or TT hinted above -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>xxx-NOTHING-xxx</string>
        </test>
        <test target="pattern" compare="not_eq" name="slant" >
            <const>roman</const>
        </test>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
    </match>


    <!-- *************  FORCED ARTIFICIAL ITALIC / BOLD ******************  -->

    <!-- "Unforced" artificial/italic already included in /etc/fonts/conf.d/ rules -->

    <!-- Force artificial italic instead of the font's default italic -->
    <!-- In rare cases this is more visually appealing -->

    <!-- Set the flag -->
    <match target="pattern">
        <test target="font" compare="eq" name="family" qual="any" >
            <string>-------Courier</string>  <!-- Somehow this breaks QT -->
        </test>

        <!-- match requests for non-roman face -->
        <test name="slant" compare="not_eq" >
            <const>roman</const>
        </test>

        <!-- remember that this should be slanted -->
        <edit name="fake_slant">
            <bool>true</bool>
        </edit>

        <!--- change to match a roman face instead -->
        <edit name="slant">
            <const>roman</const>
        </edit>
    </match>

    <!-- Force flagged fonts to have artificial oblique -->
    <match target="font" >
        <!-- check to see if the font is roman -->
        <test name="slant" >
            <const>roman</const>
        </test>
        <!-- look for fonts which were marked for fake obliquing -->
        <test name="fake_slant">
            <bool>true</bool>
        </test>
        <!-- multiply the matrix to slant the font -->
        <edit mode="assign" name="matrix" >
            <times>
                <name>matrix</name>
                <matrix>
                    <double>1.0</double>
                    <double>0.2</double>
                    <double>0</double>
                    <double>1</double>
                </matrix>
            </times>
        </edit>
        <!-- pretend the font is oblique now -->
        <edit mode="assign" name="slant" >
            <const>oblique</const>
        </edit>
    </match>


    <!-- Force fake bold instead of the font's default bold -->
    <!-- In rare cases this is more visually appealing -->

    <!-- Set the flag -->
    <match target="pattern">
        <test target="font" compare="eq" name="family" qual="any" >
            <string>xxx-NOTHING-xxx</string>
        </test>

        <!-- match requests for bold face -->
        <test name="weight" compare="more">
            <const>medium</const>
        </test>

        <!-- remember that this should be bolded -->
        <edit name="fake_bold">
            <bool>true</bool>
        </edit>

        <!--- change to match a medium weight instead -->
        <edit name="weight">
            <const>medium</const>
        </edit>
    </match>

    <!-- Force flagged fonts to have artificial bold -->
    <match target="font" >
        <!-- look for fonts which were marked for fake bolding -->
        <test name="fake_bold">
            <bool>true</bool>
        </test>
        <!-- Set the embolden flag -->
        <edit name="embolden" mode="assign">
                <bool>true</bool>
        </edit>
        <!-- pretend the font is bold now -->
        <edit mode="assign" name="weight" >
            <const>bold</const>
        </edit>
    </match>



    <!-- Prevent BCI fonts in Win98 mode from getting artificial italic -->
    <match target="font">
        <test name="rendering_style" qual="any" >
            <string>Windows 98</string>
        </test>
        <test name="font_type" target="font">
            <string>TT Instructed Font</string>
        </test>
        <!-- check to see if the font is roman -->
        <test name="slant" >
            <const>roman</const>
        </test>
        <!-- match requests for non-roman face -->
        <test target="pattern" name="slant" compare="not_eq">
            <const>roman</const>
        </test>
        <!-- pretend the font is oblique now -->
        <edit mode="assign" name="slant" >
            <const>oblique</const>
        </edit>
    </match>

    <!-- Prevent BCI fonts in Win98 mode from getting artificial emboldened -->
    <match target="font">
        <test name="rendering_style" qual="any" >
            <string>Windows 98</string>
        </test>
        <test name="font_type" target="font">
            <string>TT Instructed Font</string>
        </test>
        <!-- check to see if the font is just regular -->
        <test name="weight" compare="less_eq">
            <const>medium</const>
        </test>
        <!-- check to see if the pattern requests bold -->
        <test target="pattern" name="weight" compare="more">
            <const>medium</const>
        </test>
        <!-- pretend it's bold now -->
        <edit name="weight" mode="assign">
            <const>bold</const>
        </edit>
    </match>


    <!-- ********************  FINAL SETTINGS **********************  -->

    <!-- Make verdana 9 and 10 appear like they do on Windows -->
    <!-- Does not work with Google Chrome, but does in Firefox -->
    <match target="font">
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
        </test>
        <test name="family" qual="any" >
            <string>Verdana</string>
        </test>
        <test compare="less" name="weight" >
            <const>bold</const>
        </test>
        <test compare="more_eq" name="pixelsize" qual="any" >
            <double>8.5</double>
        </test>
        <test compare="less" name="pixelsize" qual="any" >
                <double>10.5</double>
            </test>
        <edit name="matrix" mode="assign" >
            <times>
                <name>matrix</name>
                <matrix>
                    <double>1.1</double>
                    <double>0.0</double>
                    <double>0.0</double>
                    <double>1.0</double>
                </matrix>
            </times>
        </edit>
    </match>


    <!-- Make verdana 12 appear like it does on Windows -->
    <!-- Does not work with Google Chrome, but does in Firefox -->
    <match target="font">
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
        </test>
        <test name="family" qual="any" >
            <string>Verdana</string>
        </test>
        <test compare="less" name="weight" >
            <const>bold</const>
        </test>
        <test compare="more_eq" name="pixelsize" qual="any" >
            <double>11.5</double>
        </test>
        <test compare="less" name="pixelsize" qual="any" >
                <double>12.5</double>
            </test>
        <edit name="matrix" mode="assign" >
            <times>
                <name>matrix</name>
                <matrix>
                    <double>1.05</double>
                    <double>0.0</double>
                    <double>0.0</double>
                    <double>1.0</double>
                </matrix>
            </times>
        </edit>
    </match>

    <!-- All fonts should use slight hinting below 8.5 px -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
        </test>
        <test compare="less" name="pixelsize" qual="any" >
            <double>8.5</double>
        </test>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
    </match>

    <!-- All fonts should use full hinting above 22 px
    <match target="font" >
        <test compare="more_eq" name="pixelsize" qual="any" >
            <double>22.5</double>
        </test>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
    </match> -->


    <!-- These full hinted fonts should use slight hinting below 12 px -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>Arial Black</string>
        </test>
        <test compare="less" name="pixelsize" qual="any" >
            <double>11.5</double>
        </test>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
    </match>

    <!-- These full hinted fonts should use slight hinting below 14 px -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>Aquabase</string>
            <string>Browallia New</string>
            <string>BrowalliaUPC</string>
        </test>
        <test compare="less" name="pixelsize" qual="any" >
            <double>13.5</double>
        </test>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
    </match>

    <!-- Gentium has issues with the infinality autohint patch -->
    <match target="font" >
        <test name="font_type" qual="any" >
            <string>Gentium</string>
        </test>
        <test compare="less" name="pixelsize" qual="any" >
            <double>10.5</double>
        </test>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintnone</const>
        </edit>
    </match>

    <!-- Italic Courier looks bad with BCI hinting -->
    <match target="font" >
        <test name="family" qual="any" >
            <string>Courier</string>
        </test>
        <!-- match requests for non-roman face -->
        <test name="slant" compare="not_eq" >
            <const>roman</const>
        </test>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
    </match>


    <!--  Rescan configuration every 10 seconds when FcFontSetList is called -->
    <rescan>
        <int>10</int>
    </rescan>


    <!-- Global Override for Debugging -->
<!--
    <match target="font" >
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>false</bool>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
    </match>
    -->

</fontconfig>

Last edited by anonymous_user (2010-12-16 01:15:05)

Offline

#9 2010-12-16 01:19:24

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Funky fonts in terminal, and wierd [not-so]solve

Unfortunately no sad I wind up with this: http://i.imgur.com/JPFet.png  And the same result of opening a new urxvt from urxvt being proper, though no fontconfig line 77 error now... grrr.

Offline

#10 2010-12-16 08:04:46

kwirkie
Member
Registered: 2010-01-09
Posts: 15

Re: Funky fonts in terminal, and wierd [not-so]solve

The fact that the issue arises from starting the terminal from the GUI would imply that your desktop environment language settings could be the incorrect. What desktop/display manager are you using?

Offline

#11 2010-12-16 17:16:10

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Funky fonts in terminal, and wierd [not-so]solve

I am using a plain fluxbox session. In case they are of any use in diagnosing, here is my .fluxbox/startup:

ââ> cat .fluxbox/startup
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
feh --bg-scale /home/bobby/Desktop/120110/gibson_les_paul___after_hours_by_cascadingStyleFish.jpg

# This sets a black background
#/usr/bin/fbsetroot -solid black

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp "/home/bobby/.fonts"
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap "/home/bobby/.Xmodmap"



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
xset -dpms &
xset s off &
mpd &
keytouchd &
xrdb ~/.Xdefaults &
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1 &
thunar-volman &
#amarok &
xset r rate 250 30 &
blueman-applet &
#sonata &
#gmpc &
#rainlendar &
#timidity -iA -Os &
sleep 3 && sh /home/bobby/scripts/conky.sh &
#nvidia-settings -a XVideoSyncToDisplay=DFP-0
#gnome-settings daemon &
# tilda &
#gnome-obex-server &
irexec &
urxvt &
#xscreensaver &
#gqview /media/stuff/guitar/fretboard-layout.gif &
#blueman &
#xcompmgr -c -r10 -F -f -D4 -C -o0.8 &


# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log "/home/bobby/.fluxbox/log"

My .Xdefaults:

Xcursor.theme: Obsidian

URxvt*scrollBar: false
URxvt*geometry: 120x70
URxvt*depth: 32
URxvt*jumpScroll: true
URxvt*skipScroll: true
URxvt*visualBell: false
URxvt*buffered: true
URxvt*background: rgba:0000/0000/0000/6666
URxvt*foreground: rgba:aaaa/aaaa/aaaa/7777
URxvt*transparent: false
URxvt*fading: 10
URxvt*fadeColor: grey
URxvt*shading: 75
URxvt*font: xft:Terminus-13
URxvt*boldFont: xft:Terminus-12-bold
URxvt*urlLauncher: firefox
URxvt.matcher.button:   2
URxvt.perl-ext-common: matcher,clipboard
URxvt.perl-lib: /usr/lib/urxvt/perl/matcher
URxvt*intensityStyles: true
URxvt*internalBorder: 0
URxvt*externalBorder: 1
URxvt*borderLess: false
URxvt*termName: rxvt-256color
urxvt.colorBD:           #ffffff
urxvt.colorIT:           #bbbbbb
urxvt.colorUL:           #999999
urxvt.underlineColor:    #999999

XTerm*Geometry: 100x60
XTerm*background: Black
XTerm*foreground: White
XTerm*scrollBar: false
XTerm*termName: xterm-256color



!*background:     #121212
!black
!*color0:         #353535
!*color8:         #666666
!red
!*color1:         #AE4747
!*color9:         #EE6363
!green
!*color2:         #556B2F
!*color10:        #9ACD32
!brown/yellow
!*color3:         #DAA520
!*color11:        #FFC125
!blue
!*color4:         #6F99B4
!*color12:        #7C96B0
!magenta
!*color5:         #8B7B8B
!*color13:        #D8BFD8
!cyan
!*color6:         #A7A15E
!*color14:        #F0E68C
!white
!*color7:         #DDDDDD
!*color15:        #FFFFFF
!*foreground: #DDDDDD


*background:       #151515
*foreground:       #cacaca
!black
*color0:           #111111
*color8:           #505050
!red
*color1:           #b04020
*color9:           #dd4010
!green
*color2:           #afd700
*color10:          #daff30
!yellow
*color3:           #f7cf0a
!*color11:          #fce70d
*color11:          #ff9600
!blue
*color4:           #3060aa
*color12:          #6099dd
!magenta
*color5:           #d6156c
*color13:          #fe4365
!cyan
*color6:           #a0c2de
*color14:          #c9dee8
!white
*color7:           #808080
*color15:          #b0b0b0

Much thanks for your help!!

Offline

#12 2010-12-16 20:45:41

kwirkie
Member
Registered: 2010-01-09
Posts: 15

Re: Funky fonts in terminal, and wierd [not-so]solve

One thing that stands out is your term is 'rxvt-256color' in your Xdefaults rather than 'rxvt-unicode-256color', although you'd think that it would effect all sessions of urxvt.

Try having a read of this forum post:
http://www.salixos.org/forum/viewtopic. … 56&start=0
Looks like their having the same issue. There are a few suggestions worth ago but the problem seemed to be with x86_64 version.

Offline

Board footer

Powered by FluxBB