src/hb-buffer-serialize.cc

Branch


Log

Author Commit Date CI Message
Harry Dalton 059fc205 2025-10-13T17:58:13 Fix documentation of offsets in text glyph serialization format (#5606) Offsets are serialized when only one of `x` and `y` is non-zero too: https://github.com/harfbuzz/harfbuzz/blob/7c2105a52e6b50e448064e82c760dad0b5f4bdb9/src/hb-buffer-serialize.cc#L302-L303
Behdad Esfahbod 7612ec44 2025-03-23T13:10:12 [util] Show glyph extents only if available
Behdad Esfahbod 7a912c47 2025-03-10T16:20:16 [buffer-deserialize] Fix return value and parsing I think I got it right. Alternative to https://github.com/harfbuzz/harfbuzz/pull/5028
Behdad Esfahbod e9730509 2023-01-25T14:07:01 [hb-buffer-deserialize] Fixups
Behdad Esfahbod 328ee9b4 2023-01-23T21:06:27 [hb-buffer-deserialize-text-unicodes] Rename
Behdad Esfahbod 2c29b81e 2023-01-23T20:49:19 [buffer-deserialize-text] Separate glyphs / unicodes machines
Behdad Esfahbod 59c45f6d 2022-11-22T12:54:50 Use hb_memcpy instead of memcpy consistently
Khaled Hosny 98e90cc6 2022-06-30T08:43:57 [docs] Reduce warnings Use markdown syntax for inline code blocks instead of %true, %false, and %NULL.
Behdad Esfahbod 19802dfd 2022-06-16T13:50:35 Minor rename of static symbols to namespace them
Ali Chraghi 79bb3b52 2022-06-11T14:31:28 [docs] fix typo
Khaled Hosny 5151c2b6 2020-12-31T00:28:27 [introspection] Replace deprecated allow-none Use optional or nullable as appropriate.
Khaled Hosny 2fdab788 2020-12-30T23:44:30 [docs] Complete hb-buffer docs a bit
Khaled Hosny 8c3a530f 2020-12-22T23:52:46 [docs] Some formatting fixes
Behdad Esfahbod 77e704d1 2020-10-15T02:02:04 [buffer] Add assert_unicode()/assert_glyphs() and use internally
Behdad Esfahbod c396e160 2020-10-09T21:13:10 [buffer/deserialize] Accept arbitrary glyph names Accepts escapes. Added TODO items for matching escaping in serialize().
Behdad Esfahbod 78fb6a11 2020-10-09T18:02:16 Whitespace
Behdad Esfahbod 140552ce 2020-10-09T18:01:32 [buffer/serialize] Only serialize empty buffers of CONTENT_TYPE_INVALID
Behdad Esfahbod 8f5d8b15 2020-10-09T17:58:57 [buffer] Buffer start <= end <= len requirement in (de-)serialize
Behdad Esfahbod 3b64122a 2020-10-09T17:55:21 [buffer] Fix immutable case with end_ptr==nullptr
Simon Cozens 7c0bc0bb 2020-09-25T21:24:41 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.
Simon Cozens 5bb88c4f 2020-09-25T10:08:00 Oops debug print
Simon Cozens f56eb402 2020-09-25T10:06:33 Immutable buffer fix
Simon Cozens 6b1726b6 2020-09-21T16:35:40 Typos
Simon Cozens 3d3c87e7 2020-09-21T14:35:05 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.
Simon Cozens c03a2001 2020-09-18T14:19:17 Deserialization routines for Unicode buffers
Simon Cozens c0716bb5 2020-09-18T10:31:28 Move delimiter addition into hb-buffer-serialize
Simon Cozens 36ede569 2020-09-18T10:24:29 Fix docs Note the delimiters stuff isn’t true yet, will be working on that
Simon Cozens bb7b634c 2020-09-18T09:49:19 Simplify JSON unicode serialization It’s just an array of codepoints; no need to turn them into objects
Simon Cozens 57a528ab 2020-09-18T09:35:05 Convert tabs to spaces
Simon Cozens aff6a362 2020-09-18T09:27:27 Use auxbuffer for serialize_unicode_text
Simon Cozens 58bcc1ce 2020-09-17T16:29:40 Serialize Unicode buffers
Behdad Esfahbod a1f4d285 2020-09-21T16:50:11 [buffer] Fix invalid write access in hb_buffer_deserialize_glyphs() If buffer is immutable, we were trying to set content_type on it. Ouch!
Ebrahim Byagowi 48ad7459 2020-07-29T08:09:08 [ENOMEM] Fix buffer's content check logic So now rest of shape fuzzer also can be enabled. Fixes #2571
Ebrahim Byagowi 65690b5a 2019-09-03T23:09:47 [number] Add whole buffer check and test it
Ebrahim Byagowi 005389be 2019-09-03T17:00:46 Use hb_parse_uint in deserializer token parser
Ebrahim Byagowi b5e6805e 2019-09-03T15:23:40 [number] Minor tweak on parser related codes
Ebrahim Byagowi a77bb7eb 2019-09-03T14:49:14 Move hb_codepoint_parse to hb_parse_uint
Ebrahim Byagowi 43372fbb 2019-09-03T01:02:40 Merge and aggregate number parsing logics to form hb-number
Ebrahim Byagowi a0b4ac4d 2019-08-24T17:57:14 Turn 8 spaces to tab across the project According to the current code style of the project
Behdad Esfahbod be1c0ab2 2019-06-18T13:26:03 [config] Don't compile buffer serialize API if HB_NO_BUFFER_SERIALIZE Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod dba1ac1b 2019-05-12T15:33:31 [config] Disable buffer serialize routines in HB_TINY Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod 41248cce 2019-05-07T20:54:31 Remove MIN/MAX in favor of hb_min/hb_max
Ebrahim Byagowi e4120085 2018-12-17T21:31:01 Remove redundant void from C++ sources (#1486)
Behdad Esfahbod 7251c772 2018-12-15T21:00:55 Whitespace
Ebrahim Byagowi 687f679b 2018-10-20T17:50:39 [color] Fix alpha channel value and adjust spaces
Ebrahim Byagowi 63109432 2018-10-13T14:00:05 Cosmetic and minor changes
Behdad Esfahbod c77ae408 2018-08-25T22:36:36 Rename hb-*private.hh to hb-*.hh Sorry for the noise, downstream custom builders. Please adjust.
Behdad Esfahbod 994eb774 2018-01-11T11:37:12 [buffer] Fix crash
Behdad Esfahbod 71fd6325 2018-01-10T02:20:14 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
Behdad Esfahbod dbdbfe3d 2017-10-15T12:11:08 Use nullptr instead of NULL
Jonathan Kew 331d66c7 2014-07-19T23:09:09 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()
Behdad Esfahbod 40bd7e9a 2016-05-02T14:47:45 [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
Behdad Esfahbod 3c080a7a 2017-03-07T18:13:28 Fix buffer serialize of empty buffer Ouch!
Khaled Hosny 9ab9f974 2016-01-01T20:38:21 [docs] More buffers documentation
Behdad Esfahbod 9ea0aa43 2015-12-18T17:30:18 Don't deserialize positions if buffer has no positions
Behdad Esfahbod b8811429 2015-09-03T15:53:22 Fix Since tags Fixes https://github.com/behdad/harfbuzz/issues/103
Behdad Esfahbod fdd1770e 2015-08-24T13:49:55 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.
Behdad Esfahbod 75504a50 2015-08-18T18:47:02 Allow serializing buffer with output-buffer being used Ie, don't call get_positions() if positions are not requested for serialization.
Behdad Esfahbod 7627100f 2014-07-11T14:54:42 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.
Behdad Esfahbod 62299826 2014-01-23T14:11:03 Fix typo in _hb_buffer_serialize_glyphs_text() Fixes https://github.com/behdad/harfbuzz/pull/17
Behdad Esfahbod 176fd17d 2013-10-30T17:27:24 Bug 70971 - Signed/unsigned compiler warnings on windows Patch from Emil Eklund.
Behdad Esfahbod 288f2899 2013-09-06T15:40:22 [docs/introspection] More annotations
Behdad Esfahbod 38b8b405 2013-08-27T11:44:09 Fix possible snprintf OOM https://bugzilla.redhat.com/show_bug.cgi?id=1001645
Behdad Esfahbod 20b817ac 2013-02-27T18:39:37 [buffer] Implement buffer deserialization for format=json Using a ragel machine.
Behdad Esfahbod 847794e9 2013-02-27T17:59:28 [buffer] Implement buffer deserialization for format=text Using a ragel machine.
Behdad Esfahbod 4ee803b4 2013-02-27T16:09:55 [buffer] Fix serializing of buffer with invalid direction
Behdad Esfahbod e54dd263 2013-02-27T13:01:02 [buffer] Start implementing buffer deserialization
Behdad Esfahbod bcc8f32b 2013-02-27T12:02:42 [buffer] Minor
Behdad Esfahbod d3e14aaf 2013-02-27T11:06:36 [buffer] Move buffer serialization code to a new file