Handle text overflow

Cull glyphs fully outside the bounds, and clip glyphs intersecting the
bounds. This is all done on the CPU for now.

Fixes #2
This commit is contained in:
grovesNL 2022-09-13 16:35:20 -02:30 committed by Josh Groves
parent 4e9e10061f
commit afab881559
3 changed files with 110 additions and 14 deletions

View file

@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0 OR Zlib"
[dependencies]
wgpu = "0.13.1"
fontdue = "0.7.2"
fontdue = { git = "https://github.com/mooman219/fontdue", rev = "828b4f4" }
etagere = "0.2.6"
[dev-dependencies]