Matthias Clasen
dfd371e976
Cosmetics
2 years ago
Matthias Clasen
d00e97f16c
Add test-paint to the autotools build
2 years ago
Matthias Clasen
3478728edb
Fix test-paint build without freetype
2 years ago
Matthias Clasen
4816be9ab5
Work around cairo limitations
...
If we just draw an image, cairos recording surface
complains that it is unbounded. Its not true of course.
To make things work, clip to the extents.
2 years ago
Matthias Clasen
9b9d7c7b8e
Plug a memory lek in paint tests
2 years ago
Matthias Clasen
76c16095fa
Fix the build on Windows
...
No __BYTE_ORDER there.
2 years ago
Matthias Clasen
f9c865a899
Update test results
...
These were changed by the introduction of
clip boxes.
2 years ago
Behdad Esfahbod
f7eebc397c
[paint-extents] Shorten enum addressing
2 years ago
Behdad Esfahbod
0110bdb3ea
[paint-extents] Streamline extents_t more
2 years ago
Behdad Esfahbod
9f3e050b99
[paint-extents] Streamline extents_t
2 years ago
Behdad Esfahbod
0d129ae308
Fix warning
2 years ago
Behdad Esfahbod
73e48b9357
[colr] Push clipbox or computed clip
2 years ago
Behdad Esfahbod
02684751bd
[paint-extents] Clean up
2 years ago
Behdad Esfahbod
dbea503a38
[colr] Return true extents
2 years ago
Behdad Esfahbod
f9c2e30e01
[paint-extents] Better handle empty glyphs
2 years ago
Matthias Clasen
885dbcfba0
Skip empty outlines
2 years ago
Behdad Esfahbod
bd61e645ff
[paint-extents] Use hb_min/hb_max
2 years ago
Behdad Esfahbod
56a48f8b0a
[paint] Don't use extents in hb-view
...
Let the clipbox do its magic. Currently works for ft backend only.
2 years ago
Matthias Clasen
79229cea17
Get outline extents manually
2 years ago
Matthias Clasen
55b7af6b62
Tweak paint-tests
2 years ago
Behdad Esfahbod
47c896f004
[paint-extents] Hook it up, kinda
2 years ago
Behdad Esfahbod
7fbaaebe8b
[paint-extents] Finish off
...
Untested and unused.
2 years ago
Behdad Esfahbod
8ca78d1520
[paint-extend] More
2 years ago
Behdad Esfahbod
23a2d4dbab
[paint-extents] More
2 years ago
Behdad Esfahbod
d7435b1009
[paint-extents] Flesh out more
2 years ago
Behdad Esfahbod
c37a1eadef
[paint-extents] Flesh out some more
2 years ago
Behdad Esfahbod
268d8b7ded
[paint-extents] Start out
2 years ago
Matthias Clasen
44b48845b7
Add tests for hb_color_line_t
...
Test a few things that were broken with the
ft implementation before.
2 years ago
Behdad Esfahbod
a4a86c0ec2
[test-paint] g_test_message
2 years ago
Behdad Esfahbod
dcab567988
[test-paint] Don't use g_test_fail_print() for older glib
2 years ago
Matthias Clasen
8e197f50da
Add missing paint test results
2 years ago
Behdad Esfahbod
d9875ddc9d
[ft-colr] Add depth counter
2 years ago
Matthias Clasen
3b021c5568
Run paint tests with ft font funcs
2 years ago
Matthias Clasen
ca190aaba4
Split off the hb-paint tests
...
They belong in their own file.
2 years ago
Matthias Clasen
ecd7420456
Debug spew
...
To get a dump of the hb-paint callbacks,
set HB_PAINT_DEBUG=1 when running hb-view.
For now, leave this code in place, since it
comes in handy for various debugging.
2 years ago
Behdad Esfahbod
583f010b05
[ft] Move lock only around clip_glyph
2 years ago
Behdad Esfahbod
2762903909
[ft-colr] Minor
2 years ago
Behdad Esfahbod
3a1385f019
[ft-colr] Simplify color-stop callback
2 years ago
Behdad Esfahbod
1cc3b10008
[ft-colr] Ifdef build for older freetype
2 years ago
Behdad Esfahbod
882c2bca2d
[ft-colr] Add a paint context
2 years ago
Behdad Esfahbod
7a4b4c64f2
[ft-colr] Minor macro
2 years ago
Behdad Esfahbod
c453c2fce9
[ft-colr] Fix color-stop iteration
2 years ago
Matthias Clasen
bbb89e62aa
[paint] Document color lines as transient
...
Just so people don't get ideas.
2 years ago
Behdad Esfahbod
15582d5fc1
[ft-colr] Apply slant to clipbox
2 years ago
Matthias Clasen
7abd5dcf10
[ft-paint] Fix handling of colorstop iters
2 years ago
Matthias Clasen
393bab4ba1
[ft-paint] Apply ClipBox to all glyphs
2 years ago
Matthias Clasen
c11ae85cbf
[ft-paint] Apply root transform
2 years ago
Matthias Clasen
7fc3fdac76
[ft-paint] Optimize away some transforms
2 years ago
Matthias Clasen
586d1758c1
[ft-paint] Fix an oversight
2 years ago
Matthias Clasen
092637f94c
[ft-paint] Fix rounding
2 years ago