nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s I worked on a client a couple months back that renders everything through NanoVG in C++, similar to your chosen stack for NoteDeck. I managed to add support for emoji rendering by writing some OS specific code (CoreText for iOS, out to HTML canvas for web, etc…).

Would you like me to try porting it to NoteDeck?

nanovg is dope. 8 years ago i was attempting to build a visual programming language using that:

https://github.com/jb55/vpl

Also had an svg renderer working at some point.

In NoteDeck the rendering is quite different. For emojis i will likely use a texture atlas? The font renderer probably needs a lot of work. I was going to look at lagrange and see how it does it.

Reply to this note

Please Login to reply.

Discussion

Yeah that’s what I’m doing for emoji as well. When rendering text I check through the text for emoji Unicode and pass all the regular text to the default renderer of NanoVG, and for the emojis I have a texture atlas. If the emojis not already in the atlas I call out to CoreText on iOS to render them for me