LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-30-2011, 05:17 AM   #1
Beekman
Member
 
Registered: Mar 2010
Location: Kampen, The Netherlands
Distribution: Ubuntu 14.04
Posts: 33

Rep: Reputation: 0
Unable to use MS TrueType fonts


Hello,

I am remaking a website, and wanted to test it with some Microsoft fonts (f.e. Trebuchet MS), so I installed the Microsoft True Type Core Fonts, using the Ubuntu Software Center, but they don't work (tested with Firefox and Chromium).

I made a very simple test HTML, and set my default font to a monospaced font, to see if it falls back, and it does for all fonts except Helvetica and Arial.

Can anyone tell me what I've done wrong, or how I can find/fix the problem?


This is my test-source;
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
  <
head>
        <
title>Font test</title>
        <
meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <
style type="text/css">
            .
{
                
font-family"Trebuchet MS";
            }
            .
{
                
font-familyGeorgia;
            }
            .
{
                
font-family"Lucida Grande";
            }
            .
{
                
font-family"Comic Sans MS";
            }
            .
{
                
font-familyTrebuchet;
            }
            .
helvetica {
                
font-familyHelvetica;
            }
            .
arial {
                
font-family"Arial";
            }
        </
style>
  </
head>
  <
body>
        <
class="a">
            
Lorem ipsum dolor sit ametconsectetur adipiscing elit.
        </
p>
        <
class="b">
            
Lorem ipsum dolor sit ametconsectetur adipiscing elit.
        </
p>
        <
class="c">
            
Lorem ipsum dolor sit ametconsectetur adipiscing elit.
        </
p>
        <
class="d">
            
Lorem ipsum dolor sit ametconsectetur adipiscing elit.
        </
p>
        <
class="e">
            
Lorem ipsum dolor sit ametconsectetur adipiscing elit.
        </
p>
        <
class="helvetica">
            
Lorem ipsum dolor sit ametconsectetur adipiscing elit.
        </
p>
        <
class="arial">
            
Lorem ipsum dolor sit ametconsectetur adipiscing elit.
        </
p>
  </
body>
</
html
 
Old 01-30-2011, 07:42 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by Beekman View Post
I am remaking a website, and wanted to test it with some Microsoft fonts (f.e. Trebuchet MS), so I installed the Microsoft True Type Core Fonts, using the Ubuntu Software Center, but they don't work (tested with Firefox and Chromium). I made a very simple test HTML, and set my default font to a monospaced font, to see if it falls back, and it does for all fonts except Helvetica and Arial.
Apologies, I don't quite understand what your situation is... Are you saying that the installation didn't work, so you expected none of the text to be in a monospaced font rather than the MS fonts, but when you looked at the webpage Helvetica and Arial displayed as they should do? That would suggest to me that Helvetica and Arial installed properly
 
Old 01-30-2011, 07:54 AM   #3
Beekman
Member
 
Registered: Mar 2010
Location: Kampen, The Netherlands
Distribution: Ubuntu 14.04
Posts: 33

Original Poster
Rep: Reputation: 0
Helvetica was not one of the fonts I installed, and my guess is that Arial was also already installed on my system.
So it looks like the installation just didn't work.

But Ubuntu Software Center sais its installed, and when I try to manually install it (with apt-get) it also does not install, because the newest version is already installed.

I'm pretty new to Linux, so I have no idea where I can check if the fonts are properly installed...

Edit;
I searched for Trebuchet and found a broken link...
After finding the directory it contained a readme file with a warning (License refused)...
I reinstalled it, and now it works fine!

Last edited by Beekman; 01-30-2011 at 08:23 AM.
 
  


Reply



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
truetype fonts wetnose23 Slackware 14 10-06-2008 07:39 AM
MS truetype fonts jchorn SUSE / openSUSE 4 09-04-2006 09:11 AM
No Truetype Fonts with XFree 4.3.0.1 Relativity Linux - Newbie 3 06-27-2004 02:13 PM
Truetype fonts wonderpun Linux - Software 2 10-09-2002 11:47 AM
TrueType Fonts under X B_Balazs Linux - Newbie 1 07-25-2001 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 PM.

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
Open Source Consulting | Domain Registration