Milky2018/moon_skrifa/outline does not have a README file
pub(open) trait OutlinePen {
fn move_to(Self, Double, Double) -> Unit
fn line_to(Self, Double, Double) -> Unit
fn quad_to(Self, Double, Double, Double, Double) -> Unit
fn curve_to(Self, Double, Double, Double, Double, Double, Double) -> Unit
fn close(Self) -> Unit
}impl OutlinePen for Array[PathElement]fn curve_to(out : Array[PathElement], cx0 : Double, cy0 : Double, cx1 : Double, cy1 : Double, x : Double, y : Double) -> Unitpub(all) suberror HintError {
Unsupported
UnexpectedEndOfBytecode
UnhandledOpcode(Int, Int)
DefinitionInGlyphProgram
NestedDefinition
DefinitionTooLarge
TooManyDefinitions
InvalidDefinition(Int)
ValueStackOverflow
ValueStackUnderflow
CallStackOverflow
CallStackUnderflow
InvalidStackValue(Int)
InvalidPointIndex(Int)
InvalidPointRange(Int, Int)
InvalidContourIndex(Int)
InvalidCvtIndex(Int)
InvalidStorageIndex(Int)
DivideByZero
InvalidZoneIndex(Int)
NegativeLoopCounter
InvalidJump
ExceededExecutionBudget
}pub(all) suberror ToPathError {
Unsupported
}pub struct AdjustedMetrics {
has_overlaps : Bool
lsb : Double?
advance_width : Double?
}pub struct DrawSettings {
// private fields
}pub struct GlyphStyles {
// private fields
}
fn GlyphStyles::GlyphStyles(outlines : OutlineGlyphCollection) -> GlyphStylespub(all) enum Hinting {
None_
Embedded
}pub struct HintingInstance {
// private fields
}fn HintingInstance::create(outlines : OutlineGlyphCollection, size : Size, location : LocationRef, options : HintingOptions) -> Result[HintingInstance, DrawError]fn HintingInstance::reconfigure(self : HintingInstance, outlines : OutlineGlyphCollection, size : Size, location : LocationRef, options : HintingOptions) -> Result[Unit, DrawError]pub struct HintingOptions {
engine : Engine
target : Target
}
fn HintingOptions::HintingOptions(engine : Engine, target : Target) -> HintingOptionspub(all) enum LcdLayout {
Horizontal
Vertical
}impl OutlinePen for NullPenfn curve_to(_ : NullPen, _ : Double, _ : Double, _ : Double, _ : Double, _ : Double, _ : Double) -> Unitpub struct OutlineGlyph {
// private fields
}fn[P : OutlinePen] OutlineGlyph::draw(self : OutlineGlyph, settings : DrawSettings, pen : P) -> Result[AdjustedMetrics, DrawError]fn OutlineGlyph::path(self : OutlineGlyph, settings : DrawSettings) -> Result[Array[PathElement], DrawError]pub struct OutlineGlyphCollection {
// private fields
}
fn OutlineGlyphCollection::OutlineGlyphCollection(font : FontRef) -> OutlineGlyphCollectionfn[P : OutlinePen] OutlineGlyphCollection::draw(self : OutlineGlyphCollection, gid : GlyphId, settings : DrawSettings, pen : P) -> Boolfn[P : OutlinePen] OutlineGlyphCollection::draw_unscaled(self : OutlineGlyphCollection, gid : GlyphId, pen : P) -> Boolfn OutlineGlyphCollection::path(self : OutlineGlyphCollection, gid : GlyphId, settings : DrawSettings) -> Array[PathElement]?fn OutlineGlyphCollection::path_unscaled(self : OutlineGlyphCollection, gid : GlyphId) -> Array[PathElement]?fn OutlineGlyphCollection::svg_path(self : OutlineGlyphCollection, gid : GlyphId, settings : DrawSettings) -> String?fn OutlineGlyphCollection::svg_path_unscaled(self : OutlineGlyphCollection, gid : GlyphId) -> String?fn OutlineGlyphCollection::with_format(font : FontRef, format : OutlineGlyphFormat) -> OutlineGlyphCollection?pub(all) enum OutlineGlyphFormat {
Glyf
Cff
Cff2
}pub(all) enum PathElement {
MoveTo(Double, Double)
LineTo(Double, Double)
QuadTo(Double, Double, Double, Double)
CurveTo(Double, Double, Double, Double, Double, Double)
Close
}pub(all) enum PathStyle {
FreeType
HarfBuzz
}pub(all) enum SmoothMode {
Normal
Light
Lcd
VerticalLcd
}impl OutlinePen for SvgPenfn curve_to(pen : SvgPen, cx0 : Double, cy0 : Double, cx1 : Double, cy1 : Double, x : Double, y : Double) -> UnitMoonBit port of Fontations skrifa (font parsing, metrics, color/bitmap glyph helpers).