Files
nothoughts/node_modules/pixi.js/lib/scene/text-bitmap/utils/getBitmapTextLayout.d.ts
2025-08-04 18:57:35 +02:00

17 lines
554 B
TypeScript

import type { TextStyle } from '../../text/TextStyle';
import type { AbstractBitmapFont } from '../AbstractBitmapFont';
export interface BitmapTextLayoutData {
width: number;
height: number;
scale: number;
offsetY: number;
lines: {
width: number;
charPositions: number[];
chars: string[];
spaceWidth: number;
spacesIndex: number[];
}[];
}
export declare function getBitmapTextLayout(chars: string[], style: TextStyle, font: AbstractBitmapFont<any>, trimEnd: boolean): BitmapTextLayoutData;