473,406 Members | 2,549 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,406 software developers and data experts.

Bold takes up more space?

Bold text in proportional fonts use up more space than non-bold text.
Is there a way to keep the space bold takes up within the limits of the
regular text while keeping the same font?
Jul 20 '05 #1
11 5523
Els
Victor Martin wrote:
Bold text in proportional fonts use up more space than
non-bold text. Is there a way to keep the space bold takes
up within the limits of the regular text while keeping the
same font?


For height: yes, fiddle with the line-height.
For width, I don't know.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #2
Victor Martin <no***@NoWhereOnThe.net> wrote:
Bold text in proportional fonts use up more space than non-bold text.
Is there a way to keep the space bold takes up within the limits of the
regular text while keeping the same font?


No.

--
Spartanicus
Jul 20 '05 #3
On Tue, 13 Jul 2004 12:06:46 +0100, Spartanicus <me@privacy.net>
wrote:
Victor Martin <no***@NoWhereOnThe.net> wrote:
Bold text in proportional fonts use up more space than non-bold text.
Is there a way to keep the space bold takes up within the limits of the
regular text while keeping the same font?


No.


Yes (at least in theory).

<http://www.w3.org/TR/CSS1#letter-spacing>

--
Rex
Jul 20 '05 #4
"Victor Martin" <no***@NoWhereOnThe.net> wrote in
comp.infosystems.www.authoring.html:
Bold text in proportional fonts use up more space than non-bold text.
Is there a way to keep the space bold takes up within the limits of the
regular text while keeping the same font?


It's bold because the strokes are thicker. The strokes are thicker
and therefore more white space is needed or the letters would seem
distorted.

I think your question is "how can I make text bigger without making
it take more space?"

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #5
On Tue, 13 Jul 2004, Stan Brown wrote:
I think your question is "how can I make text bigger without making
it take more space?"


Surely the solution is to make the normal font spacing wider, so that
the bold font also fits into the available space?
Jul 20 '05 #6
On Tue, 13 Jul 2004 14:12:10 +0100, "Alan J. Flavell"
<fl*****@ph.gla.ac.uk> wrote:
On Tue, 13 Jul 2004, Stan Brown wrote:
I think your question is "how can I make text bigger without making
it take more space?"
Surely the solution is to make the normal font spacing wider, so that
the bold font also fits into the available space?


Exactly; the solution is in CSS1 already, fairly well supported too.

--
Rex
Jul 20 '05 #7
>>Bold text in proportional fonts use up more space than non-bold text.
Is there a way to keep the space bold takes up within the limits of the
regular text while keeping the same font?


It's bold because the strokes are thicker. The strokes are thicker
and therefore more white space is needed or the letters would seem
distorted.

I think your question is "how can I make text bigger without making
it take more space?"


Only if by bigger you mean thicker, but I don't mind making the
bold fonts just a bit smaller (it may be necessary on pain of too
much distortion) as long as they are well differentiated from
the regular font and they don't tax the space they take up any
more than the regular font, so I thought playing with

<b><font size=-1.25pt>This is bold.</font></b>

might do it, but many fonts can't be scaled by such
fractional point increments. letter-spacing/line-height is a
way around it too, but I think finding a good scalable font
with a close 1:1 bold/regular text footprint ratio would also
be fruitful.
Jul 20 '05 #8
Victor Martin <no***@NoWhereOnThe.net> wrote:
I thought playing with

<b><font size=-1.25pt>This is bold.</font></b>
might do it,
Why? There's nothing in HTML specifications that suggests that this would
have any defined meaning.

This would have a defined meaning:
<b style="font-size:95%">This is bold</b>
(Naturally you'd want to use an external style sheet, not CSS embedded
into a style="..." attribute; this is just a quick example.)

Even in CSS, you cannot say "1.25pt smaller [than something]". Setting
font-size to 95% or similar percentage may or may not have a visible
effect. This depends on the availability of the current font in different
sizes in each user's system.
but many fonts can't be scaled by such
fractional point increments. letter-spacing/line-height is a
way around it too, but I think finding a good scalable font
with a close 1:1 bold/regular text footprint ratio would also
be fruitful.


I think we need a URL that illustrates the problem. _Why_ is it a problem
that bold text can take somewhat more space? I would look at the
direction of removing the design decisions that make such minor variation
a problem.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #9
On Wed, 14 Jul 2004 14:47:45 +0000 (UTC), Jukka K. Korpela wrote:
I think we need a URL that illustrates the problem. _Why_ is it a problem
that bold text can take somewhat more space? I would look at the
direction of removing the design decisions that make such minor variation
a problem.


