Milky2018/moon_swash/shape does not have a README file
type Epoch = UInt64type FeatureBit = UInt16type Tag = UIntpub struct Buffer {
glyphs : Array[GlyphData]
positions : Array[PositionData]
infos : Array[(ClusterInfo, Bool, UInt)]
ranges : Array[SourceRange]
shaped_glyphs : Array[Glyph]
is_rtl : Bool
dotted_circle : UInt16?
has_cursive : Bool
has_marks : Bool
reversed : Bool
next_cluster : UInt
skip_state : SkipState
sub_args : Array[UInt16]
pos_args : Array[UInt16]
}type CoverageBuilderpub(all) enum Direction {
LeftToRight
RightToLeft
}pub struct Engine {
data : Bytes
gdef : Gdef
gsub : StageOffsets
gpos : StageOffsets
morx : UInt
kerx : UInt
ankr : UInt
kern : UInt
storage : Storage
coords : ArrayView[Int]
script : Script
tags : (UInt, UInt, UInt, UInt)
sub_mode : SubMode
pos_mode : PosMode
use_ot : Bool
mode : EngineMode
}fn Engine::collect_features(self : Engine, builder : FeatureStoreBuilder, store : Ref[FeatureStore]) -> Unitfn Engine::gpos(self : Engine, store : FeatureStore, feature_mask : FeatureMask, buffer : Buffer, buffer_range : IndexRange?) -> Boolfn Engine::gsub(self : Engine, store : FeatureStore, feature_mask : FeatureMask, buffer : Buffer, buffer_range : IndexRange?) -> Boolpub struct FeatureGroups {
default : FeatureMask
reph : UInt16?
pref : UInt16?
stage1 : FeatureMask
stage2 : FeatureMask
basic : FeatureMask
position : FeatureMask
vert : FeatureMask
rtl : FeatureMask
}pub struct FeatureMask {
b0 : UInt64
b1 : UInt64
b2 : UInt64
b3 : UInt64
}pub struct FeatureStore {
sub_features : Array[(UInt, UInt16)]
pos_features : Array[(UInt, UInt16)]
lookups : Array[LookupData]
subtables : Array[SubtableData]
coverage : Array[UInt16]
pos_start : Int
sub_count : Int
truncated : Bool
groups : FeatureGroups
}fn FeatureStore::custom_masks(self : FeatureStore, features : ArrayView[Setting[UInt16]], sub_args : Array[UInt16], pos_args : Array[UInt16], dir : Direction) -> (FeatureMask, FeatureMask)pub struct FeatureStoreBuilder {
indices : Array[(UInt16, UInt16, Byte)]
coverage : CoverageBuilder
next_bit : UInt16
}fn FeatureStoreBuilder::build(self : FeatureStoreBuilder, store : Ref[FeatureStore], data : Bytes, coords : ArrayView[Int], gdef : Gdef, gsub : StageOffsets, gpos : StageOffsets) -> Unitpub struct FontEntry {
metrics : MetricsProxy
charmap : CharmapProxy
coord_count : UInt16
metadata : EngineMetadata
}pub struct GlyphCluster {
source : SourceRange
info : ClusterInfo
glyphs : ArrayView[Glyph]
components : ArrayView[SourceRange]
data : UInt
}pub struct GlyphData {
id : UInt16
flags : UInt16
class : Byte
char_class : ShapeClass
mark_type : Byte
joining_type : Byte
mask : Byte
skip : Bool
component : Byte
cluster : UInt
data : UInt
}pub struct GlyphInfo {
bits : UInt16
}pub struct IndexRange {
start : Int
end : Int
}pub(all) enum PosMode {
None
Gpos
Kerx
Kern
}pub struct PositionData {
base : Byte
flags : UInt16
x : Double
y : Double
advance : Double
}fn ShapeContext::builder_with_id(self : ShapeContext, font : FontRef, id : (UInt64, UInt64)) -> ShaperBuilderpub struct Shaper {
cx : Ref[ContextState]
font : FontRef
id0 : UInt64
id1 : UInt64
font_entry : Ref[FontEntry]
charmap : Charmap
size : Double
script : Script
language : Language?
direction : Direction
retain_ignorables : Bool
joined : Bool
engine : Engine
store : Ref[FeatureStore]?
sub_mask : FeatureMask
pos_mask : FeatureMask
}fn ShaperBuilder::variations(self : ShaperBuilder, settings : Iter[Setting[Double]]) -> ShaperBuilderimpl ShapeOptions for SimpleShapeOptionspub struct SkipState {
flags : Byte
mask : Byte
mark_check : Byte
mark_class : Byte
mark_set : UInt
}pub struct StageOffsets {
base : UInt
lang : UInt
vars : UInt
}fn StageOffsets::from_layout(data : Bytes, base : UInt, script : UInt, language : UInt?) -> (StageOffsets, (UInt, UInt))?pub(all) enum SubMode {
None
Gsub
Morx
}fn apply(stage : Byte, data : Bytes, base : UInt, coords : ArrayView[Int], gdef : Gdef, storage : Storage, store : FeatureStore, feature_mask : FeatureMask, buffer : Buffer, buffer_range : IndexRange?) -> Bool?fn[S : Selector, O : ShapeOptions] shape(context : ShapeContext, selector : S, options : O, tokens : Iter[Token], f : (SelectedFont, Shaper) -> Unit) -> UnitInstall
Download zipDependencies