frac — Fractions
frac (Fractions) replaces digits separated by a slash (U+002F or U+2044) with diagonal fraction forms.
The specification says an application may automatically apply this feature to a sequence of digits, fraction slash (U+2044), and digits. It may also automatically apply numr (Numerators) to the sequence preceding the slash, and dnom (Denominators) to the sequence following it. Neither numr nor dnom is meant to be exposed to the user on its own — both are building blocks for frac’s implementation.
Off by default.
Example
Section titled “Example”Without frac
1/2
With frac
1/2
.fea source
Compiling…
Writing it in a feature file
Section titled “Writing it in a feature file”The rules are written with Lookup Type 1. Digits are replaced one-to-one with their numerator or denominator forms, and the slash with the fraction slash form.
Without rules
1/2
With rules1/2
Compiling…