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

52 lines
1.1 KiB
TypeScript

import type { BitmapFontData } from '../AbstractBitmapFont';
/**
* Internal data format used to convert to BitmapFontData.
* @private
*/
export interface BitmapFontRawData {
info: {
face: string;
size: string;
}[];
common: {
lineHeight: string;
base: string;
}[];
page: {
id: string;
file: string;
}[];
chars: {
count: number;
}[];
char: {
id: string;
page: string;
xoffset: string;
yoffset: string;
xadvance: string;
x: string;
y: string;
width: string;
height: string;
letter?: string;
char?: string;
}[];
kernings?: {
count: number;
}[];
kerning?: {
first: string;
second: string;
amount: string;
}[];
distanceField?: {
fieldType: 'sdf' | 'msdf' | 'none';
distanceRange: string;
}[];
}
export declare const bitmapFontTextParser: {
test(data: string | XMLDocument | BitmapFontData): boolean;
parse(txt: string): BitmapFontData;
};