Khaled Hosny
|
5151c2b668
|
[introspection] Replace deprecated allow-none
Use optional or nullable as appropriate.
|
2020-12-30 19:21:49 -08:00 |
Khaled Hosny
|
2fdab788ad
|
[docs] Complete hb-buffer docs a bit
|
2020-12-30 19:21:49 -08:00 |
Khaled Hosny
|
8c3a530fd7
|
[docs] Some formatting fixes
|
2020-12-22 23:52:46 +02:00 |
Behdad Esfahbod
|
77e704d1db
|
[buffer] Add assert_unicode()/assert_glyphs() and use internally
|
2020-10-15 02:02:04 -06:00 |
Behdad Esfahbod
|
c396e1600f
|
[buffer/deserialize] Accept arbitrary glyph names
Accepts escapes. Added TODO items for matching escaping in serialize().
|
2020-10-09 22:27:56 -06:00 |
Behdad Esfahbod
|
78fb6a11af
|
Whitespace
|
2020-10-09 22:27:55 -06:00 |
Behdad Esfahbod
|
140552cec9
|
[buffer/serialize] Only serialize empty buffers of CONTENT_TYPE_INVALID
|
2020-10-09 22:27:55 -06:00 |
Behdad Esfahbod
|
8f5d8b155c
|
[buffer] Buffer start <= end <= len requirement in (de-)serialize
|
2020-10-09 22:27:55 -06:00 |
Behdad Esfahbod
|
3b64122a7f
|
[buffer] Fix immutable case with end_ptr==nullptr
|
2020-10-09 22:27:55 -06:00 |
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.
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
5bb88c4f45
|
Oops debug print
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
f56eb402f0
|
Immutable buffer fix
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
6b1726b6ef
|
Typos
|
2020-10-09 22:27:55 -06:00 |
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.
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
c03a2001b2
|
Deserialization routines for Unicode buffers
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
c0716bb5dc
|
Move delimiter addition into hb-buffer-serialize
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
36ede56962
|
Fix docs
Note the delimiters stuff isn’t true yet, will be working on that
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
bb7b634cd0
|
Simplify JSON unicode serialization
It’s just an array of codepoints; no need to turn them into objects
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
57a528ab2c
|
Convert tabs to spaces
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
aff6a36266
|
Use auxbuffer for serialize_unicode_text
|
2020-10-09 22:27:55 -06:00 |
Simon Cozens
|
58bcc1cedd
|
Serialize Unicode buffers
|
2020-10-09 22:27:55 -06:00 |
Behdad Esfahbod
|
a1f4d285e1
|
[buffer] Fix invalid write access in hb_buffer_deserialize_glyphs()
If buffer is immutable, we were trying to set content_type on it.
Ouch!
|
2020-09-21 16:50:11 -06:00 |
Ebrahim Byagowi
|
48ad745996
|
[ENOMEM] Fix buffer's content check logic
So now rest of shape fuzzer also can be enabled.
Fixes #2571
|
2020-07-29 08:09:10 +04:30 |
Ebrahim Byagowi
|
65690b5a4b
|
[number] Add whole buffer check and test it
|
2019-09-04 02:04:09 +04:30 |
Ebrahim Byagowi
|
005389beb5
|
Use hb_parse_uint in deserializer token parser
|
2019-09-04 02:04:09 +04:30 |
Ebrahim Byagowi
|
b5e6805ee7
|
[number] Minor tweak on parser related codes
|
2019-09-04 02:04:09 +04:30 |
Ebrahim Byagowi
|
a77bb7eb41
|
Move hb_codepoint_parse to hb_parse_uint
|
2019-09-04 02:04:09 +04:30 |
Ebrahim Byagowi
|
43372fbb5a
|
Merge and aggregate number parsing logics to form hb-number
|
2019-09-04 02:04:09 +04:30 |
Ebrahim Byagowi
|
a0b4ac4dce
|
Turn 8 spaces to tab across the project
According to the current code style of the project
|
2019-08-27 02:40:41 +04:30 |
Behdad Esfahbod
|
be1c0ab218
|
[config] Don't compile buffer serialize API if HB_NO_BUFFER_SERIALIZE
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
|
2019-06-18 13:26:03 -07:00 |
Behdad Esfahbod
|
dba1ac1b0e
|
[config] Disable buffer serialize routines in HB_TINY
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
|
2019-05-12 15:33:49 -07:00 |
Behdad Esfahbod
|
41248cce0e
|
Remove MIN/MAX in favor of hb_min/hb_max
|
2019-05-07 20:54:31 -07:00 |
Ebrahim Byagowi
|
e412008599
|
Remove redundant void from C++ sources (#1486)
|
2018-12-17 13:01:01 -05:00 |
Behdad Esfahbod
|
7251c77290
|
Whitespace
|
2018-12-15 21:00:55 -05:00 |
Ebrahim Byagowi
|
687f679b80
|
[color] Fix alpha channel value and adjust spaces
|
2018-10-22 10:17:31 +02:00 |
Ebrahim Byagowi
|
63109432cf
|
Cosmetic and minor changes
|
2018-10-13 07:23:33 -04:00 |
Behdad Esfahbod
|
c77ae40852
|
Rename hb-*private.hh to hb-*.hh
Sorry for the noise, downstream custom builders. Please adjust.
|
2018-08-25 22:36:36 -07:00 |
Behdad Esfahbod
|
994eb7744c
|
[buffer] Fix crash
|
2018-01-11 11:37:12 +01:00 |
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
|
2018-01-10 02:50:49 +01:00 |
Behdad Esfahbod
|
dbdbfe3d7b
|
Use nullptr instead of NULL
|
2017-10-15 12:11:08 +02:00 |
Jonathan Kew
|
331d66c7fe
|
Add function to compare two buffers
Based on patch from Jonathan Kew.
Needs more cleaning up and documentation.
New API:
hb_buffer_diff_flags_t
hb_buffer_diff()
|
2017-08-14 11:44:12 -07:00 |
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
|
2017-08-10 15:02:28 -07:00 |
Behdad Esfahbod
|
3c080a7a0a
|
Fix buffer serialize of empty buffer
Ouch!
|
2017-03-07 18:13:28 -08:00 |
Khaled Hosny
|
9ab9f974d4
|
[docs] More buffers documentation
|
2016-01-01 20:38:21 +04:00 |
Behdad Esfahbod
|
9ea0aa43ac
|
Don't deserialize positions if buffer has no positions
|
2015-12-18 17:30:57 +00:00 |
Behdad Esfahbod
|
b8811429b6
|
Fix Since tags
Fixes https://github.com/behdad/harfbuzz/issues/103
|
2015-09-03 15:53:22 +04:30 |
Behdad Esfahbod
|
fdd1770e00
|
Add API/cmdline to show glyph extents when serializing buffer
New API: HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS
hb-shape now accepts --show-extents.
Patch from Simon Cozens.
|
2015-08-24 13:49:55 +01:00 |
Behdad Esfahbod
|
75504a5048
|
Allow serializing buffer with output-buffer being used
Ie, don't call get_positions() if positions are not
requested for serialization.
|
2015-08-18 18:47:02 +01:00 |
Behdad Esfahbod
|
7627100f42
|
Mark unsigned integer literals with the u suffix
Simplifies hb_in_range() calls as the type can be inferred.
The rest is obsessiveness, I admit.
|
2014-07-11 16:22:13 -04:00 |
Behdad Esfahbod
|
62299826f4
|
Fix typo in _hb_buffer_serialize_glyphs_text()
Fixes https://github.com/behdad/harfbuzz/pull/17
|
2014-01-23 14:11:03 -05:00 |