marty39
2016-01-02 02:32:24 UTC
Everything I've seen about line spacing in Fontforge has been vague: it's
application-dependent, try this, etc. I've done a few experiments and
determined some facts.
To make a long story short: I concluded that I could determine line spacing
by using the offsets in Font Info, OS/2, Metrics tab--as long as all the
glyphs stay within the em. Start by setting all offsets and line gaps to
zero. Set all three ascent offsets to the value I want. Windows obeys the
"Win Ascent Offset," Mac OS X obeys the "HHead Ascent Offset," nobody obeys
the "Typo Ascent Offset" (even if "Really use Typo metrics" is checked) but
it doesn't hurt. Linux Mint obeys the "HHead Ascent Offset" with a little
bit (application dependent) added.
I'm not interested in what determines line spacing in full featured word
processors or desktop publishers where the user has full control over line
spacing. I want to be able to prescribe my font's line spacing in
applications where the user either has no control over line spacing or would
rather not bother. That includes, specifically:
Mac OS: previewing fonts in Font Book, and default spacing in TextEdit.
Windows: previewing fonts in fontview.exe, and spacing in WordPad.
My font has an em of 1000, all ascent, zero descent, caps take the whole
space from 0 to 1000. The "is offset" boxes in Font Info, OS/2, Metrics tab
are all checked and so is the "really use typo metrics" box. Spacing turns
out to be more OS-dependent than application-dependent.
When all offsets are zero, the bottom of each line touches the top of the
next, in both Windows XP and Mac OS X El Capitan, in the applications listed
above.
When I change the "line gap" to 100 in both "typo" and "HHead" something
funny happens in Font Book: the specified line gap is added to both the top
and the bottom of each line, so the leading in the font preview is 20
percent. In TextEdit the line gap is only added to the bottom so the leading
is 10 percent. I decided not to use "line gap."
Then I tried setting the "ascent" offsets to 100 either one at a time or in
various combinations and reached the conclusion I described above.
If anybody knows anything that either confirms or contradicts these
conclusions please reply. I will add a reply if I get any further
information. For instance, how is the spacing affected by glyphs that occupy
more ascent or descent than the specified offsets?
--
View this message in context: http://fontforge.10959.n7.nabble.com/What-determines-line-spacing-tp14954.html
Sent from the User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
application-dependent, try this, etc. I've done a few experiments and
determined some facts.
To make a long story short: I concluded that I could determine line spacing
by using the offsets in Font Info, OS/2, Metrics tab--as long as all the
glyphs stay within the em. Start by setting all offsets and line gaps to
zero. Set all three ascent offsets to the value I want. Windows obeys the
"Win Ascent Offset," Mac OS X obeys the "HHead Ascent Offset," nobody obeys
the "Typo Ascent Offset" (even if "Really use Typo metrics" is checked) but
it doesn't hurt. Linux Mint obeys the "HHead Ascent Offset" with a little
bit (application dependent) added.
I'm not interested in what determines line spacing in full featured word
processors or desktop publishers where the user has full control over line
spacing. I want to be able to prescribe my font's line spacing in
applications where the user either has no control over line spacing or would
rather not bother. That includes, specifically:
Mac OS: previewing fonts in Font Book, and default spacing in TextEdit.
Windows: previewing fonts in fontview.exe, and spacing in WordPad.
My font has an em of 1000, all ascent, zero descent, caps take the whole
space from 0 to 1000. The "is offset" boxes in Font Info, OS/2, Metrics tab
are all checked and so is the "really use typo metrics" box. Spacing turns
out to be more OS-dependent than application-dependent.
When all offsets are zero, the bottom of each line touches the top of the
next, in both Windows XP and Mac OS X El Capitan, in the applications listed
above.
When I change the "line gap" to 100 in both "typo" and "HHead" something
funny happens in Font Book: the specified line gap is added to both the top
and the bottom of each line, so the leading in the font preview is 20
percent. In TextEdit the line gap is only added to the bottom so the leading
is 10 percent. I decided not to use "line gap."
Then I tried setting the "ascent" offsets to 100 either one at a time or in
various combinations and reached the conclusion I described above.
If anybody knows anything that either confirms or contradicts these
conclusions please reply. I will add a reply if I get any further
information. For instance, how is the spacing affected by glyphs that occupy
more ascent or descent than the specified offsets?
--
View this message in context: http://fontforge.10959.n7.nabble.com/What-determines-line-spacing-tp14954.html
Sent from the User mailing list archive at Nabble.com.
------------------------------------------------------------------------------