How to set usWinAscent and usWinDescent values?

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
RickD
Posts: 2
Joined: Thu Jan 02, 2020 6:09 pm

How to set usWinAscent and usWinDescent values?

Post by RickD » Thu Jan 02, 2020 7:06 pm

Hi Folks,

FontCreator Version 11.5.

In the 'Font Properties' dialog it's possible to set all values for
'Spacing' and 'Additional Metrics' to 0 (zero). Super nice!


But when the font is exported only some of these values are actually
set to 0.

Running TTX on the exported font indicates that the 0 values are ignored
in four cases, marked ** below.

<hhea>
<ascent value="0"/>
<descent value="0"/>
<lineGap value="0"/>
</hhea>

<OS_2>
<sTypoAscender value="0"/>
<sTypoDescender value="0"/>
<sTypoLineGap value="0"/>
** <usWinAscent value="700"/>
** <usWinDescent value="200"/>
** <sxHeight value="500"/>
** <sCapHeight value="700"/>
</OS_2>

Might this be a bug or, more likely, am I doing something wrong?

Any suggestions v. gratefully received.

Thank you for a wonderful font creation/editing application.

Rick

Erwin Denissen
Moderator
Moderator
Posts: 8774
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: How to set usWinAscent and usWinDescent values?

Post by Erwin Denissen » Thu Jan 02, 2020 9:28 pm

FontCreator is smart enough to fix such incorrect values, that would corrupt a font. This is what we recommend:
WinAscent and WinDescent
Erwin Denissen
High-Logic
Proven Font Technology

RickD
Posts: 2
Joined: Thu Jan 02, 2020 6:09 pm

Re: How to set usWinAscent and usWinDescent values?

Post by RickD » Fri Jan 03, 2020 4:45 pm

Thanks for yr. quick reply. And for the link to the nice description of ascenders/descenders.

I guess then, in an ideal world, the values for 'Win Ascent' and 'Win Descent' should not be
settable in the Font Properties dialog?

FWIW, changing these values to 0 and recompiling w/ TTX the font works the way I want. (It's a
font for displaying 'text symbols' in a DTP-ish GUI when 'Display text symbols' is selected,
e.g. to show symbols for en space, em space, ZWNJ, etc, etc. Setting the values to zero ensures
the text symbols, some of which have very tall glyphs, do not affect the line-spacing of the
parent text--a vertical equivalent to setting aw to 0.)

Your point is well taken though. I had been hoping to avoid the TTX post-processing, but it's
likely a v. rare use-case ...

Thanks again,

Rick

MikeW
Posts: 615
Joined: Mon May 20, 2013 2:51 pm

Re: How to set usWinAscent and usWinDescent values?

Post by MikeW » Fri Jan 03, 2020 6:05 pm

Just a note about line spacing in DTP applications. Sorry if this seems pedantic.

Most/All DTP applications use the same 120% line spacing that Word uses by default. This % setting automatically allows for line spacing adjustment automatically in case of in-line graphics and diacritics that would otherwise clash with descenders on prior lines, etc.

However, setting a discrete line spacing using whatever measurement system desired (points, inch, mm) will cause the DTP application to not have line spacing adjusted.

While forcing a font to not make this adjustment via metrics does work, it would seem limiting a font's usefulness to me. It would, though, allow for using % in a leading field but still allow for something like an in-line graphic to automatically adjust line spacing.

Mike

Post Reply