Skip to content
pixi-silk
GitHub repository
Interface in pixi-silk/text

InlineMetrics

import type { InlineMetrics } from 'pixi-silk/text';

The box an inline object takes in a line, as LayoutOptions.inlines lists them.

Properties#

PropertyTypeDescriptionDefined in
ascentnumberHeight above the baseline.packages/pixi-silk/src/text/layout.ts:44
descentnumberDepth below the baseline. Negative when the box sits above the baseline.packages/pixi-silk/src/text/layout.ts:46
widthnumberAdvance width, margins included.packages/pixi-silk/src/text/layout.ts:42