Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-01-2008, 10:25 PM   #1
LQ Newbie
Registered: Apr 2008
Location: Melbourne, Australia
Distribution: Arch, Ubuntu 8.04
Posts: 27

Rep: Reputation: 15
Aliasing/mapping ugly old fonts to smooth new true type ones.

Sometimes I've visited certain web pages and been struck by how horrible the font looks. On closer examination I've found that this happens when webpages are using the fonts 'Times' and 'Helvetica'.

I think this is why:
~$ fc-match Times; fc-match Helvetica
timR12.pcf.gz: "Times" "Regular"
helvR12.pcf.gz: "Helvetica" "Regular"
It's using ugly old non true-type fonts.

So my question is, can I map 'Times' to be replaced by, say 'Liberation Serif' (or something similar) and 'Helvetica' to be replaced by 'Liberation Sans'.

I've tried playing with the ~/.fonts.conf thus:
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <match target="font" >
  <edit mode="assign" name="rgba" >
 <match target="font" >
  <edit mode="assign" name="hinting" >
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <prefer><family>Liberation Serif</family></prefer>
But it doesn't work.

Any ideas? I'm running Firefox on Ubuntu Hardy.

Last edited by powerpleb; 11-01-2008 at 10:32 PM.
Old 11-02-2008, 02:15 AM   #2
Senior Member
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
In Firefox go to: edit > preferences > content. Set the default font you want. Then click the "advanced" button. Set a minimum font size if you want. Then uncheck the box that says "Allow pages to choose their own fonts ...". Now all your web pages will use only the default fonts that you set in Firefox's preferences.


alias, fonts, mapping, times, true, type

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
True Type fonts RobKirchoff Linux - Software 1 10-20-2005 10:02 AM
True Type Fonts denning Linux - General 3 02-24-2005 07:48 PM
true type fonts flump Linux - Software 2 08-25-2003 10:01 AM
True Type Fonts XPediTioN Slackware 15 08-07-2003 12:35 PM
true type fonts!!! bigjohn Linux - Software 1 10-29-2002 07:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration