Behdad Esfahbod
9046e92442
[subset] Rename constructor to hb_subset_input_create_or_fail()
...
To signify that unlike rest of library, returns nullptr on failure.
7 years ago
Behdad Esfahbod
d5b33f2fe1
[subset] hb_subset_input_t changes
7 years ago
Behdad Esfahbod
70b06cc6e7
More fixes
7 years ago
Behdad Esfahbod
4011d885b7
[util] Remove use of ssize_t which was failing on MSVC
7 years ago
Behdad Esfahbod
d0f3e7f597
[util] Use setlinebuf() if present
...
To work around mysterious bug on OS X.
Fixes https://github.com/harfbuzz/harfbuzz/issues/727
7 years ago
Rod Sheeter
8431c38cdc
remove output noise
7 years ago
Behdad Esfahbod
194140d3f3
[util] Minor
7 years ago
Behdad Esfahbod
af02812fc5
[subset] Change hb_subset API to remove hb_subset_face_t
7 years ago
Rod Sheeter
6c52d94fd1
capture the set of codepoints passed by --unicodes
7 years ago
Garret Rieger
7481f0ce21
Add codepoints to subset input.
7 years ago
Ebrahim Byagowi
70e13ade81
[subset] Fix Windows issue on endlines ( #756 )
7 years ago
Garret Rieger
2ea228935d
ssize_t -> size_t
7 years ago
Garret Rieger
c25898eb54
Switch to fopen() instead of open() in subset test. open wasn't compiling on windows.
7 years ago
Garret Rieger
fc04f11ce1
Rename HB_SUBSET_sources -> HB_SUBSET_CLI_sources to match what cmake is looking for.
7 years ago
Garret Rieger
e428f7b1c2
Wrap unistd.h include in ifdef.
7 years ago
Behdad Esfahbod
ae39fc8171
[subset] Build hb-subset into separate libharfbuzz-subset.so
7 years ago
Behdad Esfahbod
eac20e4595
[subset] Minor
7 years ago
Rod Sheeter
edcd3b80e9
Actually call hb_subset
7 years ago
Garret Rieger
f83a43b561
Add CMake configuration for all of the new subsetting code.
7 years ago
Garret Rieger
5bc0cda179
Add missing unistd header to hb-subset.
7 years ago
Garret Rieger
058b1260ad
Re-write hb-subset utility to use main-font-text driver.
7 years ago
Garret Rieger
ede84ffa42
Whitespace
7 years ago
Rod Sheeter
e9d154ac8d
tweak test failure output. write to a temp file not stdout. test still fails because expected is not just an identical copy of input
7 years ago
Rod Sheeter
9ccb8366f6
Start to sketch APIs for subsetting
7 years ago
Behdad Esfahbod
4c4a9fc861
Typo
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/711
7 years ago
Behdad Esfahbod
7c32e01d04
Minor
7 years ago
Behdad Esfahbod
746a37d5bd
[util] Replace setlinebuf
7 years ago
Behdad Esfahbod
ff2083c53e
[util] Set stdio files to line buffering
...
So we can stream lines to hb-shape and read output.
7 years ago
Behdad Esfahbod
3b1e97f364
Add HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
...
New API:
HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
hb-shape / hb-view --remove-default-ignorables
One more text-rendering-tests test passing. Eleven failing.
7 years ago
Behdad Esfahbod
3f29ea9144
[util] Add hb-shape --ned
...
For not displaying extra data: no clusters, no advance. Just data pertaining
to where glyphs end up on the screen.
7 years ago
Behdad Esfahbod
71fd6325b6
Add option to buffer serialization to not output glyph advances
...
When advances are not printed, glyph offsets reflect absolute glyph
positions.
New API:
HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES
hb-shape --no-advances
7 years ago
Behdad Esfahbod
7b837e20d2
[util] Add TODO item
7 years ago
Olivier Blin
0fd89dc61c
[hb-ft] Fix build when Multiple Master font support is disabled in freetype
...
FT_Set_Var_Blend_Coordinates() is not available when "Multiple Master
font interface" is disabled in freetype's modules.cfg
7 years ago
Behdad Esfahbod
bb7cc4eada
Minor
7 years ago
Behdad Esfahbod
17f40b7cad
Include hb-private.hh more consistently
...
Part of fixing https://github.com/behdad/harfbuzz/issues/585
7 years ago
Behdad Esfahbod
dbdbfe3d7b
Use nullptr instead of NULL
7 years ago
Behdad Esfahbod
c3448e8d21
Use static_assert instead of custom ASSERT_STATIC
7 years ago
Behdad Esfahbod
dad431e75b
[util] Include hb-private.hh
...
Simplifies compatibility issues by centralizing all boilerplate code
in hb-private.hh.
7 years ago
Behdad Esfahbod
9355218f58
[util] Add a few shorthand forms for commandline options
...
-o, -O, -u, -v, -V
7 years ago
Behdad Esfahbod
d03f11f246
Fix buffer_diff for empty buffers
...
If buffers are empty, content type should be ignored.
This fixes last of the failing tests: fuzzed.tests. Green again!
7 years ago
Behdad Esfahbod
03a5a6f873
[util] Add --unicodes to hb-view / hb-shape
...
Fixes https://github.com/behdad/harfbuzz/issues/154
7 years ago
Behdad Esfahbod
b262ebcc9c
[util] Fix cluster sweeping during --verify
...
If *I* get this wrong in 2017, I have no idea how others get their head around
cluster math...
Fixes tests/arabic-fallback-shaping.tests
7 years ago
Behdad Esfahbod
69d701b02e
[util] When --verify fails, return reconstructed shape results
7 years ago
Behdad Esfahbod
099472e08b
hb_buffer_diff() tweak
...
I like to have a mode where CONTAINS_NOTDEF and CONTAINS_DOTTEDCIRCLE are not
returned. Abused a value of -1 for that. hb-shape now uses it. Fixes two
of the six tests failing with --verify in test/shaping/run-tests.sh.
7 years ago
Behdad Esfahbod
a9e52a1af4
[util] Prefix trace lines with "trace:", and error lines with "error:"
7 years ago
Behdad Esfahbod
7ea10c35a3
[util] Respect eot/bot in safe-to-break test; hook up hb_buffer_diff()
7 years ago
Behdad Esfahbod
a88e2a73f3
[util] Fix leaks
7 years ago
Behdad Esfahbod
05fabbd03e
[unsafe-to-break] Towards verifying unsafe-to-break in --verify
...
We break and shape fragments and reconstruct shape result from them.
Remains to compare to original buffer. Going to add some buffer
comparison API and use here, instead of open-coding.
7 years ago
Behdad Esfahbod
d2052278f2
[util] Add --verify to hb-shape / hb-view that verifies shape results
...
Right now it checks for monotone cluster values. Other checks to be added.
7 years ago
Behdad Esfahbod
40bd7e9a1c
[unsafe-to-break] Add UNSAFE_TO_BREAK flag
...
Not all shapers code is updated to set this properly.
GSUB and Arabic shaper are updated.
GPOS and other shapers are NOT.
Fixes https://github.com/behdad/harfbuzz/issues/224
7 years ago