Conversation
|
Wonderful, thank you so much!
|
KenyC
left a comment
There was a problem hiding this comment.
Thank you very much for the PR again! There is a couple of things I would change about the backend interface and definition before merging, as commented below.
Let me know if you want to do the changes. If this is too much work, I can take things from here.
I just pushed a commit for stroking bboxes to your branch.
|
I'm happy to do these. As an aside to let you know my motivation looking at this project: I've been thinking about LaTeX in markdown rendering in the Zed editor (a currently missing feature). I was originally intending to try rendering to a tiny_skia pixmap (because that's how they render SVGs), but I've also found you can use their 'gpui' backend more directly with this crate. I've made a demo here: https://github.com/lnay/latex-gpui-experiment in the hopes that the Zed team will have a look at adding this feature. |
|
The last thing I noticed was that I left some |
|
Ok it looks like it's ready to merge. There is some weird difference between
Yes, that's not optimal, you're right! The failure of the I did push a change to eliminate one of the
That is great! Real-time rendering of LaTeX formulas is indeed what I had in mind for ReX. The main application is maths-preview, which I use as a plugin for LibreOffice Write. |
Didn't know that existed, I had been using the TexMaths extension before. I will try this out at some point! |

This is a work in progress for adding an extra rendering backend tiny_skia from the linebender organisation (I'll make sure to implement the traits properly and integrate into the existing tests instead of the temporary one I added).
This is just to make sure you are happy to include this in the crate, or if you think this should live in a separate one.