Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"> .a { font-family: "Trebuchet MS"; } .b { font-family: Georgia; } .c { font-family: "Lucida Grande"; } .d { font-family: "Comic Sans MS"; } .e { font-family: Trebuchet; } .helvetica { font-family: Helvetica; } .arial { font-family: "Arial"; } </style> </head> <body> <p class="a"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> <p class="b"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> <p class="c"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> <p class="d"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> <p class="e"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> <p class="helvetica"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> <p class="arial"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> </body> </html>
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
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.