Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Adjust typoDescender formula so result is a negative number? #116

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eliheuer
Copy link

@eliheuer eliheuer commented Oct 13, 2021

The typoDescender (UPM * 1.2 - CapsHeight) / 2) formula doesn't produce a negative number, so I thought this might be less confusing: (UPM * 1.2 - CapsHeight) / -2)

This is subjective and there might be some reason to leave it as is I don't know about, so please close or ignore this PR if that is the case, this just makes more sense to me. Thanks!

@RosaWagner
Copy link
Contributor

I am thinking maybe we could make it even more explanatory like:

interval = (UPM * 1.2 - CapsHeight)/2 is the space that you want above and under your capital letters

typoAscender = interval + CapsHeight
typoDescender = -interval

VerticalMetrics/README.md Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants