Line spacing algorithm

C

Cosimo Calabrese

Hi,

when I write some words, MS Word "allocates" (reserves) some vertical space
on the page. The misure of this vertical space is greater than the font
height. There is a bit of space above and below the text.
I have noticed that this space height is approximately 120% the height of
the font, but it is too much approximately for me...
There is a constant relationship between the space height and the font
height, but it is true for the same font. If the font change, the constant
change too...

I've empirically found these constants:

Times New Roman: 118%
Courier New: 116,16%
Verdana: 124,5%
Arial: 118%

It is obvious that the constant change by the font.... but how?

The question is: exists a formula in order to calculate the height of the
space based on the height of the font? Which algorithm MS Word uses?


Thanks,
Cosimo Calabrese.
 
J

Jonathan West

Cosimo Calabrese said:
Hi,

when I write some words, MS Word "allocates" (reserves) some vertical
space
on the page. The misure of this vertical space is greater than the font
height. There is a bit of space above and below the text.
I have noticed that this space height is approximately 120% the height of
the font, but it is too much approximately for me...
There is a constant relationship between the space height and the font
height, but it is true for the same font. If the font change, the constant
change too...

I've empirically found these constants:

Times New Roman: 118%
Courier New: 116,16%
Verdana: 124,5%
Arial: 118%

It is obvious that the constant change by the font.... but how?

The question is: exists a formula in order to calculate the height of the
space based on the height of the font? Which algorithm MS Word uses?

I believe it is part of the definition in the font file itself. So Microsoft
doesn't calculate anything, it takes the value stated in the font file.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
S

Stefan Blom

To get control over the line spacing, use a fixed value. In the user
interface, choose "Exactly" for line spacing (Paragraph dialog box), and
specify the desired value. Of course, you can set the spacing in a
paragraph style.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top