(no title)
octref | 5 years ago
I ended up using puppeteer[2]. Would love to switch to `skia-canvas`, however `ctx.measureFont` doesn't seem to work correctly yet. Measuring cap `M` produces positive `actualBoundingBoxDescent`, although `M` should sit comfortably on top of baseline.
[1]: https://github.com/adambisek/string-pixel-width
[2]: https://github.com/shikijs/shiki/blob/master/packages/render...
No comments yet.