Matthias Clasen
a3ba723876
Drop an unneeded include
2 years ago
Matthias Clasen
0800d1879c
Try to fix autotools build
2 years ago
Matthias Clasen
5451b78f4a
Don't use alloca
...
It complicates things on Windows, for no
big win. Just preallocate a reasonable amount.
2 years ago
Matthias Clasen
7c12db46ff
Try to fix msvc build
2 years ago
Behdad Esfahbod
3590ee74f4
[util] Fix bot
2 years ago
Behdad Esfahbod
81bf089273
[hb-view] Use color render callback if HB_DRAW >= 2
2 years ago
Matthias Clasen
c65f580b93
Drop hb-test
...
This was a test binary to assist in developing
the hb-paint code. Not needed anymore, now that
hb-view has the same code in the cairo userfont
backend.
2 years ago
Behdad Esfahbod
9672aa8610
[util] Fix compiler warning
2 years ago
Matthias Clasen
955bd30365
Fix hb-cairo-utils
...
This was a stupid mistake, and hard to track down.
2 years ago
Behdad Esfahbod
3573956705
[util] Include stdio.h
2 years ago
Behdad Esfahbod
7accbe97d8
[util] Fix argument order and root transform PNGs
2 years ago
Behdad Esfahbod
529dc40d7d
[util] Adjust scaling
...
Still doesn't render PNGs.
Fix a few compiler warnings
2 years ago
Behdad Esfahbod
bcc9ab27fc
[hb-view] Fix transformation
...
No need for cairo patch; that patch was wrong.
2 years ago
Behdad Esfahbod
c996fc58ec
[hb-view] Remove redundant check
2 years ago
Behdad Esfahbod
bec5354030
[hb-view] Fix render_color_glyph extents coordinate system
...
Needs cairo fix:
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/371
2 years ago
Behdad Esfahbod
95ccd66481
[hb-view] Set glyph extents in render_color_glyph
...
Works around limitation in cairo-recording-surface unboundedness.
Extents are wrong but at least renders something now.
2 years ago
Matthias Clasen
6cadf280f2
Use hb-cairo-utils in hb-test
...
Just to prove that it works.
2 years ago
Matthias Clasen
8bcd13dd91
small fixup to hb-cairo-utils
2 years ago
Matthias Clasen
6c49822cad
wip: Use hb-paint in hb-view
...
This doesn't paint anything yet.
2 years ago
Behdad Esfahbod
3b32eab38e
[colr] Fix compiler warning
2 years ago
Behdad Esfahbod
e3153654cb
[colr] Fix PNG placement
2 years ago
Behdad Esfahbod
f07ce68f9c
Remove unused function
2 years ago
Matthias Clasen
0a2f3673b9
[paint] Use tags for image formats
...
This fits better with the rest of the
HarfBuzz API.
2 years ago
Matthias Clasen
485ba9beb3
[paint] Spell out rectangle in the API
...
No need to abbreviate this.
2 years ago
Matthias Clasen
37f3f0fcc2
[paint] Change the image callback
...
Instead of passing the glyph ID, give
it the image blob, a mimetype, and
glyph extents (if available).
Update all callers.
2 years ago
Matthias Clasen
9876e30c6e
test: Support png images via paint_image
2 years ago
Matthias Clasen
0d890061d1
Rename 'solid' to 'color'
...
'solid' does not really describe well what
the function does, and there is no strong
reason to stick 1:1 to the terminology used
in the spec.
2 years ago
Matthias Clasen
2c07828603
test: More debug spew
2 years ago
Behdad Esfahbod
fdf17dbf34
Try fixing bots
2 years ago
Matthias Clasen
5c6329555e
Apply root transform
...
This commit applies scale, slant is still missing.
2 years ago
Matthias Clasen
794fa4c3c1
sweep gradients etc
2 years ago
Matthias Clasen
d07fdc69dd
test: dump color lines
2 years ago
Matthias Clasen
627c857f8b
rename pop_group_and_composite
2 years ago
Matthias Clasen
c9350838c7
assorted fixes and changes
2 years ago
Matthias Clasen
5a123e8691
quick testcase
2 years ago
Behdad Esfahbod
0066e824f0
[util] Fix vertical positioning with --glyphs
2 years ago
Behdad Esfahbod
265b699fbd
[util] Improve --glyphs
2 years ago
Behdad Esfahbod
d45f7265e9
[hb-view/hb-shape] Add --glyphs
...
This makes hb-view take output of hb-shape and render it.
2 years ago
Garret Rieger
1a51f71afd
[subset] don't segfault when --help-all is specified w/ instancing options.
2 years ago
Nirbheek Chauhan
c7dd63d1a0
meson: Provide binaries when built as a subproject
2 years ago
Khaled Hosny
6add69a6ec
[hb-view] Allow building without cairo-ft
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3925
2 years ago
Garret Rieger
9fbe52b88d
[subset] enable instancing tests by default.
2 years ago
Garret Rieger
eda02c2ebd
[subset] Move hb_subset_preprocess to be non-experimental.
2 years ago
Behdad Esfahbod
1b86753031
[hb-subset] Support -u, -g, -t
...
For --unicodes, --gids, --text.
2 years ago
Behdad Esfahbod
2e9b270a49
[hb-view] Fix cairo slanting condition
...
hb-draw already does slanting. If NOT hb-draw, we should slant
through cairo path. Donno why this was untested before.
This was double-slanting with hb-draw, and not slanting without it.
2 years ago
Garret Rieger
4c49daf7cd
[subset] actually use the preprocessed face in hb-subset.
...
Tests weren't actually using the preprocessed face due to this typo in util/hb-subset.
2 years ago
Behdad Esfahbod
8f15fb1252
[util] Move variable closer to use
2 years ago
Behdad Esfahbod
0e4f579493
[util/hb-view] Default HB_DRAW to 1
...
See comments.
2 years ago
Garret Rieger
515863e57c
[subset] Remove add accelerator flag, replace with new api method.
...
Adds hb_subset_preprocess() which preprocesses the face and attaches accelerator data.
2 years ago
Garret Rieger
3394ec7048
[subset] use subset accelerator in tests.
...
This ensures it produces equivalent subsets as without the accelerator.
2 years ago