Milky2018/moon_skrifa/core does not have a README file
type NormalizedCoord = Inttype StringId = UInt16pub(open) trait ColorPainter {
fn push_transform(Self, Transform) -> Unit
fn pop_transform(Self) -> Unit
fn push_clip_glyph(Self, GlyphId) -> Unit
fn push_clip_box(Self, (Double, Double, Double, Double)) -> Unit
fn pop_clip(Self) -> Unit
fn fill(Self, Brush) -> Unit
fn fill_glyph(Self, GlyphId, Transform?, Brush) -> Unit
fn paint_cached_color_glyph(Self, GlyphId) -> Result[PaintCachedColorGlyph, PaintError]
fn push_layer(Self, CompositeMode) -> Unit
fn pop_layer(Self) -> Unit
fn pop_layer_with_mode(Self, CompositeMode) -> Unit
}pub struct Attributes {
stretch : Stretch
style : Style
weight : Weight
}
fn Attributes::Attributes(font : FontRef) -> Attributespub struct Axis {
// private fields
}pub struct AxisCollection {
// private fields
}
fn AxisCollection::AxisCollection(font : FontRef) -> AxisCollectionfn AxisCollection::location(self : AxisCollection, settings : ArrayView[Setting[Double]]) -> Locationpub struct BitmapGlyph {
// private fields
}pub struct BitmapStrike {
// private fields
}pub struct BitmapStrikes {
// private fields
}
fn BitmapStrikes::BitmapStrikes(font : FontRef) -> BitmapStrikesfn BitmapStrikes::glyph_for_size(self : BitmapStrikes, size : Size, glyph_id : GlyphId) -> BitmapGlyph?pub struct Color {
r : Byte
g : Byte
b : Byte
a : Byte
}pub struct ColorGlyph {
// private fields
}fn[P : ColorPainter] ColorGlyph::paint(self : ColorGlyph, location : LocationRef, painter : P) -> Result[Unit, PaintError]pub struct ColorGlyphCollection {
// private fields
}
fn ColorGlyphCollection::ColorGlyphCollection(font : FontRef) -> ColorGlyphCollectionfn ColorGlyphCollection::get_with_format(self : ColorGlyphCollection, glyph_id : GlyphId, glyph_format : ColorGlyphFormat) -> ColorGlyph?fn ColorGlyphCollection::layers(self : ColorGlyphCollection, glyph_id : GlyphId) -> Array[ColorLayer]?pub struct ColorPalette {
// private fields
}pub struct ColorPaletteType {
bits : UInt
}pub struct ColorPalettes {
// private fields
}
fn ColorPalettes::ColorPalettes(font : FontRef) -> ColorPalettespub(all) enum CompositeMode {
Clear
Src
Dest
SrcOver
DestOver
SrcIn
DestIn
SrcOut
DestOut
SrcAtop
DestAtop
Xor
Plus
Screen
Overlay
Darken
Lighten
ColorDodge
ColorBurn
HardLight
SoftLight
Difference
Exclusion
Multiply
HslHue
HslSaturation
HslColor
HslLuminosity
Unknown
}pub struct Decoration {
offset : Double
thickness : Double
}pub(all) enum Extend {
Pad
Repeat
Reflect
Unknown
}pub struct FontRef {
data : Bytes
index : UInt
}impl TableProvider for FontReffn[P : ColorPainter] FontRef::paint_colr_v1(self : FontRef, glyph_id : GlyphId, painter : P) -> Result[Unit, PaintError]fn[P : ColorPainter] FontRef::paint_colr_v1_at(self : FontRef, glyph_id : GlyphId, location : LocationRef, painter : P) -> Result[Unit, PaintError]pub struct GlyphBounds {
// private fields
}pub struct GlyphMetrics {
// private fields
}
fn GlyphMetrics::GlyphMetrics(font : FontRef, size : Size, location : LocationRef) -> GlyphMetricspub struct GlyphName {
// private fields
}pub struct HmtxMetrics {
// private fields
}pub struct LocalizedString {
// private fields
}pub struct LocalizedStrings {
// private fields
}
fn LocalizedStrings::LocalizedStrings(font : FontRef, id : UInt16) -> LocalizedStringspub struct LocationRef {
// private fields
}
fn LocationRef::LocationRef(coords : ArrayView[Int]) -> LocationRefpub struct MappingIndex {
// private fields
}
fn MappingIndex::MappingIndex(font : FontRef) -> MappingIndexpub struct Metrics {
units_per_em : UInt16
glyph_count : UInt16
is_monospace : Bool
italic_angle : Double
ascent : Double
descent : Double
leading : Double
cap_height : Double?
x_height : Double?
average_width : Double?
max_width : Double?
underline : Decoration?
strikeout : Decoration?
bounds : GlyphBounds?
}
fn Metrics::Metrics(font : FontRef, size : Size, _location : LocationRef) -> Metricspub struct NamedInstance {
// private fields
}pub struct NamedInstanceCollection {
// private fields
}
fn NamedInstanceCollection::NamedInstanceCollection(font : FontRef) -> NamedInstanceCollectionpub(all) enum PaintError {
ParseError
GlyphNotFound(GlyphId)
PaintCycleDetected
DepthLimitExceeded
UnsupportedPaintFormat(Int)
}pub(all) struct Transform {
xx : Double
yx : Double
xy : Double
yy : Double
dx : Double
dy : Double
}let STRING_ID_COMPATIBLE_FULL_NAME : UInt16let STRING_ID_DARK_BACKGROUND_PALETTE : UInt16let STRING_ID_LAST_ALLOWED_NAME_ID : UInt16let STRING_ID_LAST_RESERVED_NAME_ID : UInt16let STRING_ID_LIGHT_BACKGROUND_PALETTE : UInt16let STRING_ID_POSTSCRIPT_CID_NAME : UInt16let STRING_ID_TYPOGRAPHIC_FAMILY_NAME : UInt16let STRING_ID_TYPOGRAPHIC_SUBFAMILY_NAME : UInt16let STRING_ID_VARIATIONS_POSTSCRIPT_NAME_PREFIX : UInt16MoonBit port of Fontations skrifa (font parsing, metrics, color/bitmap glyph helpers).