473,657 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what do the old font size parameters mean in today's points and pixels?

Hi All

Strange question this, but could somebody tell me what the old size=1,
size=2 .... to size=7 font parameters are in pixels and points.

I thought it was:

size 1 = 7 pt
size 2 = 14 pt
size 3 = 21 pt
etc .. (in multiples of 7)

but these values don't add up to me.

Any ideas?

Thanks

Laphan
Jun 17 '06 #1
12 2167
Bud
Laphan wrote:
Hi All

Strange question this, but could somebody tell me what the old size=1,
size=2 .... to size=7 font parameters are in pixels and points.

I thought it was:

size 1 = 7 pt
size 2 = 14 pt
size 3 = 21 pt
etc .. (in multiples of 7)

but these values don't add up to me.
Any ideas?
http://www.elsid.co.za/download/css_fontsizes.htm
Thanks

Laphan

--
Nobody wants constructive criticism. It's all we can do to put up with
constructive praise
Jun 17 '06 #2
Laphan wrote:
Hi All
G'day.
Strange question this, but could somebody tell me what the old size=1,
size=2 .... to size=7 font parameters are in pixels and points.


It doesn't matter. Here in the 21st century, you should not be using
pixels and points (points are for printing). Use percentages and/or em
units instead.

http://k75s.home.att.net/fontsize.html

--
-bts
-Warning: I brake for lawn deer
Jun 17 '06 #3
To further the education of mankind, "Laphan" <in**@SpamMeNot .co.uk>
vouchsafed:
Hi All

Strange question this, but could somebody tell me what the old size=1,
size=2 .... to size=7 font parameters are in pixels and points.

I thought it was:

size 1 = 7 pt
size 2 = 14 pt
size 3 = 21 pt
etc .. (in multiples of 7)

but these values don't add up to me.

Any ideas?


There is no fixed relationship and never was. In <font size="x">, x is
relative to the user's default font size.

--
Neredbojias
Infinity has its limits.
Jun 17 '06 #4
On Sat, 17 Jun 2006, Laphan wrote:
Strange question this,
Well, yes, considering all the discussion there has been recently
which, if you'd been paying attention, would have made it clear that
the question, in the way you posed it, can have no answer...
but could somebody tell me what the old size=1,
size=2 .... to size=7 font parameters are
http://www.w3.org/TR/CSS21/fonts.html#font-size-props

They are /suggested/ to be equivalent to certain CSS absolute keyword
sizes.

One should be aware that some browsers have used different
equivalences between HTML font size and CSS. I haven't followed the
details recently.
in pixels and points.
The whole reason for having different ways of specifying font size is
that they scale in different ways. You'll only find out how many
pixels your font is going to be /after/ you've put the keyword size
through a particular browser's algorithms, taking regard of the
particular presentation situation.
I thought it was:

size 1 = 7 pt
size 2 = 14 pt
size 3 = 21 pt
etc .. (in multiples of 7)
I don't know what the basis for such a thought could be. It seems to
fail several obvious reality checks.

When I view size=3 on our projection screen, then it most certainly
does not measure up to 21pt - and a good thing too!!
but these values don't add up to me.
They don't multiply either... SCNR
Any ideas?


The web is not printed on paper.

Jun 18 '06 #5
JRS: In article <13************ *******@bgtnsc0 4-news.ops.worldn et.att.n
et>, dated Sat, 17 Jun 2006 19:51:25 remote, seen in news:comp.infos yste
ms.www.authoring.stylesheets, Beauregard T. Shagnasty
<a.*********@ex ample.invalid> posted :
Laphan wrote:
Strange question this, but could somebody tell me what the old size=1,
size=2 .... to size=7 font parameters are in pixels and points.


It doesn't matter.


Non sequitur. The OP may be wishing to update old code and wanting to
know the general meaning of those parameters in order to translate
appropriately.
Here in the 21st century, you should not be using
pixels and points (points are for printing). Use percentages and/or em
units instead.


--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Delphi 3 Turnpike 4 ©
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.co m/CompLangPascalD elphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines
Jun 18 '06 #6
Dr John Stockton <jr*@merlyn.dem on.co.uk> scripsit:
The OP may be wishing to update old code and wanting to
know the general meaning of those parameters in order to translate
appropriately.


So what? Just wanting that doesn't make it possible - or desirable.

As a rule of thumb, <font> tags should simply be removed. Sometimes they are
used to imitate headings, and then you should decide on a suitable heading
markup. (It would be a gross error to use CSS instead.)

Trying to clean up existing markup that uses <font> markup (usually rather
heavily) is generally waste of time - or worse, since mistakes are
inevitable in the long run. Such pages typically need a rewrite, not
modifications. If you just want to maintain the information content, do so,
and leave the markup as it is. If you have resources to improve the
structure and markup, it is better to rewrite 10 frequently used pages than
to do some "cleanup" of 1,000 pages.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 18 '06 #7
Dr John Stockton wrote:
Beauregard T. Shagnasty posted:
Laphan wrote:
Strange question this, but could somebody tell me what the old
size=1, size=2 .... to size=7 font parameters are in pixels and
points.
It doesn't matter.