I saw a site once that changed links from normal text to bold when you
hovered over them. It was a fixed-width design. One of the links happened
to be at the right end of a line of text, close enough that changing to
bold made it move to the beginning of the next line instead. So, hovering
over it made it move away from the mouse, and then moving the mouse towards
the new location "unhovered" it and it would move back. The effect was
that it was impossible to ever click the link.

--
Greg Schmidt gr***@trawna.com
Trawna Publications http://www.trawna.com/
Jul 20 '05 #10
Tim
Jukka K. Korpela wrote:
I think we need a URL that illustrates the problem. _Why_ is it a problem
that bold text can take somewhat more space? I would look at the
direction of removing the design decisions that make such minor variation
a problem.

Greg Schmidt <gr***@trawna.com> posted:
I saw a site once that changed links from normal text to bold when you
hovered over them. It was a fixed-width design. One of the links happened
to be at the right end of a line of text, close enough that changing to
bold made it move to the beginning of the next line instead. So, hovering
over it made it move away from the mouse, and then moving the mouse towards
the new location "unhovered" it and it would move back. The effect was
that it was impossible to ever click the link.


Well, the answer to that is to not do the daft bold hovering thing in the
first place, rather than do yet another silly thing on top of it.

You really couldn't rely on a font sizing trick counteracting a boldening
effect in a reliable manner, either. This isn't typesetting, where there's
actually a standard bolding effect (specified amount of boldness, if you
could call it that), and you know the fonts that you have at your disposal.
CSS may allow you to specify a numerical figure for the font weight, but I
don't see any specified relationship with its size.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #11
Tim <ti*@mail.localhost.invalid> wrote:
This isn't typesetting, where there's
actually a standard bolding effect (specified amount of boldness, if
you could call it that), and you know the fonts that you have at your
disposal. CSS may allow you to specify a numerical figure for the
font weight, but I don't see any specified relationship with its
size.


The values of font-weight in CSS, from 100 to 900, or keywords that are
mapped to such numeric values, correspond to an established scale in
typography. But as you remark, the scale has no specified effect on any
dimension, and the effect in practice varies by font family and size.
Thus, despite the use of numbers, it's really just an ordinal scale (in
the weak sense that smaller numeric value implies smaller or equal
boldness).

In HTML, there is only one kind of boldness that you specify, using <b>
markup, and it is natural to expect that it maps to font-weight: bold,
which means font-weight: 700. Or is it? Another interpretation would be
to map it to font-weight: bolder, and this would mean that
<b><b>...</b></b> could be (depending on font) bolder than bold, i.e.
bolder than <b>...</b>.

Whatever method you use to bold text in HTML or CSS, it means selecting
(when possible) a bold font as designed by the font designer. It's up to
the designer to decide what boldness means, and it may well mean
different things to different characters.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #12

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

Similar topics

4
by: dr. zoidberg | last post by:
Hello, I'm pulling news titles from MySQL. How Can I display first record in bold (different than other ones). What is the best way to do that. Is there some 'magic' query or PHP function. ...
5
by: Lee | last post by:
Hello all, Let's assume that I have a GridView inside of a panel. No records, are available for the grid, but the same amount of space is taken up on the page. Is there a way to ensure that...
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, ...
4
by: pamelafluente | last post by:
Hi I noticed that if I use a bold font for 1 TreeNode of a TreeView several times the string does not fit anymore and gets truncated. How can I avoid that ? Any suggestionis appreciated ...
1
by: Tor Inge Rislaa | last post by:
Finding Bold Text (or other formatting attributes) in RichTextbox . Is it possible to find and select bold text by code within the text of a RichTextbox? What I want is to manipulate the text...
0
by: adamselearning | last post by:
I have HTML content defined in an external XML file: I am using code to identify when a <p> tag is present, so it is not treated as an XML node. I'm also using CDATA in some cases, and still...
1
by: siskokid | last post by:
Good afternoon, I have the following question (it might seem silly, but it is important to have it straight) - which one takes more disk space a saved view in a SQL SERVER database (sql query that...
5
by: sunadumari | last post by:
Hi folks, hope I'm in the wright section (I'm a newbie). I've got a textarea that, with the click on a button, shows the html-look of the data in the textarea. This script I found on the net (with...
1
by: gmcconville | last post by:
Im a little bit stuck on how to change a cell in a datagridview to bold without affecting any of the other attributes of the cell, such as underline, italic etc. This is what I thought would work...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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.