|
17c875c3
|
2025-03-28T16:26:27
|
|
[buffer] Minor add a function
|
|
6d95c128
|
2025-02-12T10:36:49
|
|
[buffer] Remove unused includes
|
|
b13017e6
|
2025-02-09T08:00:18
|
|
Use HB_ALWAYS_INLINE instead of bare __attribute__
The former works on MSVC too.
|
|
6091abcc
|
2025-02-06T02:40:24
|
|
[buffer] Avoid a copy in collect_codepoints()
|
|
e5e3bc40
|
2025-02-06T02:36:26
|
|
[buffer] Merge two functions into a template
|
|
403f12f7
|
2025-02-06T02:33:41
|
|
[buffer] A few always-inline's
|
|
d40c079f
|
2025-02-05T12:30:56
|
|
[morx] Use hb_bit_set_t instead of hb_set_t directly
|
|
474bef1c
|
2025-02-04T19:17:13
|
|
[aat] Use exact set for buffer intersection versus subchains
|
|
b94a39d7
|
2024-09-22T08:23:34
|
|
Follow up to variation-selector-not-found glyph
Addresses https://github.com/harfbuzz/harfbuzz/pull/4529#discussion_r1769638033
I'm not sure if this is an improvement. By leaving the var-selector
as default-ignorable, ligatures can form around it, and the resulting
cluster won't make it clear *which* base+var-selector could not be
resolved... That doesn't quite help font fallback the way we want.
Putting up for review.
|
|
a003890e
|
2024-09-21T11:30:56
|
|
[buffer] Add hb_buffer_[sg]et_not_found_variation_selector_glyph()
Unused.
|
|
f1ac867d
|
2024-03-14T13:30:21
|
|
[buffer] Add API for random state
Fixes https://github.com/harfbuzz/harfbuzz/issues/4620
New API:
+hb_buffer_set_random_state()
+hb_buffer_get_random_state()
|
|
b2a73166
|
2023-07-30T11:23:19
|
|
[buffer] Fix unsafe_to_concat()
Ouch!
|
|
4e641103
|
2023-07-16T07:40:20
|
|
[buffer] Inline a method
|
|
ccfd7ef0
|
2023-05-17T16:00:33
|
|
Merge pull request #4131 from harfbuzz/wasm
[wasm] WebAssembly shaper
|
|
7b9832de
|
2023-04-29T12:56:07
|
|
[buffer] Whitespace
|
|
c1dc1121
|
2023-02-23T15:47:56
|
|
[wasm-api] Bind buffer_set_contents
|
|
1930760b
|
2023-02-06T15:54:09
|
|
[buffer] Fix up previous commit
https://github.com/harfbuzz/harfbuzz/commit/85be877925ddbf34f74a1229f3ca1716bb6170dc#commitcomment-99547060
|
|
30b84fab
|
2023-02-06T15:27:13
|
|
[buffer] Optimize _infos_set_glyph_flags to avoid O(n^2) behavior
https://github.com/harfbuzz/harfbuzz/commit/85be877925ddbf34f74a1229f3ca1716bb6170dc#commitcomment-99547060
|
|
0b97ac39
|
2023-02-06T15:17:09
|
|
[buffer] Optimize _infos_find_min_cluster for monotone clusters
|
|
ae208963
|
2022-12-26T12:30:39
|
|
Add hb-limits.hh
|
|
ed43bc51
|
2022-11-20T13:10:19
|
|
[buffer] Move delete_glyphs_inplace() here
|
|
dff1b809
|
2022-11-16T16:19:05
|
|
[buffer] Add .digest() and use
|
|
f43dadb8
|
2022-07-30T10:23:03
|
|
Rename kashida -> tatweel
|
|
d277addb
|
2022-07-30T10:10:21
|
|
[buffer] Add HB_BUFFER_FLAG_PRODUCE_SAFE_TO_INSERT_KASHIDA
|
|
915e12cc
|
2022-07-29T13:55:39
|
|
Prototype glyph flag safe-to-kashida
Fixes https://github.com/harfbuzz/harfbuzz/issues/3721
|
|
0722b627
|
2022-07-24T17:35:44
|
|
[buffer] Return delta from sync_so_far
|
|
c55c0197
|
2022-03-21T19:11:17
|
|
[buffer] Add assertions of buffer sync status to message_impl
|
|
da9edce8
|
2022-03-21T18:51:01
|
|
[buffer] Add sync_so_far()
This removes separate out-buffer, at the cost of possibly changing
idx.
|
|
31e985d7
|
2022-06-27T16:32:02
|
|
[buffer] Likely that not messaging
|
|
148283d0
|
2022-06-10T07:48:39
|
|
[syllabic] Use a buffer scratch-flag for has-broken-syllable
|
|
104dc85a
|
2022-06-04T06:56:35
|
|
[buffer] Add try_allocate for buffer variables
|
|
f18eb000
|
2022-06-05T04:17:05
|
|
[buffer] Mark a variable as unused
Weird. Somehow our HB_TINY bot started erring as this var being unused
in non-debug builds. Not sure why now...
In file included from src/hb-ot-map.hh:32:0,
from src/hb-ot-shape.hh:32,
from src/hb-aat-layout.hh:32,
from src/hb-aat-layout.cc:30,
from src/harfbuzz.cc:1:
src/hb-buffer.hh: In member function ‘void hb_buffer_t::assert_var(unsigned int, unsigned int)’:
src/hb-buffer.hh:192:18: error: unused variable ‘bits’ [-Werror=unused-variable]
unsigned int bits = (1u<<end) - (1u<<start);
^~~~
cc1plus: some warnings being treated as errors
Error: Process completed with exit code 1.
|
|
6fbb5521
|
2022-06-03T02:50:25
|
|
s/FLAG_COMPLEX/FLAG_SHAPER/g
|
|
f3f9fc15
|
2022-05-31T06:05:57
|
|
[buffer] Mark glyph_flags_t as flags
|
|
9a2a8570
|
2022-05-31T04:25:20
|
|
[ot-shape] Don't verify buffer if shaping failed
Fixes all of fuzzing verify failures, which were result of buffer failure
on super-long results, which fails unsafe-to-break because shorter strings
don't fail shaping.
|
|
56f11ec9
|
2022-02-18T14:08:43
|
|
[buffer] Add HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT
Fixes https://github.com/harfbuzz/harfbuzz/issues/3454
|
|
b263371b
|
2022-02-12T15:06:47
|
|
Merge pull request #3398 from harfbuzz/buffer-verify
Add HB_BUFFER_FLAG_VERIFY
|
|
8670ffbf
|
2022-02-03T11:19:23
|
|
[buffer] Comment
|
|
61823838
|
2022-01-28T13:45:25
|
|
[buffer] Add HB_BUFFER_FLAG_VERIFY
Move buffer verification code inside the library, from util/.
Part of https://github.com/harfbuzz/harfbuzz/issues/3010
|
|
33246064
|
2022-01-22T15:46:13
|
|
[buffer] Oops
|
|
6e345f70
|
2022-01-22T11:40:37
|
|
Cosmetic
|
|
14d43d12
|
2022-01-22T10:46:18
|
|
[unsafe-to-concat] Adjust end conditions
|
|
ea1b32c8
|
2022-01-21T18:58:33
|
|
[unsafe-to-concat] Adjust "interior"ness of "from_out_buffer"
|
|
c0058892
|
2022-01-20T15:51:04
|
|
[unsafe-to-concat] Mark entire buffer unsafe-to-concat if kerx format2
|
|
d98a0fc8
|
2021-12-04T20:43:27
|
|
[buffer] Consolidate glyph-flags implementation
|
|
f91ce56e
|
2021-12-04T20:07:05
|
|
[buffer] Add default cluster value in find_min_cluster
|
|
56d08195
|
2021-12-04T19:59:55
|
|
[buffer] Rename _unsafe_to_break_set_mask to _infos_set_glyph_flags
|
|
3122c2cd
|
2021-12-04T19:50:33
|
|
[buffer] Add HB_GLYPH_FLAG_UNSAFE_TO_CONCAT
Fixes https://github.com/harfbuzz/harfbuzz/issues/1463
|
|
bea5369c
|
2022-01-04T10:52:05
|
|
[buffer] Rename swap_buffers() to sync()
|
|
d1e7df5c
|
2022-01-04T07:32:04
|
|
[buffer] Add enter()/leave() pair around shape()
|
|
43be5ba4
|
2022-01-04T07:26:53
|
|
[buffer] Group shape-related members together
|
|
52f5711e
|
2022-01-03T11:57:42
|
|
[buffer] Add hb_buffer_create_similar()
Fixes https://github.com/harfbuzz/harfbuzz/issues/1555
|
|
f643b81f
|
2022-01-03T11:45:31
|
|
[buffer] Clean up internal state bookkeeping
hb_buffer_reset() was NOT resetting cluster_level. Ouch! Fix that.
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
|
|
5b995526
|
2021-12-10T14:59:56
|
|
[buffer] Fix reverse_group() to reverse() at the end
|
|
21c4fc10
|
2021-12-10T13:02:43
|
|
[buffer] Add optional merge_clusters arg to reverse_groups()
|
|
eb96e69d
|
2021-12-10T12:55:29
|
|
[buffer] Add foreach_group()
|
|
1b78e04c
|
2021-12-10T12:45:43
|
|
[buffer] Add ::reverse_groups()
|
|
4cd96e73
|
2021-12-10T12:33:21
|
|
[buffer] Inline revers_range() / reverse()
|
|
70f8c57e
|
2021-12-04T19:49:23
|
|
[buffer] Rename find_min_cluster
|
|
94d43c00
|
2021-12-04T16:56:39
|
|
[buffer] Merge and rename clear_glyph_flags()
|
|
da500568
|
2021-10-26T08:02:29
|
|
[API] Add hb_buffer_[sg]et_not_found_glyph() and --not-found-glyph
Instead of using gid=0 when a character is not found in the font,
client can now set a custom value. This is useful for shaper-driven
font fallback and to differentiate that from .notdef glyph.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1360
|
|
95b04f74
|
2021-07-12T17:35:45
|
|
[buffer] Remove unnecessary have_separate_output()
|
|
3e266e5f
|
2021-07-12T17:30:26
|
|
[buffer] Update comments
|
|
3807061d
|
2021-07-12T17:02:03
|
|
[ot-layout] Don't remove_output() before reverse substitution
No need anymore, because of new swap_buffers() semantics.
Just assert instead.
|
|
93e6a9bc
|
2021-06-15T15:38:49
|
|
Revert "Remove unneeded buffer clear_output / remove_output calls"
This reverts commit 06175b71433bc42edc07d342e6354035e37fb5fd.
One of the sanitizers is failing. Pushing again as PR to debug.
I have suspicions.
|
|
06175b71
|
2021-06-15T14:33:27
|
|
Remove unneeded buffer clear_output / remove_output calls
Made sure clear_output is always paired with swap_buffers.
Trying to see if we can move towards RAII-like buffer iterators
instead of the buffer keeping an iterator internally.
|
|
c61ce962
|
2021-06-10T17:33:29
|
|
[buffer] In hb_buffer_get_positions(), return NULL if inside message callback
As discussed in https://github.com/harfbuzz/harfbuzz/issues/2468#issuecomment-645666066
Part of fixing https://github.com/harfbuzz/harfbuzz/issues/2468
|
|
9e397ff2
|
2021-03-15T16:50:54
|
|
[buffer] Fix order of HB_INTERNAL HB_DISCARD
Sucks that has to be specified in this order. But that is what it is for now.
Was only exhibiting problem on C++>=17 since that's when the [[nodiscard]]
was introduced.
|
|
8450f43a
|
2021-03-15T15:18:06
|
|
[buffer] HB_NODISCARD next_glyph()
|
|
f4bc7673
|
2021-03-15T14:54:45
|
|
[buffer] Implement copy_glyph() in terms of output_info()
|
|
f73982a6
|
2021-03-15T14:52:19
|
|
[buffer] Implement replace_glyph() in terms of replace_glyphs(1,1)
I get exact same binary size with this, suggesting that compiler is
optimizing these as needed.
|
|
862f9134
|
2021-03-15T14:48:50
|
|
[buffer] Implement output_glyph() in terms of replace_glyphs(0,1)
To my surprise, saves ~20kb in my build (non-size-optimized) build.
The output_glyph() method is never used in the fast paths, so doesn't
matter if is not fully optimized for the special case it is.
|
|
34a1204f
|
2021-03-15T14:39:06
|
|
[buffer] HB_NODISCARD output_glyph()
Also, generalize and use replace_glyphs() in morx where output_glyph() was used
in a loop.
|
|
e6be9eb4
|
2021-03-15T14:12:10
|
|
[buffer] HB_NODISCARD output_info()
|
|
2a0dbb3e
|
2021-03-15T14:10:39
|
|
[buffer] HB_NODISCARD copy_glyph()
|
|
b05e5d9a
|
2021-03-15T14:08:08
|
|
[buffer] HB_NODISCARD next_glyphs()
|
|
4ae8aab8
|
2021-03-15T14:01:52
|
|
[buffer] HB_NODISCARD has_separate_output()
|
|
8d3701f5
|
2021-03-15T14:01:32
|
|
[buffer] HB_NODISCARD in_error()
|
|
41e05479
|
2021-03-15T14:00:00
|
|
[buffer] HB_NODISCARD shift_forward()
|
|
83b3784d
|
2021-03-15T13:59:14
|
|
[buffer] HB_NODISCARD make_room_for()
|
|
c355508a
|
2021-03-15T13:58:30
|
|
[buffer] HB_NODISCARD ensure_glyphs() / ensure_unicode()
|
|
bc22305b
|
2021-03-15T13:57:18
|
|
[buffer] HB_NODISCARD ensure_inplace()
|
|
cac6c86d
|
2021-03-15T13:46:54
|
|
[buffer] HB_NODISCARD move_to()
|
|
05d2d37f
|
2021-03-15T13:43:29
|
|
[buffer] HB_NODISCARD ensure()
|
|
d8028a07
|
2021-03-15T13:34:36
|
|
[buffer] HB_NODISCARD enlarge()
|
|
3f1998a0
|
2021-03-15T13:33:44
|
|
[buffer] HB_NODISCARD replace_glyph()
|
|
607979d1
|
2021-03-15T13:23:48
|
|
[buffer] HB_NODISCARD replace_glyphs()
|
|
906c9928
|
2021-03-15T13:13:45
|
|
[buffer] Return success status from buffer ops that can fail
Previous error-handling philosophy was that user doesn't need to
immediately know whether operation failed. But as can be seen after
we added malloc-failing fuzzing, there's just so many places in the
code that a failure of these operations needs to be mitigated before
further operations. So I'm moving towards returning success here,
and possibly making it nodiscard.
|
|
77e704d1
|
2020-10-15T02:02:04
|
|
[buffer] Add assert_unicode()/assert_glyphs() and use internally
|
|
5ef06139
|
2020-10-15T01:54:28
|
|
[buffer] Add ensure_glyphs()/ensure_unicode()
Use in deserialize. To be used more.
|
|
1c05f678
|
2020-10-11T12:28:25
|
|
[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
|
|
d0e2addd
|
2020-07-18T22:14:52
|
|
minor
|
|
2dda6dd7
|
2020-04-20T14:12:45
|
|
minor, tweak spacing
turn 8 spaces to tab, add space before Null/Crap
|
|
cd7b46ca
|
2020-01-26T20:46:19
|
|
Use correct return type in _unsafe_to_break_find_min_cluster.
|
|
029775bc
|
2019-10-09T11:00:09
|
|
[buffer] Minor; improve HB_NO_BUFFER_MESSAGE
|
|
0558413f
|
2019-10-01T13:49:55
|
|
Minor, tweak spaces
|
|
7f3b409e
|
2019-06-20T14:24:43
|
|
Fix build with -O0
message_impl was not defined. That causes trouble if compiler didn't
optimize the unreachable call out...
|
|
eb9798ef
|
2019-06-18T13:29:55
|
|
[config] Dont' compile buffer message API if HB_NO_BUFFER_MESSAGE
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
|
|
c7439d4e
|
2019-06-05T12:13:49
|
|
Slightly massage buffer-messaging commit
Saves a few bytes.
|
|
41248cce
|
2019-05-07T20:54:31
|
|
Remove MIN/MAX in favor of hb_min/hb_max
|