473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

font-weight

I've been specifying font-weights (when needed) numerically.

font-weight: 700 (ie: bold)

I've noticed that this varies from OS to OS.

For example:

..someclass{
font-family: Verdana, sans-serif;
font-weight: 500;
}

looks bold on a Mac, and normal on the PC (IE5, Opera 7 and NS7.1).

What's the preferred method for specifying font-weights?

Jeff
Jul 20 '05 #1
2 2418
"Jeff Thies" <no****@nospam.net> wrote:
font-family: Verdana, sans-serif;
font-weight: 500;

looks bold on a Mac, and normal on the PC (IE5, Opera 7 and NS7.1).


We have:
100 = x0064 thin
200 = x00C8 extralight
300 = x012C light
400 = x0190 regular, normal
500 = x01F4 medium
600 = x0258 semibold
700 = x02BC bold
800 = x0320 heavy, extrabold
900 = x0384 black

But the Verdana typeface family consists of only four styles: normal,
oblique, bold, bold oblique. So what do you expect when specifying
a non-existent font-weight?
Jul 20 '05 #2
Andreas Prilop <nh******@rrzn-user.uni-hannover.de> wrote:
But the Verdana typeface family consists of only four styles: normal,
oblique, bold, bold oblique. So what do you expect when specifying
a non-existent font-weight?


I would expect the browser make its best attempt at approximating the
desired weight the best way it can. But being a realist, I don't expect
the browser's best be very good.

My IE 6 (Win98) shows font weights 100 through 500 all the same for
Verdana, weight 600 bolder, weights 700 and 800 considerably bolder,
and weight 900 even much bolder. On Opera, it's basically the same
except that 600 is essentially as bold as 700 but looks a bit bolder
because the character spacing is bigger. Mozilla shows 600 through 900
all the same.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
115
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." ...
0
by: Paul D. Sullivan | last post by:
I've been trying to find out how to increase the font size in the text entry fields in Invision Power Board 1.3 for a while. The part where you enter your post and do the quick reply and all that...
9
by: Dr John Stockton | last post by:
Assuming default set-ups and considering all reasonable browsers, whatever that may mean, what should an author expect that his readers in general will see (with visual browsers) for a page with...
4
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a...
7
by: Sakharam Phapale | last post by:
Hi All, How to preserve the old font properties while changing new one? I posted same question 2 months back, but I had very small time then. eg. "Shopping for" is a text in RichTextBox and...
1
by: Henry Jones | last post by:
I found some code to change the font on a button to bold: private void btnBold_Click(object sender, System.EventArgs e) { btnCalculate.Font = new Font(btnCalculate.Font, ...
30
by: Takehiko Abe | last post by:
I have a <pelement with <ttinside: ;;; <p>A paragraph contains <tt>tt element</tt>.</p> I would like to set the font-size of the TT to the same as the containing <p>. This does not seem to...
17
by: teser3 | last post by:
I can put out a Word Doc from PHP but if I try and manipulate the font size in the PHP part it outputs a blank Word Document. Here is what I have: <?php $fname="report.doc"; $handle = fopen(...
6
by: Miro | last post by:
Is there a way to / or a mathematical formula to see if a font size is 'too big' for a label. I have a label that is docked to 'fill' a form, and I want to resize that font based on the width...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.