Khaled Hosny
69cc214c9a
Merge pull request #2729 from khaledhosny/autotools-pkg-config
...
[autotools] Require pkg-config 0.28
4 years ago
Khaled Hosny
5adc1344a4
[ci] Upload meason logs on some CircleCI jobs
4 years ago
Khaled Hosny
71376f88ef
[ci] CircleCI removed xcode:9.0.1 image
...
The replacement run newer versions of macOS (10.13.3), making this job
obsolete as it tests nothing the other jobs don’t test.
4 years ago
Khaled Hosny
05403a07b5
[autotools] Require pkg-config 0.28
...
Follow up 0615c7b64b
, which fixes #1565 .
This seems to be the version that fixed the circular dependency, based
on the ChangeLog:
https://cgit.freedesktop.org/pkg-config/commit/?h=pkg-config-0.28&id=74ceac54ef6f9247c00f08eecd8cca811a3c5934
4 years ago
David Corbett
49ebb9ebdd
[use] Remove redundant O entries from the table
4 years ago
David Corbett
79fd5ce22e
[use] Merge IND and Rsv classes into O
4 years ago
Khaled Hosny
c2cdcd4901
[tests] warning: unused variable 'num_glyphs'
4 years ago
David Corbett
e25aa49a1b
Fix a dead link in CMakeLists.txt
4 years ago
Khaled Hosny
9a9da110a5
[CI] Don’t install ragel on circleci jobs
...
Latest ragel version is broken (https://github.com/adrian-thurston/ragel/issues/56 ), but we also don’t need to regenerate state machine on CI jobs.
4 years ago
Behdad Esfahbod
cde2cf84c0
[use] Minor clean-up of unused categories
4 years ago
David Corbett
0792690b73
[use] Skip WJ and ZWJ when clustering
4 years ago
Laurenz
3fcf466b7b
[hb-shape-fallback] Use signed int for correction
4 years ago
Behdad Esfahbod
77e704d1db
[buffer] Add assert_unicode()/assert_glyphs() and use internally
4 years ago
Behdad Esfahbod
5ef0613909
[buffer] Add ensure_glyphs()/ensure_unicode()
...
Use in deserialize. To be used more.
4 years ago
Khaled Hosny
84dd65a874
[test] Remove timeout from test runners
...
See https://github.com/harfbuzz/harfbuzz/issues/2707#issuecomment-707744079
This wasn’t inconsistent as well, HB_TEST_SUBSET_FUZZER_TIMEOUT defaulted
to 12 in the test runner, but it was overridden to 50 in meson.build,
and then meson has its own test timeout.
4 years ago
Behdad Esfahbod
3232e6f2a9
[buffer] Add hb_buffer_has_positions()
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2716
4 years ago
Khaled Hosny
97a093c52f
[hb-subset] Improve error handling a bit
...
* Check that output-file option is actually set before trying to open
it.
* Print file name and errno when opening the output file fails.
* Be more resilient when writing output file and use ferror() to check
for errors.
Fixes https://github.com/harfbuzz/harfbuzz/issues/2711
4 years ago
Khaled Hosny
fa771a7f85
[tests] Fix memory leak in test
...
To make valgrind bot happy.
4 years ago
David Corbett
dec52006d9
Map BCP 47 tags to all macrolanguages
...
The general rule is that if a BCP 47 macrolanguage maps to an OpenType
language system tag, all its individual languages map to it too.
Previously, a tag like "prs" (Dari) would not map to the language system
tag ('FAR ') of its macrolanguage ("fa") because "prs" already has its
own language system tag ('DRI '). That exception has been removed: now
"prs" maps to 'DRI ' and falls back to 'FAR '.
4 years ago
David Corbett
1d53268dfe
Fix two-way mapping of "man" and 'MNK '
4 years ago
David Corbett
ab38cf6746
Map hy-arevmda to 'HYE ' instead of HYE0
4 years ago
David Corbett
916c5a9007
Consistently emit BCP 47 subtag scope suffixes
4 years ago
Behdad Esfahbod
1c05f6789b
[buffer] Increase work limits
...
Our previous limits of 64 per input character was already hit
by David Corbett's under-development Duployan font.
Increase work limits by factor of 16, and number of glyphs by factor of 2.
Fixes https://github.com/harfbuzz/harfbuzz/issues/2707
4 years ago
Behdad Esfahbod
b37edebfcb
[buffer/deserialize] Do not clear() buffer upon content type mismatch
...
We return false. I don't see reason to clear buffer.
4 years ago
Behdad Esfahbod
c396e1600f
[buffer/deserialize] Accept arbitrary glyph names
...
Accepts escapes. Added TODO items for matching escaping in serialize().
4 years ago
Behdad Esfahbod
4a4eebcf86
[buffer/serialize] Minor renames in Ragel machines
...
As per my previous review on:
https://github.com/harfbuzz/harfbuzz/pull/2687
4 years ago
Behdad Esfahbod
540d2cdddb
[tests/buffer] Revert unintended whitespace changes
...
From 9e5538d6a3
Tried squashing into, but too much merge conflict.
4 years ago
Behdad Esfahbod
78fb6a11af
Whitespace
4 years ago
Behdad Esfahbod
140552cec9
[buffer/serialize] Only serialize empty buffers of CONTENT_TYPE_INVALID
4 years ago
Behdad Esfahbod
04658ec48f
[tests/buffer] Update tests for previous commit
4 years ago
Behdad Esfahbod
8f5d8b155c
[buffer] Buffer start <= end <= len requirement in (de-)serialize
4 years ago
Behdad Esfahbod
3b64122a7f
[buffer] Fix immutable case with end_ptr==nullptr
4 years ago
Simon Cozens
7c0bc0bb92
Serialize invalid buffer to !! (text) or [] (json)
...
There is no generic deserialize - you have to choose glyphs or unicode - so there is no way to deserialize this buffer.
4 years ago
Simon Cozens
5bb88c4f45
Oops debug print
4 years ago
Simon Cozens
f56eb402f0
Immutable buffer fix
4 years ago
Simon Cozens
150f391438
Prohibit mixed glyphs/unicode buffers in deserialization
4 years ago
Simon Cozens
6b1726b6ef
Typos
4 years ago
Simon Cozens
3d3c87e7e7
Put the flags back in and serialize clusters.
...
Note that now JSON glyph buffers and Unicode buffers look very similar, except for the g/u property difference.
4 years ago
Simon Cozens
432a05b2af
(Simple) tests for Unicode serialization/deserialization
4 years ago
Simon Cozens
c03a2001b2
Deserialization routines for Unicode buffers
4 years ago
Simon Cozens
c0716bb5dc
Move delimiter addition into hb-buffer-serialize
4 years ago
Simon Cozens
36ede56962
Fix docs
...
Note the delimiters stuff isn’t true yet, will be working on that
4 years ago
Simon Cozens
bb7b634cd0
Simplify JSON unicode serialization
...
It’s just an array of codepoints; no need to turn them into objects
4 years ago
Simon Cozens
57a528ab2c
Convert tabs to spaces
4 years ago
Simon Cozens
aff6a36266
Use auxbuffer for serialize_unicode_text
4 years ago
Simon Cozens
a0203a28bb
Use hb_buffer_serialize to trace in utils
4 years ago
Simon Cozens
58bcc1cedd
Serialize Unicode buffers
4 years ago
David Corbett
c39ab82c90
Fix usage text of gen-use-table.py
4 years ago
David Corbett
a99e8721bf
[use] Fix tests with MSVC
4 years ago
Koji Ishii
7e6070a47f
Set *coord to nullptr
4 years ago