Non sequitur.


It still doesn't matter.
The OP may be wishing to update old code and wanting to know the
general meaning of those parameters in order to translate
appropriately.


If, as Jukka explained, the OP is updating pages (and what other reason
would there be?), pixels and points should be scrapped, so there is no
need to know.
Here in the 21st century, you should not be using pixels and points
(points are for printing). Use percentages and/or em units instead.


No comment on that?

--
-bts
-Warning: I brake for lawn deer
Jun 18 '06 #8
In article <Qn************ ******@bgtnsc04-news.ops.worldn et.att.net>,
Beauregard T. Shagnasty <a.*********@ex ample.invalid> wrote:
Here in the 21st century, you should not be using pixels and points
(points are for printing). Use percentages and/or em units instead.


No comment on that?


I'll comment on that:

I disagree!

Satisfied? :)

Although you're generally correct about pixel font sizes, there are
times when it's appropriate (as when you need to maintain a fixed
relationship with images -- which are also sized in pixels.

And I think point sizes are quite appropriate for web pages. 10
points should look like 10 points no matter what computer or display
you have. The fact that some operating systems don't render point
sizes properly doesn't make the usage "wrong."

-A
Jun 19 '06 #9
axlq <ax**@spamcop.n et> wrote:
And I think point sizes are quite appropriate for web pages. 10
points should look like 10 points no matter what computer or display
you have. The fact that some operating systems don't render point
sizes properly doesn't make the usage "wrong."


Yes, 10pt should be the same size in any browsing environment. (Well, any
browsing environment where points have meaning, that is.) But that's what
makes them inappropriate for use on the web, except perhaps in specialized
situations where the medium and display environment are known in detail.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"I'd love to make time, if only I could find the recipe."
Jun 19 '06 #10

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

Similar topics

86
7753
by: Michael Kalina | last post by:
Because when I asked for comments on my site-design (Remember? My site, your opinion!) some of you told me never to change anything on font-sizes! What do you guys think of that: http://www.clagnut.com/blog/348/ I hope that's going to be a good discussion! Michael
6
1509
by: Ganesh J. Acharya | last post by:
Hi Friends! I had posted a query in the comp.infosystems.www.authoring.html group > Thanks for your guidance. Please check for the document now. I have > once again updated the website.... > > http://seashellwebs.com I got the following reply...........
14
2648
by: Viken Karaguesian | last post by:
Hello all, It stinks being a newbie! One thing that I'm not sure about with CSS is: where is the "proper" place to put font attibutes? This has me a little confused. Take the below style sheet (which is a work in progress) as an example. If I don't put the font attributes in the <body> <p> and <td> tags, the font will not appear the way I want (when I work in FrontPage, anyway). It doesn't seem to be enough to put the font attributes in...
7
3040
by: Daniel Kaplan | last post by:
I have the item below at the top of my style sheet. And it seems that the font-szie is ignored. I know that my linked style sheet is being read, and used because if I remove the font-family line, the font changes. But it appears that no matter what I do with the font-size, it is ignored, and I cannot figure out why! Any clues? At the very bottom is the entire style sheet, just incase anyone comes accross something that they feel is...
60
4758
by: deko | last post by:
As I understand it, most browser manufacturers have agreed on 16px for their default font size. So, this should be an accurate conversion for percentages: px % 16 = 100 14 = 87.5 13 = 81.25
4
1902
by: _Raven | last post by:
Okay, I am playing with submitting forms with Ajax. I am trying to adapt this script to my forms: http://www.captain.at/howto-ajax-form-post-get.php I have included my code at the bottom of this post. Basically, this will work correctly if I remove all non-form related tags from the form =eg span, div, but I want to format the form all pretty like so??? Right now, it only collects 2 parts of the form fields =sites &
3
3320
by: k | last post by:
Hi, I'm trying to migrate from Java to C# and have encountered a problem. I can't seem to find a way to create (ultra)condensed fonts for later use in a program. In Java I had a really nice method some_font.deriveFont(AffineTransform), which would return a new font. (AffineTransform was just a simple 3x3 matrix) I'll be most grateful for the help.
71
5778
by: Mark | last post by:
Sorry if the question is a bit basic. I generally express my font sizes in pixels, originally to handle the Macintosh/Windows font size differences (though I believe that they both now treat points the same way, at least within the browser window). It has been suggested that one should use ems to allow browsers to increase or decrease the text size. However, I have never had trouble with pixels.
19
2071
by: Viken Karaguesian | last post by:
Hello everyone, Just an observation here: the CSS newsgroup (comp.infosystems.www.authoring.stylesheets) is totally dead. Why?... Anyway here's my discussion point: What is the most versatile value to use to set font-size? I set my font size in percentages. I set the main font size in the body tag (which everything will inherit), then adjust other sizes in relation to that (for headers, fine print, etc).
0
8394
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.