Sign in

    This version of the module is deprecated: Use moonbitlang/pdflite instead

    bobzhang/pdflite/font/truetype does not have a README file

    PdfTrueTypeCMapGlyph

    pub(all) struct PdfTrueTypeCMapGlyph {
    codepoint : Int
    glyph_index : Int
    } derive(Eq, ToJson,
    Debug
    )

    Mapping from a Unicode codepoint to a TrueType glyph index.

    PdfTrueTypeDescriptorMetrics

    pub(all) struct PdfTrueTypeDescriptorMetrics {
    ascent : Int
    descent : Int
    capheight : Int
    xheight : Int
    avgwidth : Int
    italicangle : Int
    nonsymbolic_flags : Int
    symbolic_flags : Int
    } derive(Eq, ToJson,
    Debug
    )

    Font descriptor metrics derived from TrueType tables.

    PdfTrueTypeGlyphByteRange

    pub(all) struct PdfTrueTypeGlyphByteRange {
    glyph_index : Int
    start_offset : Int
    end_offset : Int
    } derive(Eq, ToJson,
    Debug
    )

    Byte range for one glyph inside the TrueType glyf table.

    PdfTrueTypeMetrics

    pub(all) struct PdfTrueTypeMetrics {
    units_per_em : Int
    minx : Int
    miny : Int
    maxx : Int
    maxy : Int
    index_to_loc_format : Int
    num_glyphs : Int
    num_of_long_hor_metrics : Int
    advance_widths : Array[Int]
    max_width : Int
    } derive(Eq, ToJson,
    Debug
    )

    Core metrics extracted from TrueType head, hhea, hmtx, and maxp.

    PdfTrueTypeParsedSubset

    pub(all) struct PdfTrueTypeParsedSubset {
    flags : Int
    minx : Int
    miny : Int
    maxx : Int
    maxy : Int
    italicangle : Int
    ascent : Int
    descent : Int
    capheight : Int
    stemv : Int
    xheight : Int
    avgwidth : Int
    maxwidth : Int
    firstchar : Int
    lastchar : Int
    widths : Array[Int]
    subset_fontfile : Bytes
    subset : Array[Int]
    tounicode : Array[(Int, Bytes)]?
    } derive(Eq,
    Debug
    )

    One subset record returned by cpdf-style TrueType parsing.

    PdfTrueTypeSubsetPartition

    pub(all) struct PdfTrueTypeSubsetPartition {
    main_subset : Array[Int]
    higher_subsets : Array[Array[Int]]
    } derive(Eq, ToJson,
    Debug
    )

    Result of splitting a TrueType Unicode subset into cpdf's main and higher subset groups.

    PdfTrueTypeSubsetTable

    pub(all) struct PdfTrueTypeSubsetTable {
    length : Int
    bytes : Bytes
    } derive(Eq,
    Debug
    )

    Rebuilt subset-table bytes and their unpadded logical length.

    PdfTrueTypeTableRecord

    pub(all) struct PdfTrueTypeTableRecord {
    tag : String
    checksum : UInt
    offset : Int
    length : Int
    } derive(Eq, ToJson,
    Debug
    )

    TrueType table-directory record.