README

moonbit-community/harfbuzz/face does not have a README file

#
FaceTableError

type FaceTableError derive(Eq, Show, ToJson)

#
Face

pub struct Face {
blob :
Blob

index : Int
upem : Int
glyph_count : Int
tables : Map[
Tag
,
Blob
]
} derive(Show, ToJson)

Face holds font data and basic metadata.

#
Face::collect_nominal_glyph_mapping

fn Face::collect_nominal_glyph_mapping(self : Face) -> Result[
CodepointMap
, FaceTableError]

Collect nominal glyph mappings from the face cmap.

#
Face::collect_unicodes

Collect all Unicode codepoints mapped by the face cmap.

#
Face::ensure_sfnt_tables

fn Face::ensure_sfnt_tables(self : Face) -> Result[Unit, FaceTableError]

Build and cache the SFNT table directory from the face blob.

#
Face::from_bytes

fn Face::from_bytes(bytes : Bytes, index? : Int) -> Face

Create a face from raw bytes.

#
Face::get_glyph_count

fn Face::get_glyph_count(self : Face) -> Int

Read glyph count.

#
Face::get_index

fn Face::get_index(self : Face) -> Int

Read the face index.

#
Face::get_upem

fn Face::get_upem(self : Face) -> Int

Read units-per-em.

#
Face::new

fn Face::new(blob :
Blob
, index? : Int) -> Face

Create a face from a blob.

#
Face::reference_blob

Access the face blob.

#
Face::reference_table

Reference a table blob by tag, falling back to sfnt directory if needed.

#
Face::reference_table_optional

Reference a table blob, returning None when the table is missing.

#
Face::set_glyph_count

fn Face::set_glyph_count(self : Face, count : Int) -> Unit

Update glyph count.

#
Face::set_index

fn Face::set_index(self : Face, index : Int) -> Unit

Update the face index.

#
Face::set_table

Attach a table blob.

#
Face::set_upem

fn Face::set_upem(self : Face, upem : Int) -> Unit

Update units-per-em.

#
Face::table_tags

fn Face::table_tags(self : Face, start_offset? : Int, count? : Int) -> Result[(Int, Array[
Tag
]), FaceTableError]

List table tags starting at start_offset. Returns (total_count, tags_slice).

#
face_count

fn face_count(blob :
Blob
) -> Int

Return the number of faces in a blob.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io