Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Font

class Font extends Userdata<"fz_font"> {
constructor(
name: string,
data: AnyBuffer,
subfont: number,
);
constructor(pointer: Pointer<"fz_font">);
advanceGlyph(gid: number, wmode?: number): number;
encodeCharacter(uni: number | string): number;
getName(): string;
isBold(): boolean;
isItalic(): boolean;
isMono(): boolean;
isSerif(): boolean;
 
static readonly _drop: (p: Pointer<"fz_font">) => void;
static readonly ADOBE_CNS: number;
static readonly ADOBE_GB: number;
static readonly ADOBE_JAPAN: number;
static readonly ADOBE_KOREA: number;
static readonly CJK_ORDERING_BY_LANG: Record<FontCJKLanguage, FontCJKOrdering>;
static readonly SIMPLE_ENCODING: FontSimpleEncoding[];
}

§Extends

§
Userdata<"fz_font">
[src]

§Constructors

§
new Font(name: string, data: AnyBuffer, subfont: number)
[src]
§
new Font(pointer: Pointer<"fz_font">)
[src]

§Methods

§
advanceGlyph(gid: number, wmode?: number): number
[src]
§
encodeCharacter(uni: number | string): number
[src]
§
getName(): string
[src]
§
isBold(): boolean
[src]
§
isItalic(): boolean
[src]
§
isMono(): boolean
[src]
§
isSerif(): boolean
[src]

§Static Properties

§
_drop: (p: Pointer<"fz_font">) => void
[src]
§
ADOBE_CNS: number
[src]
§
ADOBE_GB: number
[src]
§
ADOBE_JAPAN: number
[src]
§
ADOBE_KOREA: number
[src]
§
CJK_ORDERING_BY_LANG: Record<FontCJKLanguage, FontCJKOrdering>
[src]
§
SIMPLE_ENCODING: FontSimpleEncoding[]
[src]