Skip to content

Main content

Glyph Side Bearing Difference

Compare explicit glyph side bearings in the same design-unit coordinate system.

Loading tool…

Description

Compare the supplied side bearings of a glyph.

Graphic-design metadata distinguishes font metrics, variable-font axes, fill rules, color labels and design-token units. Numeric axis differences and text labels do not render a font or apply a color profile. The source convention must match before comparing metrics or resolving a design-system reference.

Compare the supplied side bearings of a glyph.

When to use this tool

Use Glyph Side Bearing Difference when checking the stated font, color or design-token convention.

How to use the tool and how it works

  1. Enter leftBearing, rightBearing. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read rightMinusLeft. Use the output convention below.

Return rightBearing-leftBearing as a signed difference in one common font-coordinate unit.1

Input fieldMeaning and unitsAccepted input
leftBearingLeft BearingRequired. Finite number.
rightBearingRight BearingRequired. Finite number.
Output fieldInterpretationReturned shape
rightMinusLeftRight Minus LeftRequired. Finite number.
json
{
  "input": {
    "leftBearing": 20,
    "rightBearing": 35
  },
  "output": {
    "rightMinusLeft": 15
  }
}

Limitations and assumptions

  • No glyph metrics are read and no advance width, kerning, optical balance or suitable spacing is determined.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Inspect actual fonts, rendered paths, color profiles and the complete applicable design-system specification for visual or production decisions.

References

  1. Calculation and input contract: graphic-design/glyph-side-bearing-difference — tool.io

Similar or alternative tools