473,396 Members | 2,089 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.

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 2146
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*******************@bgtnsc04-news.ops.worldnet.att.n
et>, dated Sat, 17 Jun 2006 19:51:25 remote, seen in news:comp.infosyste
ms.www.authoring.stylesheets, Beauregard T. Shagnasty
<a.*********@example.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.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines
Jun 18 '06 #6
Dr John Stockton <jr*@merlyn.demon.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.worldnet.att.net>,
Beauregard T. Shagnasty <a.*********@example.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.net> 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****@stanfordalumni.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
On Mon, 19 Jun 2006, axlq wrote:
And I think point sizes are quite appropriate for web pages. 10
points should look like 10 points
No, it should not "look like" 10 points - it is specified to *measure*
10 points, no matter what it looks like.
no matter what computer or display you have.
Yup, 10/72 of an inch on the tiny head-mounted display, and 10/72 of
an inch on the 30-foot high projection screen. Makes a lot of sense,
doesn't it?[1]
The fact that some operating systems don't render point
sizes properly doesn't make the usage "wrong."


It's only by relying on the fact that browsers don't implement
absolute length units to specification, that the wrongness isn't more
obvious to everybody.

ttfn

[1] A question expecting the answer 'no'.
Jun 19 '06 #11
axlq wrote:
Beauregard T. Shagnasty <a.*********@example.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? :)


No! <lol>
Although you're generally correct about pixel font sizes,
<elvis>Thank ya vurry much.</elvis>
there are times when it's appropriate (as when you need to maintain a
fixed relationship with images -- which are also sized in pixels.
You can use pixels for area sizing, divs and the like - that is ok in
some circumstances - but the conversation is about font (text) sizing,
where you can only shoot yourself in the foot with px and pt.
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."


Answered by the other boys.

--
-bts
-Warning: I brake for lawn deer
Jun 19 '06 #12
JRS: In article <Qn******************@bgtnsc04-news.ops.worldnet.att.ne
t>, dated Sun, 18 Jun 2006 23:32:00 remote, seen in news:comp.infosystem
s.www.authoring.stylesheets, Beauregard T. Shagnasty
<a.*********@example.invalid> posted :
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.


Jukka and yourself have both emitted knee-jerk reactions without
effective thought.
If the original coder had put in a font size 1..7 marking, then it is
useful for an updater to know approximately what effect that would have
given, as a guide to the sort of effect to be aimed for in an updated
page. And to know it in pixels and/or points could be particularly
helpful of the original page (including any stylesheet) also used
pixels/points.

In my browser, size 3 is the default size; and visual size increases
with number in reasonable steps.

Granted, Laphan has not posed his question felicitiously; nevertheless,
it can be answered in its own terms by saying that size 3 gives the same
number of pixels/points as default text uses, size 6 gives about twice
as many, and that the steps are about constant-ratio. You may have more
exact typical figures.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3 Turnpike 4 ©
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines
Jun 19 '06 #13

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

Similar topics

86
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:...
6
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.... > >...
14
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...
7
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,...
60
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 =...
4
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...
3
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...
71
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...
19
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.