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: 5
Joined: Thu Jan 02, 2020 6:09 pm

How to set usWinAscent and usWinDescent values?

Post by RickD »

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: 11108
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 »

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: 5
Joined: Thu Jan 02, 2020 6:09 pm

Re: How to set usWinAscent and usWinDescent values?

Post by RickD »

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: 625
Joined: Mon May 20, 2013 2:51 pm

Re: How to set usWinAscent and usWinDescent values?

Post by MikeW »

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
umerakbar
Posts: 1
Joined: Mon Feb 01, 2021 10:14 am

Re: How to set usWinAscent and usWinDescent values?

Post by umerakbar »

sir the vertically space between the line is not reduceing in Arabic type font no matter how much i tried but i fails....
even the the English words also have large space then usual tell me how to reduce the vertical space between line.....
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9873
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: How to set usWinAscent and usWinDescent values?

Post by Bhikkhu Pesala »

From the Font menu, Font Information dialog, click on the Y Max/Min values to locate the glyphs that define the WinAscent and WinDecent values.
Max Y Values.png
Max Y Values.png (21.14 KiB) Viewed 3148 times
Then go to Font Properties, Metrics, Maximum, Calculate to reduce the line-spacing as far as possible.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Post Reply