I'm making a website template at the moment, and I'm not too keen on the 'times new roman font'. Anyone got any suggestions as to some nice fonts I could use that come as standard with both windows and linux? Atm all I can think of is sans.
Cheers.
I'm making a website template at the moment, and I'm not too keen on the 'times new roman font'. Anyone got any suggestions as to some nice fonts I could use that come as standard with both windows and linux? Atm all I can think of is sans.
Cheers.
Arial Narrow, Tahoma, and Verdana are some nice sans-serif fonts of varying widths. If linux does not have them, they're likely to be installed with Star Office. So there you go.
Yeah Verdana is one of my favorites, but it seems I don't have it on my Linux pc. I got open office too. I dont know maybe I'll add a javascript to check the OS and then load a stylesheet dependent on whats being run.
Cheers.
Mhm, Star Office isn't open office. Style sheets already have the capability to degrade gracefully or whatever, so there's no need for any scripting magic. Just use the font-family property in your rules.
Arial Narrow looks nice in my opinion. You might want to adjust the letter spacing in your style sheet.
See if your distro has a "corefonts" package, it ought to contain Verdana, Tahoma, Courier New, Times New Roman, Arial and a few more.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee: thanks, I'll have a look for it.
Brewbuck: I'm a bit of a weird one when it comes to laying out web pages, I don't use standard p, or h tags; I generally make custom id's and chuck everything in divs. And if I leave it up to Firefox it seems to like to picking yucky serif fonts for me.
You can use the appropriate paragraph/heading elements with custom ids too.I don't use standard p, or h tags; I generally make custom id's and chuck everything in divs.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Yeah I know its just for some reason I never bothered using them.
Anyone know of any Monospace fonts with serifs?
...I'm so used to it I forget they have them.
*continues to fail*
You can use something like this CSS (copied from my web site):
It tries Verdana, then Geneva, etc, and failing all else, whatever sans-serif font the user has selected to be the default "sans-serif font".Code:font-family: Verdana, Geneva, Helvetica, Arial, sans-serif;
It should be noted that I've never actually seen Geneva, I just got it somewhere; someone said it was a nice sans serif font for UNIX or Mac or something.
Here's what I use for monospace, because I don't care so much what it looks like:
Anyway, just a thought . . . .Code:font-family: 'Courier New', Courier, monospace;
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Oh cool, I'll do that then. I think remember seeing that used before actually.
Actually, I have to discourage you from doing that. Unless you actually test every single of these fonts, making sure that they fit into the layout and look good, you should leave the choice to the user's browser, using the generic font names. After all, if you haven't actually made sure that your font choice looks better than otherwise, who are you to dictate font choices? Perhaps I have my own special, beautiful serif font that I want to be used whenever the website author couldn't think of anything better. Should I be forced back to Times New Roman just because the author was too lazy to think about what he's doing?
Typography is important.
For example, I can compare four sans-serif fonts on my Linux box: Arial, Bitstream Vera, DejaVu and Verdana. I do this at three font sizes.
Generally speaking, Bitstream and DejaVu are extremely similar. DejaVu has slightly thinner lines, making it easier to read at small sizes (9pt). Bitstream has an odd bug where an r followed by an e leads to a huge gap. Could be OpenOffice, though. The fonts have pretty much the same metrics otherwise.
Verdana is also very similar. It was designed to be readable at small sizes, and it shows. It's a little wider than the other two at 12pt. It's definitely more readable at 9pt. It's butt ugly at 32pt.
Arial looks completely different. It's very narrow, with strong strokes, making it look very compact, but hard to read at small sizes. On the other hand, it looks better than the others at 32pt.
Typography is hard.
But as a simple guideline, I can say this: never put Verdana and Arial in the same font chain. They serve different purposes and look nothing alike. Claiming that one can replace the other is simple ignorance.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law