Héctor Ramón Jiménez
da4bb4af5c
Use lru
for glyph caching
...
I noticed that the `RecentlyUsed` map was actually a `RecentlyInserted`
map. This caused panics when trying to reduce the initial texture atlas size and
dynamically increase it (coming in another PR!).
2023-02-08 00:49:37 -03:30
grovesNL
8aeb9f16bf
Remove unnecessary cast
2023-01-29 22:14:55 -03:30
grovesNL
288cd89cf8
Simplify re-exports paths
2023-01-29 22:11:54 -03:30
grovesNL
658fcf4d6f
Separate text area lifetimes
2023-01-29 22:11:54 -03:30
grovesNL
07b04f511a
Update example to show emojis and clipping
2023-01-29 22:11:54 -03:30
grovesNL
8c8cfba093
Add clipping back
2023-01-29 22:11:54 -03:30
grovesNL
ba52cbdba6
Buffer doesn't need to be mutable anymore
2023-01-29 22:11:54 -03:30
Joshua Groves
3a0e965675
Split color and mask atlases apart
2023-01-29 22:11:54 -03:30
Joshua Groves
6cf10bba8d
Fix alpha blending for emojis
2023-01-29 22:11:54 -03:30
grovesNL
8a1153039e
Update to latest cosmic
2023-01-29 22:11:54 -03:30
grovesNL
4c1a83548e
Use default font color and remove Color
2023-01-29 22:11:54 -03:30
grovesNL
56bf0d759f
Update to latest cosmic-text
2023-01-29 22:11:54 -03:30
grovesNL
cb68955045
Use 4 channel atlas for emojis
2023-01-29 22:11:54 -03:30
grovesNL
47fa03d079
Allow negative offsets
2023-01-29 22:11:54 -03:30
grovesNL
dcdb250e19
Use arabic.txt example and get_image_uncached
2023-01-29 22:11:54 -03:30
grovesNL
7fe35bdce3
Update to latest cosmic-text
2023-01-29 22:11:54 -03:30
grovesNL
75fc8f978f
Start cosmic-text implementation
2023-01-29 22:11:54 -03:30
grovesNL
2a01a1b2e0
Handle negative glyph positions correctly
2022-11-29 14:33:12 -03:30
grovesNL
fa03455457
Allow borrowed layouts for prepare
...
Allows either `&[layout, overflow]` or `&[&layout, overflow]`
2022-10-21 22:02:43 -02:30
grovesNL
296c99f059
Add documentation to all public types
...
Fixes #11
2022-10-18 13:25:24 -02:30
grovesNL
14c634c8aa
Use trunc
instead of round
...
We can allow this to be controlled later on, but `trunc` helps to avoid
text jitter during screen resolution changes for now.
2022-10-18 12:54:16 -02:30
Andrew Wheeler(Genusis)
4075536745
Merge #19
2022-10-18 12:52:00 -02:30