Skip to content
pixi-silk
GitHub repository
Variable

RunFlag

import { RunFlag } from 'pixi-silk/i18n';
const RunFlag: {
  BreakBefore: 1;
  Mandatory: 2;
  Newline: 16;
  UnsafeToBreak: 4;
  Whitespace: 8;
};

Per-glyph flags in the RUNS flags column.

Type Declaration#

NameTypeDefault valueDescriptionDefined in
BreakBefore11A line may break before this glyph (UAX #14, baked).packages/pixi-silk/src/i18n/format.ts:64
Mandatory22A line must break before this glyph (a newline ended the previous one).packages/pixi-silk/src/i18n/format.ts:66
Newline1616The glyph is a newline: zero width, never drawn.packages/pixi-silk/src/i18n/format.ts:72
UnsafeToBreak44HarfBuzz UNSAFE_TO_BREAK: breaking here would need reshaping.packages/pixi-silk/src/i18n/format.ts:68
Whitespace88The glyph is white space: it does not count at the end of a line.packages/pixi-silk/src/i18n/format.ts:70