/** * @see https://github.com/mapbox/mapbox-gl-js/blob/main/src/render/glyph_manager.ts */ import type { Device, Texture } from '@antv/g-device-api'; import type { StyleGlyph } from './alpha-image'; import { GlyphAtlas } from './glyph-atlas'; import { BitmapFont } from '../bitmap-font/BitmapFont'; export type PositionedGlyph = { glyph: string; x: number; y: number; scale: number; fontStack: string; }; export declare function getDefaultCharacterSet(): string[]; export declare class GlyphManager { private sdfGeneratorCache; private glyphAtlas; private glyphMap; private glyphAtlasTexture; constructor(); destroy(): void; getMap(): Record>; getAtlas(): GlyphAtlas; getAtlasTexture(): Texture; layout(lines: string[], fontStack: string, lineHeight: number, textAlign: CanvasTextAlign, letterSpacing: number, bitmapFont?: BitmapFont, scale?: number, bitmapFontKerning?: boolean, dx?: number, dy?: number): PositionedGlyph[]; generateAtlas(fontStack: string, fontFamily: string, fontWeight: string, fontStyle: string, text: string, device: Device, esdt: boolean, fill: string): void; private generateSDF; }