/** * Arabic letters are never slanted (#376). Arabic type has no italics: a * face that lacks them is slanted by the browser when an italic is asked * for, and a slanted Naskh is a distortion, not an emphasis. So the words * in Arabic script of an italic run are set upright, in the run's other * face; Latin words in the same run keep their italics. In a document in * Arabic script `*…*` is set in bold by default (`bodyText.emphasis`), * whose faces are upright already; this covers what is still italic: an * explicit `emphasis: 'italic'`, an Arabic word quoted in italics in a * Latin text, a reference label set italic. * * A style whose base face is italic (an italic blockquote, a heading * level set italic) slants its plain runs too. Their Arabic words are * marked `upright` instead: the measurer sets them in the run's face with * the slant taken off ({@link uprightFace}) and gives their segments that * face (`fontString`), which every renderer paints. * * Applied to the spans of every text the rich measurer sets, before it * measures them, so lines and segments carry the upright flag and every * renderer paints what was measured. Spans holding no Arabic in a slanted * face pass through (the same array). */ import type { InlineSpan } from './parse/index.js'; /** `font` (a CSS font shorthand, style first as `buildFontString` writes * it) with its slant taken off: `italic 400 16px Amiri` → `400 16px * Amiri`. */ export declare function uprightFace(font: string): string; /** * The spans with the Arabic words of their slanted runs set upright (see * the module comment). `italicFont` / `boldItalicFont` are the faces an * italic run is measured in, `normalFont` / `boldFont` the faces of a plain * one (absent: taken as upright). An italic run whose plain face is * upright turns its Arabic words plain (`italic: false`); a run whose * plain face is slanted too (a style whose base face is italic) marks them * `upright`. A run whose face is upright (the faces of `emphasis: 'bold'` * or `'color'`, the flipped face of an italic blockquote) is left as it is. */ export declare function uprightArabicSpans(spans: InlineSpan[], italicFont: string, boldItalicFont: string, normalFont?: string, boldFont?: string): InlineSpan[]; //# sourceMappingURL=uprightArabic.d.ts.map