Chad Brokaw
d28576ce29
Split layout module
...
Also moves hit testing to a new Cursor struct to prep for more sophisticated navigation.
2021-09-15 05:08:25 -04:00
Chad Brokaw
3356fd4cf0
Add glyph run iterator for lines
...
Yields sequences of fully positioned glyphs with the same style. This is intended to be used to generate runs that are suitable for rendering.
2021-09-15 03:15:17 -04:00
Chad Brokaw
dfa18c9dd5
Merge dev branch
...
* Style property resolution
* Ranged style normalization
* Resolve BiDI levels
* Boundary analysis
* Font selection w/ attributes, variations, synthesis
* Combine shaping and itemization phases
* Greedy line breaking
* Basic hit testing for points
* Basic hit testing for positions
* Add affinity to hit testing
* Remove in-crate piet adapter (to be provided separately)
2021-09-14 07:39:35 -04:00
Chad Brokaw
204fcf5e2c
rustfmt
2021-08-04 05:01:42 -04:00
Chad Brokaw
7596ee8b03
initial support for custom brushes
2021-08-04 05:00:49 -04:00
Chad Brokaw
bb16bccf28
Refactoring to support abstract font collections
...
* Create FontCollection trait and other associated types
* Implement FontCollection for the internal FontCache based on fount's FontContext
* Implement piet interfaces as optional adapter rather than primary API
This is a transitional commit so the code is functional, but a bit messy at the moment
2021-08-03 07:09:12 -04:00
Chad Brokaw
fbf8868402
Select initial font family from first span
2021-07-17 05:47:23 -04:00
Chad Brokaw
e37b5d898a
Move shaping into separate module
2021-07-17 05:41:48 -04:00
Chad Brokaw
3cecc34031
Merge branch 'master' of https://github.com/dfrg/parley
2021-07-14 01:52:46 -04:00
Chad Brokaw
ecb8378502
cache font and charmaps for selected fonts
2021-07-14 01:50:32 -04:00
Chad Brokaw
bda69fd788
fix incorrect comparison in font eviction condition
2021-07-12 16:51:01 -04:00
Chad Brokaw
083fa4727f
Fix span offset miscalculation in builder
2021-07-09 23:16:10 -04:00
Chad Brokaw
1a05039c17
prototype
2021-07-09 18:07:30 -04:00
Chad Brokaw
7b0f2c3f88
Fix some formatting
2021-06-20 06:44:10 -04:00
Chad Brokaw
4bc5511193
add mockup images for concept document
2021-06-19 05:05:27 -04:00
Chad Brokaw
db035bb41a
add concept document
2021-06-19 05:04:53 -04:00
chad
84b1c3ec9e
create repo
2021-06-04 07:04:42 -04:00