ソースと継承
メンバー一覧19
コンストラクター
constructor
new Font( source?: Readonly< Pick< Font, | typeof graphicsNative | "isSmooth" | typeof fontRevision | "getInfo" | "getGlyph" | "getGlyphById" | "hasGlyph" | "getKerning" | "getAscent" | "getDescent" | "getLineSpacing" | "getUnderlinePosition" | "getUnderlineThickness" | "getTexture", >, >,): Font 引数
sourceオプションReadonly< Pick< Font, | typeof graphicsNative | "isSmooth" | typeof fontRevision | "getInfo" | "getGlyph" | "getGlyphById" | "hasGlyph" | "getKerning" | "getAscent" | "getDescent" | "getLineSpacing" | "getUnderlinePosition" | "getUnderlineThickness" | "getTexture", >,>
ソースと継承
メソッド
getAscent
getAscent(size: number): number
getDescent
getDescent(size: number): number
getGlyph
getGlyph( codePoint: number, characterSize: number, bold: boolean, outlineThickness?: number,): ReadonlyValue<Glyph> 引数
outlineThicknessnumber = 0
ソースと継承
getGlyphById
getGlyphById( id: number, characterSize: number, bold: boolean, outlineThickness?: number,): ReadonlyValue<Glyph> 引数
outlineThicknessnumber = 0
ソースと継承
getKerning
getKerning( first: number, second: number, characterSize: number, bold?: boolean,): number
getLineSpacing
getLineSpacing(size: number): number
getTexture
getTexture(characterSize: number): Readonly
getUnderlinePosition
getUnderlinePosition(size: number): number
getUnderlineThickness
getUnderlineThickness(size: number): number
hasGlyph
hasGlyph(codePoint: number): boolean
openFromFile
openFromFile(filename: string): Promise<boolean>
openFromMemory
openFromMemory(data: Uint8Array): Promise<boolean>
setSmooth
setSmooth(smooth: boolean): void
シンボルメンバー
[fontRevision]
"[fontRevision]": number = 0
ソースと継承
読み取り専用[graphicsNative]
"[graphicsNative]": NativeGraphicsHandle<"font">
ソースと継承
Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0
ネイティブ所有のフォントフェイス、入力ストレージ、保持されたグリフアトラス。