LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 11-01-2008, 11:25 PM   #1
powerpleb
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:
Code:
~$ 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:
Code:
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintmedium</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
 <alias>
   <family>Times</family>
   <prefer><family>Liberation Serif</family></prefer>
 </alias>
</fontconfig>
But it doesn't work.

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

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

Rep: Reputation: 288Reputation: 288Reputation: 288
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.
 
  


Reply

Tags
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 11:02 AM
True Type Fonts denning Linux - General 3 02-24-2005 08:48 PM
true type fonts flump Linux - Software 2 08-25-2003 11:01 AM
True Type Fonts XPediTioN Slackware 15 08-07-2003 01:35 PM
true type fonts!!! bigjohn Linux - Software 1 10-29-2002 08:38 AM


All times are GMT -5. The time now is 11:04 AM.

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