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
- Enter leftBearing, rightBearing. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read rightMinusLeft. Use the output convention below.
Return rightBearing-leftBearing as a signed difference in one common font-coordinate unit.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| leftBearing | Left Bearing | Required. Finite number. |
| rightBearing | Right Bearing | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| rightMinusLeft | Right Minus Left | Required. Finite number. |
{
"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
Similar or alternative tools
- Glyph Overhang Optical Margin Term
Describe a glyph's ink overhang relative to its supplied advance and origin.
- Outlined Text Fill Rule Label
Record whether outlined text uses the nonzero or evenodd fill rule.