Commit graph

32 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
e457bca108 Use Srgb texture format for TextAtlas 2023-03-27 23:03:55 -02:30
Héctor Ramón Jiménez
2af2f357c5 Update cosmic-text to latest 2023-03-27 23:02:28 -02:30
Héctor Ramón Jiménez
1f31586c55 Set default_color per TextArea 2023-02-26 23:30:30 -03:30
grovesNL
74e9aa37a1 Set renderer multisample and depth-stencil state 2023-02-15 07:54:31 -03:30
grovesNL
288cd89cf8 Simplify re-exports paths 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
6cf10bba8d Fix alpha blending for emojis 2023-01-29 22:11:54 -03:30
Joshua Groves
609814de6b Use Fifo for example 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
14499e4659 Remove HasColor 2023-01-29 22:11:54 -03:30
grovesNL
56bf0d759f Update to latest cosmic-text 2023-01-29 22:11:54 -03:30
grovesNL
981a7d1682 Handle initial window scale factor 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
ca27ec508c Add an example to highlight a layout on mouse over 2022-10-24 22:08:02 -02:30
grovesNL
36fd030ecf Update to wgpu 0.14 2022-10-18 13:02:31 -02:30
grovesNL
afab881559 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
2022-10-18 12:52:00 -02:30
grovesNL
3c7789cd3b Update to wgpu 0.13 2022-07-13 09:43:10 -02:30
grovesNL
73b2562179 Accept atlas in prepare and render 2022-06-03 00:52:35 -02:30
grovesNL
4b4594492a Share text atlas between renderers 2022-05-17 22:15:11 -02:30
grovesNL
781bed2c42 Use oversized buffers 2022-05-10 08:48:28 -02:30
grovesNL
8bf8533ead Rename Color trait to HasColor, add Color 2022-05-09 22:53:09 -02:30
grovesNL
5605879164 Add Color trait 2022-05-09 22:40:00 -02:30
grovesNL
ded1ba3310 Use resolution later 2022-05-09 12:29:23 -02:30
grovesNL
195374c716 Pack attributes slightly 2022-05-09 11:52:38 -02:30
grovesNL
f5648e0f94 Initial commit 2022-05-09 10:19:10 -02:30