Behdad Esfahbod
de7f97b7f7
[COLR] Add comment
2024-11-15 15:14:37 -07:00
Khaled Hosny
6a25df24b0
[COLR] Add and use get_clip_list ()
2024-10-09 10:23:12 -06:00
Khaled Hosny
5462978c90
[COLR] Lets see if this makes CIFUZZ any happier
2024-10-09 10:23:12 -06:00
Behdad Esfahbod
008505e1c4
[COLR] Pepper some hb_barrier()'s around
...
The version is a minor version (because uint16), as such
version > 1 should be considered as supporting version 1
data.
2024-10-08 09:31:29 -06:00
Khaled Hosny
cec95a2d26
Try to fix heap-buffer-overflow
2024-10-07 13:24:14 -06:00
Khaled Hosny
4d1f6e049c
[COLR] Enable COLRv0 support in get_extents()
...
paint_glyph() supports COLRv0 but this code is never reached because of
the early return if version is not 1. This early return seems to be from
before COLRv0 extents were supported.
2024-10-07 13:24:14 -06:00
Qunxin Liu
72502ef02b
[instancer] dont return false when variation data is empty after partial instancing
2024-08-12 15:51:13 -06:00
Behdad Esfahbod
0037ee281f
Merge pull request #4578 from harfbuzz/varc-table
...
`VARC` table
2024-05-24 08:10:15 -07:00
Qunxin Liu
6c8985724e
fix bots
2024-05-06 10:42:03 -07:00
Qunxin Liu
247039de5a
[instancer] partial instantiating support for COLRv1
...
Also add subset support for COLRv1 VarStore/DeltaSetIndexMap
2024-05-06 10:41:07 -07:00
Qunxin Liu
c04d0a295f
[subset] generate colrv1 varsotre inner_maps in the plan
...
Also merge remap_variation_indices APIs used by GDEF and BASE into 1
2024-05-02 12:13:11 -05:00
Qunxin Liu
690893e367
[subset] collect variation indices for COLRv1
2024-05-02 12:13:11 -05:00
Behdad Esfahbod
c270a254df
[COLR] Remove redundant variable
2024-04-23 14:40:06 -06:00
Behdad Esfahbod
3d846a8d04
[limits] Centralize graph edge limits
2024-04-16 17:10:46 -06:00
Behdad Esfahbod
031fdb1c8b
Rename VarStoreInstancer to ItemVarStoreInstancer
2024-02-06 14:52:03 -07:00
Behdad Esfahbod
1cb47eff8f
Rename VariationStore to ItemVariationStore
2024-02-06 14:52:03 -07:00
Behdad Esfahbod
2f528ce4ed
Tweak a couple more barriers
2023-11-06 11:40:19 -07:00
Behdad Esfahbod
3a9262cc3d
[sanitize] More hb_barrier() annotations
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
30672c7e75
Add hb_barrier()
...
And annotate some more.
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
56e8a29032
Fix static_size declaration
...
I have a vague memory that it was intentionally written
that way, but I can't recall :-(.
2023-08-22 15:50:55 -06:00
Behdad Esfahbod
06ff3bcb8d
[COLR,glyf] Use map instead of set for tracking current glyphs / layers
2023-08-15 14:41:18 -06:00
Behdad Esfahbod
8f039ab4d6
[COLR] Avoid infinite-loop through PaintColrLayers
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4376
Fixes https://oss-fuzz.com/testcase-detail/5717524023738368
2023-08-15 11:27:19 -06:00
Behdad Esfahbod
0c80aec10b
[COLR] Move cycle-detection to the renderer instead of cairo
...
Alternative fix for https://github.com/harfbuzz/harfbuzz/issues/4375
2023-08-15 10:30:38 -06:00
Behdad Esfahbod
58effbcc4f
.
2023-08-14 16:47:36 -06:00
Behdad Esfahbod
74527670fc
[COLR/cairo] Add paint_color_glyph func
...
Implement in cairo to use scaled-font's glyph cache.
2023-08-14 16:22:06 -06:00
Behdad Esfahbod
45c1ad0512
[paint] Add tracing
2023-08-09 10:27:45 -06:00
Behdad Esfahbod
49dbe0cd30
Another try
2023-08-06 15:07:57 -06:00
Behdad Esfahbod
7989702aba
Audit and fix up serialize_subset uses
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4362
2023-08-06 14:17:50 -06:00
Behdad Esfahbod
25297408de
[COLR] Fix PaintComposite sanitize timeout
...
Was timing out after recent sanitize() change.
Fixes https://oss-fuzz.com/testcase-detail/5692635449524224
2023-07-03 10:35:27 -06:00
Behdad Esfahbod
82741304d3
[subset] start_embed never returns nullptr
...
Remove checks.
2023-06-04 09:41:41 -06:00
Behdad Esfahbod
b5792f117a
[subset] Reuse num_glyphs in various places
2023-06-03 22:24:06 -06:00
Behdad Esfahbod
e826d94afe
Call roundf() instead of _hb_roundf()
...
The former is defined as a macro expanding to the latter.
2023-04-30 11:11:19 -06:00
Behdad Esfahbod
d1c00c0470
[COLR] Respect HB_NO_PAINT
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4204
2023-04-24 13:24:47 -06:00
Qunxin Liu
fe671a5ac8
[instancer] support COLRv1 full instancing
2023-03-21 11:51:58 -06:00
Behdad Esfahbod
09a2662361
Merge pull request #4168 from googlefonts/subset_name_collect
...
[subset] name_id closure
2023-03-14 12:48:12 -06:00
Behdad Esfahbod
75e6498d9a
Don't use M_PI
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4166
Happy Pi Day!
2023-03-14 12:41:46 -06:00
Qunxin Liu
de6533d885
[subset] collect name_ids from CPAL table
2023-03-13 13:36:00 -07:00
Qunxin Liu
7b77cd198c
[subset] fix bug in CPAL V1tail serialization
...
We should serialize nameIDs rather than retained color index
2023-03-13 12:51:46 -07:00
Khaled Hosny
ae96295d67
Delete commented out include
2023-01-28 22:12:33 +02:00
Matthias Clasen
b8193357c1
[OT::Color] Drop unused includes
2023-01-28 09:54:30 -07:00
Behdad Esfahbod
0f33ea8c4f
[subset/COLR] Copy VarStore
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4085
2023-01-27 11:26:57 -07:00
Behdad Esfahbod
72e13fff65
[COLRv1] Handle void extents
2023-01-24 11:05:38 -07:00
Behdad Esfahbod
20318feddf
[COLRv1] Don't return extents if glyph has no paint
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4068
2023-01-24 11:04:10 -07:00
Behdad Esfahbod
be8a87c453
Move TRACE_DISPATCH after may_recurse()
...
Such that we don't get memory access issues if DEBUG_SANITIZE is
on and may_recurse() returns false.
2023-01-21 15:50:25 -07:00
Behdad Esfahbod
638e0ed4fd
[paint] Overlay custom-palette on top of chosen palette
...
Got to agree this is more ergonomic.
2023-01-20 13:57:39 -07:00
Behdad Esfahbod
0b32cf9023
[COLR] Rename a variable
2023-01-18 21:16:38 -07:00
Behdad Esfahbod
7aca3b5090
[COLRv1] Hook up custom palette colors
2023-01-18 21:01:44 -07:00
Behdad Esfahbod
e4a41f5e16
[COLRv1] Implement recursive clip boxes
...
Tests need update.
hb-view test_glyphs-glyf_colr_1_variable.ttf -u f0c00
2023-01-16 16:27:04 -07:00
Behdad Esfahbod
9c45d98f73
[subset-plan] Simplify colr_palettes allocation
2023-01-11 11:16:18 -07:00
Behdad Esfahbod
b74a265196
[subset-plan] Simplify colrv1_layers allocation
2023-01-11 11:15:15 -07:00