Oldstyle Figure Alignment Checker

Audit supplied numeral outlines for descenders and departures from lower observed median top; observed mixed alignment is not proof a font feature is oldstyle or correctly selected.

Description

Oldstyle-figure evidence can include descenders and varied tops.

Oldstyle-figure evidence can include descenders and varied tops. Observed geometry alone cannot verify an activated font feature.1

Enter nonempty ordered min/max Y pairs and nonnegative baseline/top tolerances. Return indices below negative baseline tolerance or above reference+tolerance, lower median and any-deviation flag.

When to use Oldstyle Figure Alignment Checker

Use Oldstyle Figure Alignment Checker when you need to evaluate the supplied records under the calculation and evidence rules below. The even-sample reference is the lower middle value. No font feature, numeral identity or stylistic authenticity is established.

Prepare measured font or typeset-layout values and the explicit design policy requested. For text or font bytes, use the supported syntax explained below.

How to use Oldstyle Figure Alignment Checker and understand its results

  1. Prepare measured font or typeset-layout values and the explicit design policy requested. For text or font bytes, use the supported syntax explained below.
  2. Enter numeralGlyphYBounds, callerBaselineTolerance, callerTopTolerance using the field table and calculation rules, then run the tool.
  3. Read descendingNumeralIndices, aboveLowerMedianNumeralTopIndices, lowerMedianObservedNumeralTop, mixedVerticalAlignmentObserved. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
Input fieldMeaningValue type; see rules belowRequirement
numeralGlyphYBoundsNumeral glyph y boundslist of list of numberRequired
callerBaselineToleranceCaller baseline tolerancenumberRequired
callerTopToleranceCaller top tolerancenumberRequired

Enter nonempty ordered min/max Y pairs and nonnegative baseline/top tolerances. Return indices below negative baseline tolerance or above reference+tolerance, lower median and any-deviation flag.

reference=lower median of sorted tops

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
descendingNumeralIndicesDescending numeral indiceslist of number
aboveLowerMedianNumeralTopIndicesAbove lower median numeral top indiceslist of number
lowerMedianObservedNumeralTopLower median observed numeral topnumber
mixedVerticalAlignmentObservedMixed vertical alignment observedboolean
json
{
  "input": {
    "numeralGlyphYBounds": [
      [
        -2,
        7
      ],
      [
        0,
        10
      ],
      [
        -2,
        7
      ],
      [
        0,
        7
      ]
    ],
    "callerBaselineTolerance": 0,
    "callerTopTolerance": 0
  },
  "output": {
    "descendingNumeralIndices": [
      0,
      2
    ],
    "aboveLowerMedianNumeralTopIndices": [
      1
    ],
    "lowerMedianObservedNumeralTop": 7,
    "mixedVerticalAlignmentObserved": true
  }
}

Limitations and assumptions

The even-sample reference is the lower middle value. No font feature, numeral identity or stylistic authenticity is established.

Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Matrices are limited to 128 rows and 128 entries per row. Numeric lists are limited to 10,000 entries; string lists to 128 strings of at most 128 characters each. The rules above may impose smaller limits. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors. A successfully returned false flag is an evaluated outcome; its meaning is explained above.

Alternative or Complementary methods

Use Proportional vs Tabular Numeral Width Check: Tabular figures use equal advances, while proportional figures may differ. A calibration sample should remain distinct from full-digit coverage. For a complementary task, use Ascender/Descender Extents Checker: Glyph ink may extend beyond declared ascent and descent. Signed outline coordinates and positive descent magnitude have different roles.

References

  1. Oldstyle Figure Alignment Checker — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies