-
-
Notifications
You must be signed in to change notification settings - Fork 99
Planning
Taco de Wolff edited this page Sep 25, 2023
·
9 revisions
Features that are planned to be implemented in the future, with important issues in bold. Also see the TODOs in the code, and see ★ Roadmap #74.
- Fix slowness in the rasterizer (text_example.go is slow! use rasterized cache for each glyph/path)
Use general span placement algorithm (like CSS flexbox) that replace the current Text placer, to allow for text, image, path elements (e.g. inline formulas, inline icons or emoticons, ...)Use word breaking algorithm from Knuth & Plass, implemented in JS in typeset. Use letter stretching and shrinking, shrinking by using ligatures, space shrinking and stretching (depending if space is between words or after comma or dot), and spacing or shrinking between glyphs. Use a point system of how ugly breaks are on a paragraph basis. Also see Justify Just or Just Justify.- Load in Markdown/HTML formatting and turn into text
- Add OpenGL target, needs tessellation (see Delaunay triangulation). See Resolution independent NURBS curves rendering using programmable graphics pipeline and poly2tri-go. Use rational quadratic Beziérs to represent quadratic Beziérs and elliptic arcs exactly, and reduce degree of cubic Beziérs. Using a fragment shader we can draw all curves exactly. Or use rational cubic Beziérs to represent them all exactly?
Compressing fonts and embedding only used charactersUse ligature and OS/2 tablesSupport EOT font format- Font embedding for EPS
- Support font hinting (for the rasterizer)?
Join font decorations in text so that underline is continuous with e.g. superscript parts
- Avoid overlapping paths when offsetting in corners
- Get position and derivative/normal at length L along the path
- Simplify polygons using the Ramer-Douglas-Peucker algorithm
- Intersection function between line, Bézier and ellipse and between themselves (for path merge, overlap/mask, clipping, etc.)
- Implement Bentley-Ottmann algorithm to find all line intersections (clipping)
- Support fill gradients and patterns (WIP: can fill gradients and hatch patterns, working on more complex patterns)
- Load in PDF, SVG and EPS and turn to paths/text (WIP: can parse and load SVG as Canvas)
Generate TeX-like formulas in pure Go, use OpenType math font such as STIX or TeX Gyre