gralha-truetype
Releases (2)
Definitions (141)
font.bend
- type TTFont
- type TTPairs
- type TTFaceA TrueType face stays as its bytes plus table offsets; glyphs and kerning are read from it on demand (see font.glyph and font.kern at the end).
- type FontGlyph
- type FontBookThe glyph, kerning and metric maps hold text-format fonts (font.parse) and every face's metrics; faces holds the lazily read TrueType faces by number.
- def font.empty
- def font.missing
- def font.glyph.result
- def font.number.result
- def font.metric
- def font.glyph.map
- def font.kern.value
- def font.kern.map
- def font.parse.glyph
- def font.parse.record
- def font.parse.row
- def font.parse.line
- def font.parse
- def ttf.u8
- def ttf.u16
- def ttf.u32
- def ttf.i16
- def ttf.i8
- def ttf.f2dot14
- def ttf.bit
- def ttf.table.find
- def ttf.tableTable offset by tag, read as a big-endian word; 0 when absent.
- def ttf.font
- def ttf.valid
- def ttf.units
- def ttf.glyf
- def ttf.advance
- def ttf.locationAbsolute offset of a glyph's data and its byte length (0 for empty or invalid glyphs).
- type TTPoint
- type TTGlyphFlat point list with the last point index of every contour.
- def ttf.glyph.empty
- def ttf.glyph.points
- def ttf.ends
- def ttf.last
- def ttf.after.flag
- def ttf.flagsPoint flags with repeat counts expanded; returns the flags and the next byte offset.
- def ttf.after.coord
- def ttf.coordsOne coordinate axis: short bytes with a sign flag, repeated values, or signed word deltas.
- def ttf.points
- def ttf.simple.y
- def ttf.simple.x
- def ttf.simple.flags
- def ttf.simpleA simple glyph at absolute offset g with the given contour count.
- def ttf.point
- def ttf.transform
- def ttf.append.points
- def ttf.shift.ends
- def ttf.append.ends
- def ttf.merge
- def ttf.xy
- def ttf.matched
- type TTPlaceA component's placement: an affine 2x2 with either an explicit offset or two matched point indices (parent point a1 meets child point a2).
- def ttf.place.identity
- def ttf.place.offset
- def ttf.place.scaled
- def ttf.place.shifted
- def ttf.placeScale the child, then offset it (explicitly or by point matching) and append it to the parent.
- type TTFrameA composite being assembled: the next component offset (0 once all are read), the points so far and how the finished glyph is placed into its parent.
- def ttf.component.place
- def ttf.component.nextByte offset of the component after the one at `at`, or 0 when it was the last.
- def ttf.frame.at
- def ttf.frame.acc
- def ttf.assemble.popPop a finished frame into its parent frame.
- def ttf.assemble.child
- def ttf.assemble.stepRead the component at the frame's offset: a simple child is placed at once, a composite child opens a new frame above the advanced parent.
- def ttf.assemble.next
- def ttf.stack.top
- def ttf.stack.done
- def ttf.assembleIterative composite assembly over an explicit frame stack; fuel bounds the component count.
- def ttf.glyph.at
- def ttf.glyph
- def ttf.pair
- def ttf.mid
- def ttf.walk.on
- def ttf.walk.between
- def ttf.walk.offAn off-curve point after another emits the implied on-curve midpoint between them.
- def ttf.walk.close
- def ttf.walk
- def ttf.init
- def ttf.last.point
- def ttf.contour.implied
- def ttf.contour.lastA contour starts at its first on-curve point; when the first point is off-curve, the last point starts it if on-curve, else the implied midpoint between last and first.
- def ttf.contour.off
- def ttf.contour
- def ttf.take
- def ttf.drop
- def ttf.contours
- def ttf.outline
- def ttf.pairs.emptyFormat 1 subtables list specific glyph pairs; the first format 2 subtable supplies classes.
- def ttf.pairs.add1
- def ttf.pairs.add2
- def ttf.pairs.unclassed
- def ttf.pairs.add
- def ttf.pairs.any.list
- def ttf.pairs.any