Behdad Esfahbod
8d8fe19099
[dwrite] Add font-funcs sketch
...
Small steps.
Fixes https://github.com/harfbuzz/harfbuzz/issues/5144
2025-03-15 21:03:30 -06:00
Behdad Esfahbod
93f8cbf4fa
[meson] Add missing .hh files to sources
...
Manually checked with find and grep...
2025-03-15 19:23:52 -06:00
Behdad Esfahbod
db8d099d4d
[dwrite] Split shape code into its own file
2025-03-15 13:59:16 -06:00
Behdad Esfahbod
aa233ecedc
[bit-vector] Add a hb_bit_vector_t type
...
Unused.
2025-03-12 23:05:04 -06:00
Behdad Esfahbod
f0a67e9948
[coretext] Split common code into hb-coretext.cc
2025-03-11 20:37:30 -06:00
Behdad Esfahbod
55ca000b0e
[fontations] Re-enable check-symbols test
...
Now that we build with lto, not many extra symbols are exported.
Ignore them.
2025-03-07 18:20:57 -07:00
Behdad Esfahbod
a6d295fa1e
[fontations] Disable symbol check
...
Since all of rust crates become public symbols. Sigh.
2025-03-06 04:23:24 +02:00
Khaled Hosny
7871ee5b6c
[fontations/meson] Use link_whole instead of link_with
...
Instead of passing `--whole-archive` manually to the linker which has a
different name on macOS linker.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
9d754188c6
[meson] Fix unintended change to coretext
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
9439e1fdad
[fontations] Links finally
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
395270e494
[fontations] Try folding into libharfbuzz
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
2a06b85d4e
[fontations] Try using an intermediate library
...
Still doesn't link.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
f28daba53c
[fontations] I don't know...
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
161b20f333
Try building with cargo
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
26da19f6ea
Kinda builds now with bindgen
...
Requires nightly.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
3ba4266daa
[fontations] bindgen hb.rs
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
2abe54fc9c
Almost works!
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
ad8e4a29b9
[fontations] Start building a libharfbuzz-fontations
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
d5faabe7ea
[decycler] Add test
2025-02-18 20:02:56 -07:00
Behdad Esfahbod
0aa400b1d8
[decycler] Implement an efficient graph cycle detector
...
This is an algorithm I came up with, based on the Floyd's
Tortoise-Hare constant-memory linear-time linked-list cycle-detection
algorithm.
https://en.wikipedia.org/wiki/Cycle_detection#Floyd's_tortoise_and_hare
It is linear-time and malloc-free. It *eventually* detects cycles,
not immediately.
The main different with Floyd's algorithm is that this algorithm
detects cycles when one is traversing down a graph, not just a
linked list.
Our existing cycle-detection algorithms use a set-of-integers,
either hb_set_t, or more efficient in this case, hb_map_t. Those
include at least one malloc, and as such show up on profiles.
Port hb-ot-font COLRv1 to use the decycler instead of previous
hb_map_t usage for cycle detection.
benchmark-font paint_glyph on NotoColorEmoji-Regular.ttf:
Before: 8ms; After: 5.5ms. No cycle detection: 5.5ms.
FT COLRv1 API is so slow (174ms) it's not worth porting to this.
Other graphs (VARC, etc) to be ported.
Test and documentation to be added.
2025-02-18 20:02:56 -07:00
Garret Rieger
056504168c
[repacker] rename hb-subset-repacker -> hb-subset-serialize.
...
Also hb_link_t and hb_object_t to hb_subset_serialize_link_t and hb_subset_serialize_object_t.
2025-01-07 13:39:51 -07:00
Luca Ebach
780aaca89b
set harfbuzz version in cmake config file
2024-11-28 02:31:46 +02:00
Behdad Esfahbod
8a805271a1
[coretext] Start implementing CoreText font-funcs
...
Does nominal glyph mapping, horiz advances, and draw so far.
2024-10-13 13:04:29 -06:00
Behdad Esfahbod
064b24177b
[coretext] Rename hb-coretext.cc to hb-coretext-shape.cc
2024-10-13 13:04:29 -06:00
chitao1234
700ef11c9b
[meson] Add back with_libstdcxx build option
...
Building harfbuzz when targeting Android API<=20 would need libstdc++
due to lack of uselocale and freelocale in C library but present in
libstdc++.
This reverts commit 0151da23d6 .
2024-09-23 17:44:33 +03:00
Behdad Esfahbod
0037ee281f
Merge pull request #4578 from harfbuzz/varc-table
...
`VARC` table
2024-05-24 08:10:15 -07:00
David Corbett
bba0c0e27c
Add test-cff.cc
2024-05-12 09:04:02 -07:00
Behdad Esfahbod
fb333ce425
[varc] Move some code to VARC.cc
2024-04-16 17:10:46 -06:00
Behdad Esfahbod
745ff05a04
[varc] Add coord-setter
...
Copied from glyf.
2024-04-16 17:10:46 -06:00
Behdad Esfahbod
c6ae8d586b
Add hb-geometry.hh
2024-04-16 17:10:46 -06:00
Behdad Esfahbod
0d6f77e629
[varc] Add table
2024-04-16 17:10:09 -06:00
L. E. Segovia
6864769c4d
[meson] Block uses of hb-static throughout Microsoft compilers
...
PE-COFF cannot export extern, non-dllexport symbols.
2024-02-28 01:23:14 +00:00
Qunxin Liu
f072de9359
[instancer] move iup code to a seprate file
2024-01-30 10:52:42 -08:00
Boris Dalstein
32ee89dd48
[cmake] Fix double dots in CMake library location on macOS
2023-11-10 13:48:24 +01:00
Qunxin Liu
c2f42fbb14
fix meson compiled_tests
2023-11-06 13:12:04 -07:00
Duncan Overbruck
b8121ccbb6
[meson] keep asserts in test programs
2023-09-21 10:04:46 -06:00
Behdad Esfahbod
005582e0cb
Merge pull request #4370 from 2xsaiko/outgoing/cmake-now-for-real
...
Re-do and clean up CMake support, making it use relocatable paths
2023-09-20 09:10:10 -06:00
Marco Rebhan
da9b838910
Re-do and clean up CMake support, making it use relocatable paths
...
Closes #4025 .
2023-09-20 08:35:15 +02:00
Marco Rebhan
b5a1c2b483
Revert "Pass through absolute paths to cmake config directly"
...
This reverts commit db292f6f02 .
2023-09-18 23:13:16 +02:00
Qunxin Liu
c330c29175
[instancer] add a unit testcase for instantiating item variations
2023-09-18 12:24:05 -07:00
L. E. Segovia
15bc9e342f
[meson] Detect Microsoft compilers through _MSC_FULL_VER
...
Microsoft ships three compilers nowadays: MSVC, clang-cl, and Clang.
The latter is always skipped by `compiler.get_argument_syntax()`,
which leads to the incorrect export macro being applied.
This commit also removes the tests that are affected in Microsoft Clang.
2023-09-06 10:04:29 +03:00
أحمد المحمودي
43d0aff672
[introspection] Pass both libharfbuzz_gobject & libharfbuzz as positional parameters
...
Fixes #4304
2023-07-04 09:22:53 +03:00
Behdad Esfahbod
ad025ddf05
[subset-cff] Simplify a bit
2023-06-22 20:09:36 -06:00
Qunxin Liu
9fd367663a
[instancer] add testing code for change_tuple_variation_axis_limits()
...
Also fixed a small bug
2023-06-08 15:05:37 -06:00
Qunxin Liu
01f9b79777
address review comments
2023-06-05 20:56:58 -07:00
Qunxin Liu
ed6bee2004
[instancer] add a test for decompile cvar tuple variations data
2023-06-05 14:03:22 -07:00
Behdad Esfahbod
ccfd7ef08c
Merge pull request #4131 from harfbuzz/wasm
...
[wasm] WebAssembly shaper
2023-05-17 16:00:33 +02:00
Qunxin Liu
f37941bb52
[instancer] add tests for instancer-solver from python test suite
...
Also fix bug in the solver code
2023-05-15 14:41:57 -06:00
Qunxin Liu
22cca43ded
[instancer ]update internal hashmap to use Triple instead of single value
...
-Added hb-subset-instancer-solver.hh file and moved Triple struct to the
head file
2023-05-12 11:09:04 -06:00
Behdad Esfahbod
5468b08c02
[subset-plan] Move all object members to a new file
...
To automatically check for their errors.
2023-05-05 15:49:38 -06:00