![]() |
Line Height Calculations |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The customer uses a Line Height code at the beginning of lines of text and it is not working correctly. Solutions: This is not a problem, but is a misunderstanding on how line height works and how it calculates where the baseline of the character should be placed. When fixed line height is used, WP looks at the size indicated and sets up a cell for the character. The baseline in that cell is three-quarters of the way down from the top of the cell, and the remaining one-quarter of that cell will take you down to the top of the next cell. For example: (refer to the picture below while reading) If the top of a cell is at 1" (this is indicated by the status line) and if the line height is 2", the baseline of the text is at 2.5" [(.75 * 2) + 1)] and an additional .5" (.25 * 2) will move to position 3" (top of next cell). The first calculation is derived from the formula (cell fraction * line height) + status line, and the second is derived from the formula (remainder of cell * line height). If the line height is changed to .5", the baseline of that line will be at 3.38" [(.75 * .5) + status line] and an additional .13" (.25 * .5) will move to 3.5" (the top of the next cell). It might be easier to see it: Top margin = 1" Position -- --------- top of cell -- 1" | | | | | | | | | | | |- .75 * 2 2" = line height--| | | | | | | | | |-a--|--- baseline ---| 2.5" | | | |- .25 * 2 |- |----|--- top of cell -|_ .75 * .5 3" .5"= line height--| |-b--|--- baseline -|_ .25 * .5 3.38" -- --------- top of cell -- 3.5" To simplify, you may want to recognize that if a large line height is used, there will be a larger gap to get to the top of the next cell. It is the same as if a 144pt font (2" - 72pt = 1") was printed on one line and a 36pt (.5") on the second line. The baseline of the first line would print at 2.5" and 3.38" for the second line. The only difference between scaling the character and using fixed line height, is that when using fixed line height the cell is being adjusted for the character, but the character stays the same size. |
Answer:
Details:
Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER. |