Behdad Esfahbod
bc0a5fdf43
[test-map] Add disabled tests with std::string
3 years ago
Behdad Esfahbod
985b63b3ee
[map] Allow invalid items to be pointer to static object
...
By derefencing them when necessary.
Also, we do not rely on trivially-copyable, so remove that assertion.
3 years ago
Behdad Esfahbod
98b26eedf5
[check-static-inits] Only check library object files
3 years ago
Behdad Esfahbod
1e27f95dc1
[algs] Add hb_coerce()
3 years ago
Behdad Esfahbod
5a91db1135
[map] Remove constexpr invalid items
...
These were non-workable in the general case, eg std::string.
3 years ago
Behdad Esfahbod
114046dc27
[map] Construct objects
3 years ago
Matthias Clasen
b15e497d4d
Fix the docs build
...
This was inadvertendly broken in f956ecdbaf
.
Sorry
3 years ago
Behdad Esfahbod
ca4f56bdc7
[map] Massage some more
...
Towards being able to store arbitrary types.
3 years ago
Behdad Esfahbod
cfe2b66114
[algs] Fix hash chaining to std::hash()
3 years ago
Garret Rieger
87496bf63e
[subset] fix fuzzer timeout if visisted_paint goes into error.
3 years ago
Matthias Clasen
4ced2e8a8a
docs: Add some details
...
Mention immutability in the object model section.
3 years ago
Matthias Clasen
bb330c6aa6
docs: Fix a typo
3 years ago
Behdad Esfahbod
16cfe34ae8
[git.mk] Update
3 years ago
Khaled Hosny
0acf466c44
[doc] Fix hb_font_set_synthetic_slant param name
3 years ago
Behdad Esfahbod
0b2c514fb4
More macro cleanup
3 years ago
Behdad Esfahbod
0a42f46ce9
Fix compiler warning
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3364
3 years ago
Matthias Clasen
72f0b24ee3
docs: Clarify variation apis ( #3363 )
...
Make it explicit that the variations setters
replace all existing variations, even if
not all axes are included in the provided
values.
Co-authored-by: Matthias Clasen <mclasen@redhat.com>
3 years ago
Matthias Clasen
befe3b5d5a
color: Document empty returns ( #3362 )
...
Document that the SVG and PNG getters return
the singleton empty blob if the glyph has no
color.
Fixes : #1413
Co-authored-by: Matthias Clasen <mclasen@redhat.com>
3 years ago
Behdad Esfahbod
13643934aa
Clean up HB_NO_SETLOCALE
...
https://github.com/harfbuzz/harfbuzz/pull/3358#pullrequestreview-850500143
3 years ago
Behdad Esfahbod
53847dba92
[algs] Call std::hash from hb_hash()
3 years ago
Behdad Esfahbod
74811c501d
[map] Map == / != use correct types
3 years ago
Timo Suoranta
b8c2c1ab37
Use freetype from CMake target when present ( #3361 )
...
Add check for Freetype CMake target. If it is found:
- enable HB_HAVE_FREETYPE option
- add HAVE_FREETYPE=1 define
- bypass finding Freetype as cmake package
- add Freetype CMake target as dependency to harfbuzz
3 years ago
Behdad Esfahbod
ce7f19a2cc
Revert "[map] Actually use k/v invalid types for declaration!"
...
This reverts commit 6f559346ac
.
Err. My bad.
3 years ago
Behdad Esfahbod
6f559346ac
[map] Actually use k/v invalid types for declaration!
3 years ago
Behdad Esfahbod
a45a630539
Fix unintentional locale dependency ( #3358 )
...
Avoid unintentional locale dependency
hb_variation_to_string uses sprintf with %g, which will produce
a locale-dependent decimal point, which is not desired here.
The output is supposed to be compatible with CSS syntax, and
that always uses '.' for the decimal point.
Fix this by changing the per-thread locale to "C" around sprintf call.
Fixes https://github.com/harfbuzz/harfbuzz/issues/3355
Fixes https://github.com/harfbuzz/harfbuzz/pull/3357
Fixes https://github.com/harfbuzz/harfbuzz/pull/3358
Co-authored-by: Matthias Clasen <mclasen@redhat.com>
3 years ago
Matthias Clasen
d70825a6d1
docs: Add some details about coordinates
...
Mention what the effective values are when
coordinates have not been set.
3 years ago
Behdad Esfahbod
0a5c1c9705
[failing-alloc] Make it compile as C++ as well
3 years ago
Behdad Esfahbod
bea5369c6d
[buffer] Rename swap_buffers() to sync()
3 years ago
Behdad Esfahbod
c5e5d5e0bc
Merge pull request #3353 from harfbuzz/buffer-create-similar
...
Add `hb_buffer_create_similar()`; use it in util
3 years ago
Behdad Esfahbod
d1e7df5c3f
[buffer] Add enter()/leave() pair around shape()
3 years ago
Behdad Esfahbod
43be5ba442
[buffer] Group shape-related members together
3 years ago
Behdad Esfahbod
52f5711ed0
[buffer] Add hb_buffer_create_similar()
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
f643b81ffc
[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
3 years ago
Behdad Esfahbod
d0c3515ce4
[util] Copy unicode_funcs in copy_buffer_properties()
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
34f5b855aa
[util] Simplify copy_buffer_properties()
...
Now that hb_buffer_append() overlays segment_properties we can do this.
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
101d07efd9
[util] Move copy_buffer_properties() out of loop
...
Now that hb_buffer_append() overlays properties, we can do this.
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
36e9f467a4
[buffer] Overlay segment-properties in hb_buffer_append()
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
6a66992842
Add hb_segment_properties_overlay()
...
New API:
+ hb_segment_properties_overlay()
3 years ago
Behdad Esfahbod
165a6073fa
Merge pull request #3338 from harfbuzz/slant
...
[font] Add public API for synthetic slant
3 years ago
Behdad Esfahbod
3fc2e654c0
[metrics] Fix slant calc
3 years ago
Behdad Esfahbod
a7751277e9
[docs] Add hb_font_[gs]et_synthetic_slant()
3 years ago
Behdad Esfahbod
4ab94443bb
[metrics] Ouch. Fix slant code
3 years ago
Behdad Esfahbod
f7d49d9c2b
[metrics] Simplify
3 years ago
Behdad Esfahbod
f1ba1f940f
[metrics] Only scale caret rise/run if font is slanted
3 years ago
Behdad Esfahbod
45c2b6e384
[metrics] Harden math
3 years ago
Behdad Esfahbod
fa008a021f
[metrics] Implement synthetic slant for caret slope
...
Part of https://github.com/harfbuzz/harfbuzz/pull/3338
3 years ago
Behdad Esfahbod
fc329f665f
[metrics] Scale up horizontal caret rise/run
...
Eg. if rise/run are 1/0, we now return upem/0. This is equivalent.
Part of https://github.com/harfbuzz/harfbuzz/pull/3338
3 years ago
Behdad Esfahbod
a3265e1e07
Typo
3 years ago
Behdad Esfahbod
0df83f52a1
Fix test
3 years ago
Behdad Esfahbod
6356da88ee
[docs] Update
3 years ago