Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2007

Tip: Looking for answers? Try searching our database.

Line spacing algorithm

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cosimo Calabrese - 26 Apr 2007 13:48 GMT
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.
Jonathan West - 26 Apr 2007 14:33 GMT
> Hi,
>
[quoted text clipped - 19 lines]
> 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.

Signature

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

Stefan Blom - 27 Apr 2007 10:30 GMT
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.

Signature

Stefan Blom
Microsoft Word MVP

> Hi,
>
[quoted text clipped - 21 lines]
> Thanks,
> Cosimo Calabrese.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.