4 ms·
Why not use something like pango, libschrift, etc ? Text rendering is a hard problem, moreso one cross-platform...
by ddlsmurf 3y ago
Why not use something like pango, libschrift, etc ? Text rendering is a hard problem, moreso one cross-platform...
- elcritch 3y agoIs it hard! Font rendering is handled by Pixie and the guys who wrote it made a great NimConf video showing that https://www.youtube.com/watch?v=8acDfUIwLnk https://www.youtube.com/watch?v=8acDfUIwLnk Pixie can render svg and ttf fonts with unicode in addition to drawing the shapes used for boxes and lines (e.g. like pango+cairo). It's SIMD optimized, very fast, and pure Nim so cross platform. The challenge I mentioned with emojis is text selection and cursor movement when dealing with multi-grapheme characters. :) edit: see https://youtu.be/8acDfUIwLnk?si=1EAUwUNZqje88J86&t=382 https://youtu.be/8acDfUIwLnk?si=1EAUwUNZqje88J86&t=382 where they discuss how hard Text is
- ddlsmurf 3y agoI didn't know Pixie, thanks !