@thi.ng/webgl-msdf
Version:
Multi-channel SDF font rendering & basic text layout for WebGL
8 lines • 474 B
TypeScript
import type { ModelSpec } from "@thi.ng/webgl";
import type { MSDFFont, TextAlign, TextOpts } from "./api.js";
export declare const text: (glyphs: MSDFFont, txt: string, opts?: Partial<TextOpts>) => ModelSpec;
export declare const textWidth: (font: MSDFFont, opts: Partial<TextOpts>, txt: string) => number;
export declare const alignLeft: TextAlign;
export declare const alignRight: TextAlign;
export declare const alignCenter: TextAlign;
//# sourceMappingURL=text.d.ts.map