Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Typewriter-style font set.

Typewriter-style font set.
Thread Tools
Addicted to MacNN
Join Date: Jan 2001
Location: The Sar Chasm
Status: Offline
Reply With Quote
Jul 7, 2002, 01:35 PM
 
I want to build a page using a typewriter font, and am looking for suggestions as to a good font set that will work with Mac and Win. American Typewriter is a default font in OS X, so that'll do, but I forget about OS 9, and have no earthly clue about default fonts in Windows.

What's a good typewriter style font that's likely to be in the basic font sets on Windows boxes?

(Edit: I think Courier will work for OS 9 and below Macs)
CV

<small>[ 07-07-2002, 02:37 PM: Message edited by: chris v ]</small>

When a true genius appears in the world you may know him by this sign, that the dunces are all in confederacy against him. -- Jonathan Swift.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jul 8, 2002, 05:17 PM
 
You can specify "fallback" fonts in order of preference, so that if one is not present the next one is used. For a FONT tag, for example, you could do:

FONT FACE="'American Typewriter', Courier, 'Courier New'"

In CSS, the rule you want would be:

font-family: "American Typewriter", Courier, "Courier New", monospace;

In both cases, it works like this.</font><ol type="1">[*]<font size="1" face="Geneva, Verdana, Arial, sans-serif">If the user has American Typewriter, that's used.</font></li>[*]<font size="1" face="Geneva, Verdana, Arial, sans-serif">If they don't have that, but they have Courier, it's used instead.</font></li>[*]<font size="1" face="Geneva, Verdana, Arial, sans-serif">If they don't have either of those but they have Courier New, then that's displayed.</font></li>[*]<font size="1" face="Geneva, Verdana, Arial, sans-serif">(CSS rule only) If they don't have any of those fonts (an incredibly unlikely occurence but one that shouldn't be ruled out), the browser's default monospace font will be used.
</font></li>[/list=a]<font size="1" face="Geneva, Verdana, Arial, sans-serif">Note that American Typewriter is a default font on OSX, Courier is default on X and 9, and Courier New is the Windows equivalent. I listed them with Courier first because Courier New comes with IE, but to be frank Courier looks better, so this ordering will make the browser prefer it to Courier New. The browser's default monospace font (our last-resort fallback) is not likely to be ideal, but it'll be closer to what you intended than regular proportional fonts.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
chris v  (op)
Addicted to MacNN
Join Date: Jan 2001
Location: The Sar Chasm
Status: Offline
Reply With Quote
Jul 9, 2002, 10:51 AM
 
Thanks, that's what was looking for. I'm actually beginning to figure the CSS stuff out, I just needed a reliable option for a Windows font.

Do you happen to have a full list of the usual Windows default fonts for future reference?

CV

When a true genius appears in the world you may know him by this sign, that the dunces are all in confederacy against him. -- Jonathan Swift.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:35 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2