none
how to calculate line height in single line spacing paragraph

    Question

  • hi!

    I have some questions about line spacing.

    1. What makes the line height in single line spacing paragraph?

    - I want calculate single line spacing paragraph line height. What kinds of information do I have? (ex, font name, font ascender, font descender, line spacing value... etc)

    2. Is there determined line height table by font?

    - I searched about line spacing on website. It said line height is 120-145% of the point size and it determined by font.

    So, if MS word use any determined tables, can I have the references?

    I want to know how ms word line height determined by font.

    thank you.

    Tuesday, January 05, 2016 2:54 AM

All replies

  • Hi JJDad:

    I have alerted the open specifications team regarding your inquiry. A member of the team will be in touch through this thread soon.


    Regards, Obaid Farooqi

    Tuesday, January 05, 2016 6:31 AM
    Moderator
  • Hello JJDad:

    I'm researching for you and will get back.

    Regards.


    Tarun Chopra | Escalation Engineer | Open Specifications Support Team

    Tuesday, January 05, 2016 4:59 PM
  • Hello JJDad:

    This is not part of the file format but is part of the rendering engine of the application. Calculating line height is a complicated topic and will vary by font and size. Additionally, most applications will have their own way of calculating it with no two being exactly the same. Even different versions of the same application (ex. Word 2010 vs. Word 2016) may not calculate it in the same way. If you want explicitly set the line height you can set the lineRule to exactly and specify the value for line as 20th's of a point.
     
    Additionally, there are several other threads on this forum that deal with related topics that you might find helpful. As an example :
    https://social.msdn.microsoft.com/Forums/en-US/44240be2-aec8-4feb-94bf-a075aa6bc3e5/placement-of-the-first-line-on-a-page-in-docx-in-relation-to-paragraph-line-spacing?forum=os_binaryfile
    https://social.msdn.microsoft.com/Forums/en-US/c8f0d502-23de-4482-b67f-0c94be9a05c6/line-spacing?forum=os_binaryfile
    https://social.msdn.microsoft.com/Forums/en-US/e1795638-7f74-4769-bc1e-a3810ab987e6/why-is-the-line-spacing-greater-than-expected?forum=os_binaryfile

    Thanks


    Tarun Chopra | Escalation Engineer | Open Specifications Support Team

    Monday, January 11, 2016 8:22 PM