kpreid / all-is-cubes

Yet another block/voxel game; in this one the blocks are made out of blocks. Runs in browsers on WebGL+WebAssembly.
https://kpreid.dreamwidth.org/tag/all+is+cubes
Apache License 2.0
163 stars 8 forks source link

Text rendering #424

Open kpreid opened 10 months ago

kpreid commented 10 months ago

As discussed in 95a1578cde6ed0a51efe7f3febcb12f8b56bf924, I am adding Primitive::Text, text rendering in blocks without rendering to an intermediate space, for more efficient rendering and better interactive editability. The feature needs work:

kpreid commented 10 months ago

As of 1791e75a2eb4c6b184ac3b86dcd9871ee016b445 we have a Label widget, and each Text has a layout_bounds box and resolution.

kpreid commented 9 months ago

f4e256cfe0dca410b2c4266176a01826fd61a0cf adds outlined text. However, I ran into trouble trying to actually use it for the Tooltip widget — nothing is visible even though all the layout looks correct. (The bug is not specific to outlined text.) I think I need better debugging tools for block definitions — some kind of “why is this invisible” report.

kpreid commented 8 months ago

84e332284cf38a9adbaddbafa24677628af38092 adds text for button labels (but much work is needed on tuning the layout).

kpreid commented 5 months ago

570d7df5b3b2376f446ce31fda8423a3dcd4cd7f converts the Tooltip widget to use text blocks. It reveals our lack of proper bounding box handling for outlined text.