CAIMEOX/cairoon/core/glyph does not have a README file

    Glyph

    pub struct Glyph {
    index : UInt64
    x : Double
    y : Double
    } derive(Eq, Hash,
    Debug
    )

    A glyph identifier and its independently positioned user-space origin.

    index is interpreted by the active font backend. Glyph positions are not cumulative: each (x, y) is relative to the overall drawing origin.

    Glyph::components

    fn Glyph::components(self : Glyph) -> (UInt64, Double, Double)

    Return (index, x, y) without narrowing the unsigned glyph index.

    Glyph::new

    fn Glyph::new(index : UInt64, x : Double, y : Double) -> Glyph

    Construct a glyph from its unsigned font index and user-space origin.

    field_arrays

    fn field_arrays(glyphs : ArrayView[Glyph]) -> (FixedArray[UInt64], FixedArray[Double], FixedArray[Double])

    Split glyphs into newly allocated index, X, and Y arrays for native calls.

    All three arrays preserve input order and have glyphs.length() elements.

    Source Files