John Nunley
440d24ffa0
Add more Debug implementations
...
I generally like to implement Debug on these kind of types.
2023-07-07 21:44:21 -07:00
Edgar Geier
384c5c1fdc
Remove Mutex from FontSystem
2023-03-12 10:39:56 +01:00
Jeremy Soller
eca804c732
Revert "Make FontSystem not self-referencing and update fontdb and rustybuzz"
2023-03-02 18:16:57 -07:00
Edgar Geier
506a4194be
Make FontSystem not self-referencing
2023-03-03 00:53:00 +01:00
Edgar Geier
4e93853765
Remove lifetime from SwashCache
2023-03-01 22:41:59 +01:00
Héctor Ramón Jiménez
4320ae6329
Use f32 instead of i32 for lengths
...
This allows users to use logical coordinates instead of physical ones.
2023-02-28 03:39:31 +01:00
Héctor Ramón Jiménez
f08bea22ed
Expose Placement from zeno in swash module
2023-02-27 18:14:26 +01:00
Jeremy Soller
8cc988d374
Run cargo fmt
2023-01-04 20:03:03 -07:00
Jeremy Soller
ba39c81656
Fix no_std compilation
2022-12-15 14:31:19 -07:00
Héctor Ramón Jiménez
652543f9aa
Implement method to obtain glyph outlines
...
This is useful for drawing text with non-bitmap based renderers (e.g. vectorial, tessellators, etc.).
2022-12-14 23:45:45 -07:00
Jeremy Soller
ee54e7626b
Vi-style editor and other editor improvements ( #40 )
...
* WIP VI wrapper for editor
* WIP: block cursor
* Create Edit trait, run CI on all feature options
* Add prints describing build steps to ci.sh
* Custom rendering for Vi editor
* Clippy fixes
* More clippy fixes
* Show clippy results in CI
* Fix for Redox
* Fix clippy lint
* Add vi feature to enable vi-style editor
* Add escape to libcosmic text box
2022-11-15 12:26:59 -07:00
Jeremy Soller
268805ba0c
no_std support
2022-11-08 13:24:14 -07:00
Ian Douglas Scott
0d3fb1dd9d
Use ouroboros in FontSystem to avoid lifetime bound
...
Perhaps not quite what ouroboros is expected to be used for, but it's
not too bad, and avoiding the lifetime bound can be a huge help.
2022-11-04 10:37:32 -06:00
Jeremy Soller
a4a4eb7783
Fix rgba ordering
2022-10-27 18:16:42 -06:00
Jeremy Soller
e4c8d4ba6b
Make attribute spans use ranges and update docs
2022-10-27 09:56:53 -06:00
Jeremy Soller
3ece9236b3
Use Color in more places
2022-10-27 09:07:47 -06:00
Jeremy Soller
119a570ee9
Cache font matches, use usize for line index, use font system for swash
2022-10-26 12:23:03 -06:00
grovesNL
dcb8add5f4
Re-export SwashContent
2022-10-25 20:52:10 -06:00
Jeremy Soller
f652dd1a99
Add function for getting swash image without caching
2022-10-25 19:40:17 -06:00
Jeremy Soller
3e8e28f0b3
Do not require lifetime for swash fontref
2022-10-25 18:16:14 -06:00
Jeremy Soller
a3ccbd0481
Add spdx identifiers
2022-10-25 14:42:26 -06:00
Jeremy Soller
a9b7b4e914
Add layout run iterator
2022-10-25 12:52:46 -06:00
Jeremy Soller
330a736136
Add function to get layout runs
2022-10-25 11:40:10 -06:00
Jeremy Soller
1c341f3126
Make swash optional, add swash cache abstraction
2022-10-25 10:55:24 -06:00