473,795 Members | 3,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Different size for different font

In his book "CSS: The Definitive Guide" 2nd edition (pgs. 116-117), Eric
Meyer has an interesting discussion about "font-size-adjust" that was
evidently dropped in CSS 2.1 due to browser non-support. I'm wondering
if there's some way I could still get a primitive version of this
functionality, because different fonts display at very different optical
sizes for the same nominal sizes.

For example, suppose I want type to display in 13px/1.5em Georgia. But
if the user doesn't have Georgia installed, and I've simply listed Times
New Roman as the alternate font in the usual way (or if "serif" gets
interpreted as Times on their system), then the type will display in
13px Times, which is optically much smaller than 13px Georgia (and has
optically different xheight/linespacing characteristics too). Even if I
used em instead of px, I'm guessing there'd be a substantial size
difference.

So what I'd really like, in the absence of "font-size-adjust", is
something like this:

p.someClass {font: 13px/1.5em Georgia, 15px/1.4em "Times New Roman",
14px/1.5em serif;}

....but I have a feeling that wouldn't actually do what I want. Er...
would it?

Any solution?
May 20 '07
53 5274
In article
<XN************ ******@bgtnsc05-news.ops.worldn et.att.net>,
"Beauregard T. Shagnasty" <a.*********@ex ample.invalidwr ote:
And, it's time to do some
lawn mowing.

--
-bts
-Motorcycles defy gravity; cars just suck
So... what about ride-on mowers? They surely don't suck?

--
dorayme
May 21 '07 #31
dorayme wrote:
In article
<XN************ ******@bgtnsc05-news.ops.worldn et.att.net>,
"Beauregard T. Shagnasty" <a.*********@ex ample.invalidwr ote:
>And, it's time to do some
lawn mowing.

--
-bts
-Motorcycles defy gravity; cars just suck

So... what about ride-on mowers? They surely don't suck?
Actually, they do, for a partial rotation. Then they blow ... the grass
out the side (or into the bag). :)
--

*** Remove the DELETE from my address to reply ***

=============== =============== =============== =========
Kevin Scholl http://www.ksscholl.com/
ks*****@comcast .DELETE.net
------------------------------------------------------
Information Architecture, Web Design and Development
------------------------------------------------------
We are the music makers, and we are the dreamers of
the dreams...
=============== =============== =============== =========
May 21 '07 #32
In article <Kc************ *************** ***@comcast.com >,
Kevin Scholl <ks*****@comcas t.DELETE.netwro te:
dorayme wrote:
In article
<XN************ ******@bgtnsc05-news.ops.worldn et.att.net>,
"Beauregard T. Shagnasty" <a.*********@ex ample.invalidwr ote:
And, it's time to do some
lawn mowing.

--
-bts
-Motorcycles defy gravity; cars just suck
So... what about ride-on mowers? They surely don't suck?

Actually, they do, for a partial rotation. Then they blow ... the grass
out the side (or into the bag). :)
Indeed. But seriously, to get back to the more relevant topic,
the beauty of a motorbike as distinct from a car is that it is
often not that much more than is needed to get a person about
with dash and verve. A ride-on mower can also share in this
aesthetic but is in great danger of being developed by wrong
headed commercial interests to include facilities (seats for the
kids, enclosure, air-conditioning, ...) that tend to suckiness.

--
dorayme
May 21 '07 #33
dorayme wrote:
"Beauregard T. Shagnasty" <a.*********@ex ample.invalidwr ote:
>And, it's time to do some lawn mowing.

--
-bts
-Motorcycles defy gravity; cars just suck

So... what about ride-on mowers? They surely don't suck?
I sometimes wish I had one. We have two houses with lawns to mow - one
a bit over an acre, the other about a third-acre, and all we have is
this 21-inch self-propelled hand mower...

--
-bts
-Motorcycles defy gravity; cars just suck
May 22 '07 #34
In article
<OV************ *******@bgtnsc0 5-news.ops.worldn et.att.net>,
"Beauregard T. Shagnasty" <a.*********@ex ample.invalidwr ote:
dorayme wrote:
"Beauregard T. Shagnasty" <a.*********@ex ample.invalidwr ote:
And, it's time to do some lawn mowing.

--
-bts
-Motorcycles defy gravity; cars just suck
So... what about ride-on mowers? They surely don't suck?

I sometimes wish I had one. We have two houses with lawns to mow - one
a bit over an acre, the other about a third-acre, and all we have is
this 21-inch self-propelled hand mower...
Sounds like you need what they use in the park behind me, a
tractor pulling a cylinder mower, many feet wide along.

--
dorayme
May 22 '07 #35
dorayme <do************ @optusnet.com.a uwrites:
In article <wf************ @calligramme.ch armers>,
Jon Fairbairn <jo***********@ cl.cam.ac.ukwro te:
Unfortuntaly I've had such a complaint from a client (and
for this particular client I'm too far down the hierarchy to
have much say in the matter). It seems to me that the root
cause of this is that the font default sizes on Windows (IE
at any rate)

Well, this depends on how you view the strength of the
alternative explanation I gave. I too have had complaints about
100% being too big from clients but where it is perfectly clear
that they are not using IE (but Mac and other browsers). I would
think this business of X height that you mention is marginal to
the real explanation, namely that quite a few people have become
used to seeing sites with less than 100% for body text,
Sure, but I was arguing that one of the reasons that sites
started having <100% body text was this x-height issue
(namely the designer selects a sans font, sees it looks
bigger than intended and shrinks it without thinking of the
reasons why). Once more than a few sites have been designed
like that, users have to respond, and lo and behold 80% is
the new 100% :-(

--
Jón Fairbairn Jo***********@c l.cam.ac.uk
May 22 '07 #36
In article <wf************ @calligramme.ch armers>,
Jon Fairbairn <jo***********@ cl.cam.ac.ukwro te:
dorayme <do************ @optusnet.com.a uwrites:
In article <wf************ @calligramme.ch armers>,
Jon Fairbairn <jo***********@ cl.cam.ac.ukwro te:
Unfortuntaly I've had such a complaint from a client (and
for this particular client I'm too far down the hierarchy to
have much say in the matter). It seems to me that the root
cause of this is that the font default sizes on Windows (IE
at any rate)
Well, this depends on how you view the strength of the
alternative explanation I gave. I too have had complaints about
100% being too big from clients but where it is perfectly clear
that they are not using IE (but Mac and other browsers). I would
think this business of X height that you mention is marginal to
the real explanation, namely that quite a few people have become
used to seeing sites with less than 100% for body text,

Sure, but I was arguing that one of the reasons that sites
started having <100% body text was this x-height issue
(namely the designer selects a sans font, sees it looks
bigger than intended and shrinks it without thinking of the
reasons why). Once more than a few sites have been designed
like that, users have to respond, and lo and behold 80% is
the new 100% :-(
Ah well, perhaps you are on to something on the history of the
'arms race' here. Methinks there are less subtle forces at work.
Young earthlings with superb eyesight, a huge amount of rubbish
that is thought needed to be seen on home pages especially and so
on. Call me cynical.

--
dorayme
May 22 '07 #37
dorayme wrote:
Ah well, perhaps you are on to something on the history of the
'arms race' here. Methinks there are less subtle forces at work.
Young earthlings with superb eyesight, a huge amount of rubbish
that is thought needed to be seen on home pages especially and so
on. Call me cynical.
BODY { font-size: 1px; }

There! Make'em break out their magnifying glasses, even with their
20-something eyes!

This whole argument is just as asinine, the base font size should be
100% of the users default. and if properly designed will work regardless
of the user settings. You can help yourself as a designer be avoiding
using fonts that are "artificial ly oversize" or mixing optional fonts of
divergent characteristics . I don't have Verdanda on my Linux box. Until
some truly working system for font embedding|deliv ery happens you must
design with flexibility that you do not precisely what fonts will be
available for your web design.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
May 23 '07 #38
In article <dd************ **************@ NAXS.COM>,
"Jonathan N. Little" <lw*****@centra lva.netwrote:
dorayme wrote:
Ah well, perhaps you are on to something on the history of the
'arms race' here. Methinks there are less subtle forces at work.
Young earthlings with superb eyesight, a huge amount of rubbish
that is thought needed to be seen on home pages especially and so
on. Call me cynical.

BODY { font-size: 1px; }

There! Make'em break out their magnifying glasses, even with their
20-something eyes!

This whole argument is just as asinine,

What whole argument are you talking about? Fairbairn and I were
just discussing a particular historical development and
speculating on the causes. We were moderate, careful, articulate,
low-profile, humble, meaning no harm to anyone and you come in
waving 1px font sizes, magnifying glasses and making like Christ
in the temple with the money lenders?

--
dorayme
May 23 '07 #39
On 2007-05-22, dorayme <do************ @optusnet.com.a uwrote:
In article <wf************ @calligramme.ch armers>,
Jon Fairbairn <jo***********@ cl.cam.ac.ukwro te:
[...]
>Sure, but I was arguing that one of the reasons that sites
started having <100% body text was this x-height issue
(namely the designer selects a sans font, sees it looks
bigger than intended and shrinks it without thinking of the
reasons why). Once more than a few sites have been designed
like that, users have to respond, and lo and behold 80% is
the new 100% :-(

Ah well, perhaps you are on to something on the history of the
'arms race' here. Methinks there are less subtle forces at work.
Young earthlings with superb eyesight, a huge amount of rubbish
that is thought needed to be seen on home pages especially and so
on. Call me cynical.
A tiny font gives a superficial impression of importance and "high
tech", which is why it's used on corporate websites, which are often
content-free anyway. Big fonts look too much like children's books. Also
if you make the actual words easy to see it's too obvious they're just
BS.
May 23 '07 #40

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

Similar topics

2
15632
by: zwylle | last post by:
Hi all, to avoid a nervous breakdown I finally decided to seek help :D I have a table defined with plain color background and in some cells I show pictures to frame my site. The problem I have occurs for one special cell. The background of this cell is as you can see an image. A text should be displayed on this image. I don't want the text to be bigger than the picture.
16
4213
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style sheets? I am not clear how the user would select the different .css files? Seems to be easier than having duplicate html files ...
6
3850
by: John Topley | last post by:
Hi, I'm trying to create a pure CSS layout using DIVs. I have three DIVs (in one column) down the left hand side of my page, with a ten pixel vertical gap between each of them (the content is on the right). At the moment these DIVs are all using absolute positioning, with dimensions and co-ordinates specified in pixels. How can I make it so that if the user increases the font size the DIVs enlarge to accommodate the content but still...
2
3205
by: twan.vanberkel | last post by:
Dear all, I have a problem in difference in font size on my navigation bar. On different Windows PCs with IE5-IE6 the font size differs. At first I try to fix it to place <font> tags around the text like: <table summary=" " width="100%" class="blokstijl3" cellpadding="10pt"> <tr> <td class="venster">
6
2434
by: dale zhang | last post by:
Hi, I build a web form with a 4-cell table on the top (flawlayout), followed by some labels and textboxes (gridlayout). The web form is displayed well in dell m60 laptop with all resolution options and DPI options. However when I tried to run it in a dell P3 desktop, labels and textboxes overlapped each other and they were in table area too. Any suggestions? Do I have to put all controls in table cells?
3
2039
by: Chifo | last post by:
hello. i have a problem with a populate html table with data from table here it's the problem two querys retrieving data from table, one of querys show me a colletion of data from 6:00 am to 15:30 pm timestampz, i put this on a part of html table. when time on my if condition es great than 15:31, showme data from 15:31 to 23:59 timestamp and populate another part of html table. but, data in html first part,it's gone away.
5
4485
by: Syl | last post by:
Hello experts!! The top menu navigation bar displays perfectly in IE, but does not display properly in Mozilla or Netscape : http://checkeredshirt.com/textonly.html For some reason the non-IE browers are forcing the top navigation menu to dislpay "staggered" after the the first <ul><lielement. Can anyone see why this is happening ?
3
2500
by: Ryan Liu | last post by:
Hi, I have a big urgent problem to solve. I used to use Windows 2000 Chinese version, now I installed Windows XP (English) system. The problem is not about 2000 or XP, it is about English and Chinese. All forms of my compiled C# desktop application, as well as in Visual Studio
9
1868
by: RayDube | last post by:
Hello Gents, I want to be able to reward my members with credits, banner advertisements, text advertisements and even cash, but on a partially manual basis. I created a page where I could decide how many members would get a reward, and then update them based on the member id and details I enter, here's the code for the page: <?php /** * @author Raymond Dube * @copyright 2008
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
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...
1
10164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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...
0
9042
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
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
5437
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
4113
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
3
2920
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.