Repository navigation
v0.11.0
This release adds the drawing and the text that ivy needs. The renderer draws the same output as v0.10.0 by default. Each new behavior is new API, or changes only a fill that panicked or drew nothing before.
go get github.com/xo/okage@v0.11.0Drawing
- A fill no longer panics on a path with huge coordinates. tiny-skia 0.12 has the same fault (D53).
DrawPixmapof an image that is aligned to the pixels skips the stages of the pipeline, with the same bytes. A full page with a mask and an opacity draws in 12 ms in place of 30 ms (D53).Paint.Coveragefills a path with 8 by 8 samples in each pixel.Paint.StrokeAdjustmoves a thin stroke onto the pixel grid, as stroke adjustment does in PDF. A hairline on a pixmap of 1 or 2 rows or columns now draws (D54).NewMeshGradientmakes a shader that fills a mesh of triangles with a color at each corner, for the shadings of the types 4 to 7 of PDF and PostScript.SpreadModeDecalmakes a gradient transparent outside its stops (D55).MaskFromLuminanceandMask.ApplyTransfermake the soft masks of PDF with a backdrop color and a transfer function.Pixmap.RemoveBackdropandPixmap.Knockoutcomposite the groups that are not isolated and the knockout groups (D56).
Text and SVG
FontDatabasegives the parsed fonts, new faces with variations, a lookup in the cached cmap and the metrics of a face.AutoFontVariationsmaps a CSS weight, stretch and style to the axes of a variable font.TextStyletakes the features, the language and the spacing of a run, andTextRun.Clustersgives each cluster.FontDatabase.ColorGlyphgives a glyph of COLR or of the table SVG as a tree (D57).svg.ReadDimensionsreads the size and the viewBox of an SVG image before the parse.svg.FromXMLTreeandsvg.FromXMLNodemake a tree from roxmltree, androxmltree.Buildermakes a document without XML text.svg.WithZeroSizeaccepts an image of size zero.:has()incssselect2matches in about linear time (D58).typesetting/font/cffexports the predefined charsets of CFF, and drawsseacand the FontMatrix of each font dictionary. The go-text commite8da365efixes the kerning of fonts such as Calibri and Roboto (D59).