DPF validation. What's not to like?
Next step completed, my #TextBox widget now supports mouse input: click, doubleclick and drag 🥳.
Not so nice: With overall more drawing operations, I see #flicker happening more often 😒. Did some research already, it seems with #XRender, the only way to avoid it would be to render to some #pixmap (instead of the window directly) and use #XPresent to get it on the screen? @thomasadam do you know an "easier" way? 🙈
Started work on some TextRenderer class/module.
Should in the end handle everything to get an #X11 #pixmap from some #utf8 text. For now, just runs #harfbuzz shaping and calculates the resulting pixel size in a background thread.
I have no idea whether my calculations are really correct. But at least, the result for a "Hello, World!" text looks somewhat plausible 😅
https://github.com/Zirias/xmoji/commit/439d0dfee46a4f40a671634a0f18d9c9accbb543
The Coffee Cup Abstraction
(A hand-drawn Pixmap/Level Of Detail exercise)
#pencildrawing #pencilsketch #drawing #pixmap #pixel #bitmap