README

moonbit-community/harfbuzz/ot/cff does not have a README file

#
CffError

pub suberror CffError {
UnexpectedEof
InvalidFormat
} derive(Eq, Show, ToJson)

#
Cff1Table

pub struct Cff1Table {
data : Bytes
name_index : CffIndex
top_dict : CffDict
string_index : CffIndex
global_subrs : CffIndex
charstrings : CffIndex
private_dict : CffDict?
local_subrs : CffIndex?
charstrings_offset : Int
private_offset : Int
private_size : Int
charset_offset : Int
charset_map : Map[Int, Int]?
} derive(Eq, Show, ToJson)

#
Cff1Table::glyph_bounds

fn Cff1Table::glyph_bounds(self : Cff1Table, glyph : Int) -> Result[CffBounds?, CffError]

#
Cff1Table::glyph_count

fn Cff1Table::glyph_count(self : Cff1Table) -> Int

#
Cff1Table::glyph_from_name

fn Cff1Table::glyph_from_name(self : Cff1Table, name : String) -> Result[Int?, CffError]

#
Cff1Table::glyph_name

fn Cff1Table::glyph_name(self : Cff1Table, glyph : Int) -> Result[String?, CffError]

#
Cff1Table::parse

fn Cff1Table::parse(data : BytesView) -> Result[Cff1Table, CffError]

#
Cff1Table::seac_components

fn Cff1Table::seac_components(self : Cff1Table, glyph : Int) -> Result[(Int, Int)?, CffError]

#
Cff1Table::subset

fn Cff1Table::subset(self : Cff1Table, glyphs : Array[Int]) -> Result[Bytes, CffError]

#
Cff2PrivateDict

pub struct Cff2PrivateDict {
local_subrs : CffIndex?
ivs : Int
} derive(Eq, Show, ToJson)

#
Cff2Table

pub struct Cff2Table {
data : Bytes
top_dict : CffDict
global_subrs : CffIndex
charstrings : CffIndex
fd_array : CffIndex
private_dicts : Array[Cff2PrivateDict]
var_store :
ItemVariationStore
?
fd_select : Array[Int]?
fdselect_offset : Int
vstore_offset : Int
top_dict_offset : Int
top_dict_size : Int
} derive(Eq, Show, ToJson)

#
Cff2Table::glyph_bounds

fn Cff2Table::glyph_bounds(self : Cff2Table, glyph : Int, coords : Array[Int]) -> Result[CffBounds?, CffError]

#
Cff2Table::glyph_count

fn Cff2Table::glyph_count(self : Cff2Table) -> Int

#
Cff2Table::parse

fn Cff2Table::parse(data : BytesView) -> Result[Cff2Table, CffError]

#
Cff2Table::subset

fn Cff2Table::subset(self : Cff2Table, glyphs : Array[Int]) -> Result[Bytes, CffError]

#
CffBounds

pub struct CffBounds {
x_min : Double
y_min : Double
x_max : Double
y_max : Double
} derive(Eq, Show, ToJson)

#
CffDict

pub struct CffDict {
entries : Map[Int, Array[CffNumber]]
} derive(Eq, Show, ToJson)

#
CffDict::entries_map

fn CffDict::entries_map(self : CffDict) -> Map[Int, Array[CffNumber]]

#
CffDict::get_int

fn CffDict::get_int(self : CffDict, op : Int, index? : Int) -> Int?

#
CffDict::get_numbers

fn CffDict::get_numbers(self : CffDict, op : Int) -> Array[CffNumber]?

#
CffDict::get_real

fn CffDict::get_real(self : CffDict, op : Int, index? : Int) -> Double?

#
CffIndex

pub struct CffIndex {
count : Int
off_size : Int
offsets : Array[Int]
data : Bytes
} derive(Eq, Show, ToJson)

#
CffIndex::byte_len

fn CffIndex::byte_len(self : CffIndex, count_bytes : Int) -> Int

#
CffIndex::item_bytes

fn CffIndex::item_bytes(self : CffIndex, index : Int) -> Result[Bytes, CffError]

#
CffNumber

pub enum CffNumber {
Int(Int)
Real(Double)
} derive(Eq, Show, ToJson)

#
cff1_sid_to_gid

fn cff1_sid_to_gid(charset_offset : Int, charset_map : Map[Int, Int]?, sid : Int, glyph_count : Int) -> Int?

#
cff1_standard_sid

fn cff1_standard_sid(code : Int) -> Int?

#
cff2_charstring_bounds

fn cff2_charstring_bounds(data : BytesView, global_subrs : CffIndex?, local_subrs : CffIndex?, var_store :
ItemVariationStore
?, ivs : Int, coords : Array[Int]) -> Result[CffBounds?, CffError]

#
cff_charstring_bounds

fn cff_charstring_bounds(data : BytesView, global_subrs : CffIndex?, local_subrs : CffIndex?) -> Result[CffBounds?, CffError]

#
parse_cff1_charset

fn parse_cff1_charset(data : BytesView, offset : Int, glyph_count : Int) -> Result[Map[Int, Int], CffError]

#
parse_cff1_index

fn parse_cff1_index(data : BytesView, offset : Int) -> Result[CffIndex, CffError]

#
parse_cff2_index

fn parse_cff2_index(data : BytesView, offset : Int) -> Result[CffIndex, CffError]

#
parse_cff_dict

fn parse_cff_dict(data : BytesView) -> Result[CffDict, CffError]

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io