Behdad Esfahbod
e886b6b8a6
[test-draw] Use a larger scale
...
A scale of 20 is in the noise category for us. Using a larger
scale makes the test pass.
2 years ago
Matthias Clasen
347910fd4c
Add a draw test
...
This test compares output between ft and ot
font funcs.
2 years ago
Behdad Esfahbod
3c972867b9
More s/hb_font_get_glyph_shape/hb_font_draw_glyph/
2 years ago
Behdad Esfahbod
d3308f4713
[font] Optimize font scaling further
2 years ago
Behdad Esfahbod
556e7078f0
[font] Optimize glyph scaling
2 years ago
Ebrahim Byagowi
6b75a30a73
[draw/test] Swap a freetype test case with a simpler one
...
As CI failure, apparently the my local freetype and CI one have different
result so let's switch the case with a simpler one just to test quadratic command
is emitted correctly.
3 years ago
Behdad Esfahbod
ae223764a3
[test/draw] Typo
3 years ago
Ebrahim Byagowi
0429921c10
[draw/test] Add test for freetype callback
...
Let's have that part of the code also covered.
3 years ago
Ebrahim Byagowi
d4588204e5
[draw/glyf] Emit empty contours
...
This makes it actually match freetype behaviour even though rasterizer
should filter such contours specially for stroking.
See https://github.com/harfbuzz/harfbuzz/pull/3411#discussion_r802283827 for the context.
3 years ago
Khaled Hosny
0e357c504c
[draw] Test scaling subfont differently from parent
3 years ago
Khaled Hosny
aca80a4a40
[draw] Add test for applying synthetic slant
3 years ago
Khaled Hosny
052fd2d8b9
[draw] Add test for hb_draw_move_to() etc
3 years ago
Behdad Esfahbod
f1a9a9ccaf
[draw-state] Pass state down to callbacks
3 years ago
Behdad Esfahbod
9f05362d43
[test-draw] Fix compiler warning
3 years ago
Behdad Esfahbod
1740916ede
[draw] Remove check for no-op
...
This is unnecessary overhead. Up to rasterizers to handle this. Plus,
this throws off point-numbers in uses that rely on it.
Disabled one test that broke with this.
3 years ago
Behdad Esfahbod
5610fa1da0
[test-draw] Re-enable two disabled tests
3 years ago
Behdad Esfahbod
8b4f429000
[draw] Virtualize hb_font_draw_glyph() into hb_font_get_glyph_shape()
...
To be implemented in hb-ft.
3 years ago
Behdad Esfahbod
2bed4f46fb
[draw] Fix draw signatures
3 years ago
Behdad Esfahbod
5207ce828a
[draw] Enable draw tests
...
Disable two failing ones.
3 years ago
Behdad Esfahbod
157caf254e
[test-draw] Fix compiler warning
3 years ago
justvanrossum
1551f3d518
fixing more expected test results
4 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Ebrahim Byagowi
831b090001
rebase draw test as recent roundf changes
4 years ago
Ebrahim Byagowi
755a77d660
Move outline draw API behind HB_EXPERIMENTAL_API directive
5 years ago
Ebrahim Byagowi
44169f3396
[draw] Fix invalid rendering of some glyph on Estedad-VF
...
Basically reverts 11f3fca
so I can do the same tested and better later
Fixes #2215
5 years ago
Ebrahim Byagowi
84163c83d3
[draw] Skip commands and paths not contributing anything
...
They aren't contributing to rendering and making issue for stroking, let's skip them
ourselves as Skia does also https://skia-review.googlesource.com/c/skia/+/268166
They are useful for extracting extents and so which that functionality won't be effected by this change.
5 years ago
Ebrahim Byagowi
0cf050a7b1
[draw] Merge consequent move-to commands of CFF/CFF2
5 years ago
Ebrahim Byagowi
86bd5a0ba1
[draw] End CFF paths with a line-to
...
Issue a line-to command when start and end point of a path isn't same, matches freetype also.
5 years ago
Ebrahim Byagowi
60f8f384f9
[glyf] Switch to ttf-parser's glyf to path algorithm
...
It consumes each point at a time and doesn't need to know contour size before hand
5 years ago
Ebrahim Byagowi
b4d3bf1d8a
[draw] Add hb_draw_funcs_is_immutable and hb_draw_funcs_make_immutable
5 years ago
Ebrahim Byagowi
63b8190db8
[test] minor
...
Remained from previous naming.
5 years ago
Ebrahim Byagowi
3a98c7fae1
[glyf] Skip empty contours
...
As https://savannah.nongnu.org/bugs/index.php?57701
5 years ago
Ebrahim Byagowi
d106900bfd
[draw][glyf] Implement quadratic to cubic call translation
5 years ago
Ebrahim Byagowi
74fdcdcac8
[draw] Rename conic_to to quadratic_to
5 years ago
Ebrahim Byagowi
ac81e94016
Rename hb_outline_decompose to hb_font_draw_glyph and hb_outline_decompose_funcs_t to hb_draw_funcs_t
5 years ago
Ebrahim Byagowi
981125aa2a
Rename hb_ot_glyph_* to hb_outline_*
5 years ago
Ebrahim Byagowi
30857089a5
[test][glyph] add subcomponent scale test
5 years ago
Ebrahim Byagowi
1438bae7a5
[ot-glyph] Add fontkit non variables fonts tests
5 years ago
Ebrahim Byagowi
9bb1c79a2c
[ot-glyph][test] Avoid sprintf use
5 years ago
Ebrahim Byagowi
99f8e52d5e
[ot-glyph] Add fontkits's variations toSVG tests
5 years ago
Ebrahim Byagowi
e44982f548
[ot-glyph] Add ttf-parser's outline_glyph tests
5 years ago
Ebrahim Byagowi
5532374f61
[ot-glyph] Add a test for #2053
5 years ago
Ebrahim Byagowi
02f324c949
[ot-glyph] remove open callback
...
Apparently it wasn't requested actually and can be detected easily
as paths are opened usually when move command is issued anyway.
5 years ago
Ebrahim Byagowi
684ff3e0cd
[ot-glyph] noop->nil, fix close path
5 years ago
Ebrahim Byagowi
79fed9a1e4
[ot-glyph] Add open/close callbacks
5 years ago
Ebrahim Byagowi
ec1fba1388
[ot-glyph] make hb_ot_glyph_decompose_funcs_t struct opaque
5 years ago
Ebrahim Byagowi
d7c3cb18ee
[ot-glyph] minor on tests
5 years ago
Ebrahim Byagowi
42f4f1ea50
[ot-glyph] Add tests for hb_ot_glyph_decompose
5 years ago