Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text/multiline #134

Merged
merged 85 commits into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
4ed2b0c
[cairo] refactor text to own module
hwchen Feb 6, 2020
6513bc1
[web] refactor text to own module
hwchen Feb 6, 2020
7e3db02
[svg] text own module, [all] fmt, some clippy
hwchen Feb 6, 2020
c80b22c
[all] clippy
hwchen Feb 6, 2020
8f2f902
[all] clippy
hwchen Feb 6, 2020
1c3e04d
[d2d] refactor text in own module
hwchen Feb 9, 2020
29a0c39
[d2d, piet] clippy warnings
hwchen Feb 9, 2020
9a94ef3
cargo fmt
hwchen Feb 9, 2020
9587eb1
[text] add docstring to module
hwchen Feb 9, 2020
cf60637
[d2d] fix pub use issue
hwchen Feb 9, 2020
164b5b0
[text] update TextLayout trait for linebreaking, (nullrender)
hwchen Nov 7, 2019
4bf2cac
[text] line break methods use &self
hwchen Nov 7, 2019
857d63d
[text] remove comments
hwchen Nov 7, 2019
949097f
[text] update method signatures
hwchen Nov 11, 2019
4c0d3a8
[text] update line methods to return Option
hwchen Nov 11, 2019
f054731
[text] add width to constructor
hwchen Nov 11, 2019
119f528
Merge branch 'master' into text/multiline
hwchen Feb 14, 2020
ef691cf
[wip, piet] update LineMetrics, Clone for TextLayout, fix pic examples
hwchen Feb 14, 2020
98b8231
[piet] update LineMetrics fields
hwchen Feb 14, 2020
51369b5
[all] TextLayout: Clone bound
hwchen Feb 14, 2020
79ccacb
[d2d] stub multiline text methods, text layout update
hwchen Feb 17, 2020
bfae757
[svg, web, cairo] stub multiline trait methods, fix new_text_layout (…
hwchen Feb 17, 2020
2d2b172
[cairo] pass tests with new new_text_layout
hwchen Feb 17, 2020
6eae9d3
[all] cargo fmt
hwchen Feb 17, 2020
49d30e8
[cairo] forgot grapheme test
hwchen Feb 17, 2020
05e539e
[cairo] fmt grapheme test
hwchen Feb 17, 2020
427e2fd
[d2d] fix tests for new new_text_layout
hwchen Feb 17, 2020
fce6673
[text] update multiline LineMetric api
hwchen Mar 6, 2020
32f895c
[text] cum width to width for LineMetrics
hwchen Mar 6, 2020
27b5f22
[text] update line_metric to return value
hwchen Mar 6, 2020
ce98a67
[text] fix docstring
hwchen Mar 9, 2020
b1b71cb
[d2d] line metrics module
hwchen Mar 9, 2020
f7f9f9c
[d2d] wire linemetrics to textlayout api
hwchen Mar 9, 2020
f739ee6
[d2d] update_width for textlayout
hwchen Mar 9, 2020
ceae570
[d2d] note on &mut in api?
hwchen Mar 9, 2020
7d4e6ae
[text] update docstrings for linemetric
hwchen Mar 9, 2020
5ada050
[d2d, text] update_width takes &mut self
hwchen Mar 10, 2020
5deb493
[d2d] comment for future testing for multiline hittest
hwchen Mar 22, 2020
a8e6f04
[cairo] line metrics first pass
hwchen Mar 22, 2020
ae34eac
[cairo] text layout notes, guess for baseline
hwchen Mar 23, 2020
7b90aea
[cairo] notes on trailing whitespace, vertical measures
hwchen Mar 23, 2020
6517125
[cairo] use fontextents for height and baseline
hwchen Mar 30, 2020
50722c2
[text] remove width field from LineMetric
hwchen Mar 30, 2020
c484ae1
[cairo] move linemetrics to own module
hwchen Mar 30, 2020
b94fb93
[cairo] count trailing whitespace
hwchen Mar 30, 2020
1c17055
[cairo] fix linemetrics implementation
hwchen Mar 30, 2020
313d507
[cairo] multiline tests and bugfix
hwchen Mar 30, 2020
0f10736
[d2d] fix test
hwchen Mar 31, 2020
d46c469
[cairo] impl line metrics for TextLayout
hwchen Mar 31, 2020
6cd8b2d
[cairo] more leeway on line metrics tests
hwchen Mar 31, 2020
d788374
[cairo] even more leeway on line metrics tests (cum height)
hwchen Mar 31, 2020
dcba41e
[cairo] futz with test widths, try to get osx tests to pass
hwchen Mar 31, 2020
62e8baf
[cairo osx] change font to try to get tests to pass
hwchen Mar 31, 2020
96386cd
[cairo] implement hittesttextposition using line metrics and width
hwchen Mar 31, 2020
81787f3
[cairo] notes
hwchen Mar 31, 2020
281c84a
[cairo] tests for httextposition, fix http and lines impl
hwchen Apr 1, 2020
715049d
[cairo] http test for osx try again
hwchen Apr 1, 2020
1296ba9
[cairo] separate multiline http test for osx
hwchen Apr 1, 2020
ae664c0
[cairo] try macos test again
hwchen Apr 1, 2020
5f90f1d
[cairo] refactor hittestpoint and graphemes to prep for y component
hwchen Apr 1, 2020
645fc21
[cairo] clean test warning
hwchen Apr 1, 2020
70bc541
[cairo] implement y axis on hit test point
hwchen Apr 1, 2020
1e73713
[cairo] test for htp multiline, fix bugs in htp and http
hwchen Apr 2, 2020
85d468c
[cairo] htp macos test
hwchen Apr 2, 2020
d9d38d3
[cairo] comments and debug cleanup
hwchen Apr 2, 2020
d4d070a
[cairo] get width as iterator
hwchen Apr 3, 2020
1e266a6
[cairo] clean comments, dbg
hwchen Apr 3, 2020
e02b477
[text] update TextLayout docs
hwchen Apr 3, 2020
673fa58
Merge remote-tracking branch 'upstream/master' into text/multiline
hwchen Apr 3, 2020
6eeb718
[web] linemetric module, and build textlayout with
hwchen Apr 3, 2020
afcdea2
[web] impl line metric and width trait methods
hwchen Apr 3, 2020
62f0bea
[web] hit testing with multilines
hwchen Apr 3, 2020
02e2e1e
[web] fix some comments
hwchen Apr 3, 2020
75f3928
[web] move tests to text module from example, use wasm-pack test fram…
hwchen Apr 4, 2020
0a5dc1e
[web] multiline hit test tests
hwchen Apr 4, 2020
5ae3d0f
[web] readme notes on running tests
hwchen Apr 4, 2020
17e6216
[d2d] bugs, hit testing
hwchen Apr 8, 2020
9f659aa
[cairo] hit testing does not hide trailing whitespace
hwchen Apr 8, 2020
7a61d74
[web] hit testing does not hide trailing whitespace
hwchen Apr 8, 2020
02d6060
[cairo] hit testing for x even if y out of bounds
hwchen Apr 8, 2020
5c0fdaf
[web] hit testing for x even if y out of bounds
hwchen Apr 9, 2020
9be84b9
[text] when y above bounding box, x still hit tested on first line
hwchen Apr 9, 2020
ffb9034
[cairo] test hard break in `lines`
hwchen Apr 9, 2020
0c3d056
Merge branch 'master' of ssh://github.com/linebender/piet into text/m…
hwchen Apr 9, 2020
81f37f9
[web, cairo] fix web test warnings, make lines ard break test linux only
hwchen Apr 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions piet-cairo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ categories = ["rendering::graphics-api"]
[dependencies]
piet = { version = "0.0.11", path = "../piet" }
unicode-segmentation = "1.3.0"
xi-unicode = "0.2.0"

[dependencies.cairo-rs]
version = "0.8.1"
Expand Down
Loading