LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-24-2008, 02:18 PM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 498

Rep: Reputation: 37
The font I want...


In order to use OpenOffice documents that I have pulled over from Word more accurately, I have copied over the Arial family of fonts into my /usr/share/fonts/truetype directory. This works totally correctly for OpenOffice. However I now find, with Arial being such a common "base" font, that Firefox insists on using it to display most web pages.

Although I like the look of Arial for word processed/printed documents, I don't like it when used to display web pages on-screen. I prefer the basic Sans-Serif font Firefox normally uses.

I really want Firefox to stop using the Arial font in /usr/share/fonts/truetype for displaying web pages. I am aware I can select a default font in Firefox's preferences, but that would mean it would use that font all the time, overriding the web page's preference. I would prefer not to do this... but I just want it to stop using Arial!!

Short of deleting the Arial font from /usr/share/fonts/truetype, and copying it back again whenever I need to work in OpenOffice (I surf the web more than I type documents), is there anywhere I can copy the Arial font family to, in /usr/share/fonts/truetype, where Firefox won't find it but OpenOffice will? I notice there is an "openoffice" sub-folder inside /usr/share/fonts/truetype, but moving Arial into there does not make any different - Firefox still finds it.

A trivial problem, I know - but any suggestions please?

Steve Wylie
 
Old 03-24-2008, 11:05 PM   #2
Caballero del norte
Member
 
Registered: Apr 2007
Location: Sonoran Desert, USA
Distribution: Ubuntu 8.04
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by Steve W View Post
I really want Firefox to stop using the Arial font in /usr/share/fonts/truetype for displaying web pages. I am aware I can select a default font in Firefox's preferences, but that would mean it would use that font all the time, overriding the web page's preference. I would prefer not to do this... but I just want it to stop using Arial!!
Steve,

Are you saying that you would like to never see Arial again on pages where the page is requesting Arial? Or are you saying that you want to never see it again on *any* page?

BTW, you can select a default font that does not override the page's preferences... just click the little box "Allow pages to choose their own fonts, instead of my selections about" in the fonts window that comes up when you click Advanced under Content in Firefox Preferences.
 
Old 03-25-2008, 06:56 AM   #3
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 498

Original Poster
Rep: Reputation: 37
My problem is, that if I select "Allow pages to choose their own fonts, instead of my selections above", the majority of web pages seem to display in Arial. I don't know whether this is most people's "default font" for web pages, but it just doesn't look very good on my screen. Personal preference, I guess. Maybe most web page designers pick Arial by default as it is virtually guaranteed to be on most people's (Windows) PCs. In Linux, with open source fonts and without Arial present, it appears to default to a font that just looks better on my screen.

So, as far as I can see, if I could have Arial on my machine, but "hide" it away from Firefox but still have it available for OpenOffice, that would be great. Failing that, I will have to copy the Arial family of fonts across from my Windows partition whenever I need to do some word processing...
 
Old 03-25-2008, 09:14 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
What happens if you rename arial.ttf to TheFontIDontlike.ttf?
You'll still be able to use it (I expect), but maybe Firefox will think "Arial" is not installed.
I don't know how much information about a font is embedded in the ttf file, and which apps may read it, so this may not work.
 
Old 03-25-2008, 10:18 AM   #5
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
FontForge

Changing the fontname on the filesystem is not enough. Font files store their font face and font family name information within themselves as well. Use a font creator application like FontForge (open source) to save your Arial font with all internal name values modified to a different name.

This is no perfect solution, because OpenOffice can also request Arial, and you will have to modify the file to use your own ArialRenamed. If a document's author requests Arial, then that's what he/she wants to have.

You could develop some code to make your font display engine use or avoid fonts based on your application preferences, but that's a lot of work for very little practical value.

Regrads,
SIMP

Fedora Development

Last edited by simplicissimus; 04-02-2008 at 05:58 AM.
 
Old 03-25-2008, 10:37 AM   #6
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
sounds odd that most pages would show up as arial. in my experience, most sans serif pages on the web are in verdana. do you have the other MSTT fonts installed?
 
Old 03-25-2008, 10:39 AM   #7
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 498

Original Poster
Rep: Reputation: 37
Yes, this is what I thought. Guess the easiest thing all round is to delete the Arial fonts from my Linux partition and just copy them back over from Windows when I need them.

Thanks for the advice.

Steve
 
Old 03-25-2008, 10:41 AM   #8
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 498

Original Poster
Rep: Reputation: 37
Reply to Slackhack: Hmm, that's a point. I shall take a look when I get home from work tonight and see if I didn't copy across Verdana or something. I did *assume* I was looking at Arial....
 
Old 03-25-2008, 10:47 AM   #9
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
Quote:
Originally Posted by Steve W View Post
Reply to Slackhack: Hmm, that's a point. I shall take a look when I get home from work tonight and see if I didn't copy across Verdana or something. I did *assume* I was looking at Arial....
I'm just saying maybe the page specifies "verdana, sans-serif" and if you don't have verdana it's defaulting to arial as the sans.
 
Old 03-25-2008, 10:52 AM   #10
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 498

Original Poster
Rep: Reputation: 37
I remember before, when I was trying to resolve this unwanted appearance of Arial, that I tried deleting Arial from /usr/share/fonts and it solved the problem. Unless I mis-remember. I'll check tonight and see what happens. The proof of the pudding and all that...
 
Old 03-26-2008, 01:57 AM   #11
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 498

Original Poster
Rep: Reputation: 37
You were absolutely right, slackhack - I copied Verdana into /usr/share/fonts/truetype, and the web pages now display in this font rather than Arial, even thought Arial is still present in the folder. So, best of both worlds in the end! Thanks for the advice.

Steve
 
  


Reply


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
Emacs - changing default font size and font type? neilcpp Linux - Software 16 05-20-2013 12:29 PM
a Truetype font resembling Windows' System font? newbiesforever Linux - General 12 02-04-2010 12:57 AM
How to change font color and font size in terminal ? wlaw Linux - Newbie 3 05-15-2007 09:57 PM
Wine font display problems (seems like system font) TuxLives Linux - General 0 11-02-2006 10:35 AM
TrueType Font Display and long font names jdeka Slackware 0 06-28-2003 04:04 AM


All times are GMT -5. The time now is 06:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration