Skip to content

ctx: enable SVG loading/sprites

pippin requested to merge ctx-svg into main

An update to ctx, bringing SVG sprite rendering.

New features:

  • conic gradients
  • better sub-path origin handling
  • fixes to smooth curve parsing/handling
  • SVG rendering (cached as ctx drawlists, handled same as png and jpg)
  • mp binding optional for vfs load-file hook
  • mp binding of conic gradient

Internal changes:

  • fixes to accuracy leading to dropped some internal tweaks and hacks
  • some compact protocol constants changes, for compatiblity with SVG
  • path data trying to stricly be a superset.
  • kerning changes (store more kerning pairs in fonts - font should possibly be regenerated)
  • during feature development the optimization target for ctx has been auto-vectorization on x86_64 - tensilica performance seems to have suffered in some cases.

Merge request reports