Repository navigation
Expand file tree
/
Copy pathNEWS
More file actions
4706 lines (3835 loc) · 163 KB
/
Copy pathNEWS
File metadata and controls
4706 lines (3835 loc) · 163 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
- Support instancing axes not referenced by retained `VARC` data.
Overview of changes leading to 14.6.0
Monday, October 5, 2026
=====================================
- Fix shaping failures caused by out-of-range glyph IDs, a regression from
11.4.0.
- Update experimental beyond-64k support to the final ISO Open Font Format
5th edition. This support remains disabled by default.
- Add support for the `DMAP` table.
- Support `FeatureVariations` 1.1 lookup variations, including subsetting and
instancing.
- Update `VARC` to the revised variation-store format. The new format is
incompatible with the previous one.
- Various `VARC` fixes.
- Fix background color and stride handling in the experimental raster library.
- Improve the experimental Rust shaper (HarfRust) and font functions
(`fontations`), and update HarfRust to 0.14.
- Various subsetting fixes and improvements.
- Various fixes for malformed fonts.
- Various build and CI fixes.
Overview of changes leading to 14.5.1
Thursday, October 1, 2026
=====================================
- Map the `fonupa` (Uralic Phonetic Alphabet) BCP 47 variant to the `UPPH`
OpenType language system tag.
- Produce smaller `cmap` subtables and drop no-op variation device tables when
subsetting.
- Fix possible deadlock in `hb_font_destroy()` after `hb_ft_font_set_funcs()`,
a regression from 14.5.0.
- Fix signed integer overflows when scaling glyph extents and applying
synthetic slant and emboldening.
- Fix float-to-int overflow in `VARC` component axis coordinates with
malformed fonts.
- Fix a memory leak in the experimental WebAssembly shaper when shaping with
features.
- Fix accumulator overflows in the experimental raster library when rendering
glyphs with very many overlapping edges.
- Fix heap buffer overflow in the experimental GPU library with malicious
`COLR` fonts.
- Various build and CI fixes.
Overview of changes leading to 14.5.0
Monday, September 21, 2026
=====================================
- Update Unicode 18.0 data and script support, including script values for
Jurchen, Proto-Cuneiform, and Seal, and the corresponding shaping support.
- Add support for VARC table subsetting, including pruning auxiliary data,
remapping glyph IDs, and guarding the feature in lean builds.
- Add rendering work budgets to the draw and paint APIs and share them across
the raster, vector, GPU, and Cairo renderers so nested outline work remains
bounded.
- Improve performance in set iteration, lookup traversal, and the repacker, and
add coverage for new benchmarks and fuzzing seeds.
- Fix various correctness and robustness issues across the CFF, Graphite,
DirectWrite, and repacker code paths, including memory leaks, overflow checks,
bounds issues, and malformed-font handling.
- Various build, portability, and CI fixes.
- New API:
* Common:
+HB_BUDGET_DEFAULT
+HB_BUDGET_UNLIMITED
+HB_SCRIPT_JURCHEN
+HB_SCRIPT_PROTO_CUNEIFORM
+HB_SCRIPT_SEAL
* Draw:
+hb_draw_set_budget_func_t
+hb_draw_get_budget_func_t
+hb_draw_get_budget_remaining_func_t
+hb_draw_funcs_set_set_budget_func()
+hb_draw_funcs_set_get_budget_func()
+hb_draw_funcs_set_get_budget_remaining_func()
+hb_draw_set_budget()
+hb_draw_get_budget()
+hb_draw_get_budget_remaining()
* Paint:
+hb_paint_set_budget_func_t
+hb_paint_get_budget_func_t
+hb_paint_get_budget_remaining_func_t
+hb_paint_funcs_set_set_budget_func()
+hb_paint_funcs_set_get_budget_func()
+hb_paint_funcs_set_get_budget_remaining_func()
+hb_paint_set_budget()
+hb_paint_get_budget()
+hb_paint_get_budget_remaining()
Overview of changes leading to 14.4.0
Wednesday, August 26, 2026
=====================================
- Glyph positions and extents now saturate instead of overflowing.
- Arabic Windows-1256 fallback shaping is now enabled on all platforms.
- Fix cluster values and a dropped glyph advance in the Graphite shaper.
- Fix `avar` axis value mapping in fonts that repeat the boundary entries.
- Fix `avar` version 2 partial instancing.
- Fix `COLR` sweep gradient truncation and unbounded memory use.
- Faster subsetting, especially for large `GSUB`/`GPOS` and `CFF` tables.
- Faster extraction of the experimental glyph dependency graph.
- Various shaping speedups.
- Various fixes for crashes and hangs with malformed fonts.
- Various fixes to the experimental raster, vector, and GPU libraries.
- Various improvements to the HarfRust integration shaper.
- The DirectWrite backend no longer uses the C++ runtime.
- Various build, portability, and fuzzing fixes.
- New API:
+hb_set_intersects()
Overview of changes leading to 14.3.1
Thursday, August 13, 2026
=====================================
- Various fuzzing and build fixes.
- Various subsetting fixes.
- Fix AAT insertion at the end of the text.
- Fix various rendering bugs in the experimental GPU library.
- WASM shaper code can now read the user features.
Overview of changes leading to 14.3.0
Friday, July 31, 2026
=====================================
- Changes affecting shaping output:
* Lookup order is now respected for mark positioning in the cross-direction
(y in horizontal text, x in vertical text): marks no longer follow a
cross-direction shift that a later lookup applies to the base. This
improves compatibility with DirectWrite and Core Text.
* Fix mark attachment to ligatures formed from decomposed glyphs.
* The `calt` feature in Hangul text is now disabled only for the Jamos,
not the whole buffer.
- Support for partially instancing version of `avar` table, as well as `CFF2`
table.
- New fill-glyph paint operation and APIs for the common case of filling a
glyph with a solid color.
- New API to fetch assorted raw values from the `OS/2`, `head`, and `post`
tables.
- New experimental API to extract a font’s glyph dependency graph, that
applications can use to compute glyph closures themselves without running the
subsetter.
- New subset flag to convert the charset of a subsetted CID-keyed `CFF` fonts
into identity charset, and a matching `hb-subset` option. Useful for
embedding fonts in PDF.
- Command-line utilities now handle non-ASCII arguments correctly on Windows.
- Various instancing and subsetting fixes.
- Various fixes to the experimental `harfbuzz-vector`, `harfbuzz-raster` and
`harfbuzz-gpu` libraries.
- Various improvements to the HarfRust integration shaper.
- Various build, CI, portability, and fuzzing fixes.
- New API:
* OpenType:
+HB_OT_BITS_TAG_FS_TYPE
+HB_OT_BITS_TAG_FS_SELECTION
+HB_OT_BITS_TAG_MAC_STYLE
+HB_OT_BITS_TAG_IS_FIXED_PITCH
+HB_OT_BITS_TAG_UNICODE_RANGE_1
+HB_OT_BITS_TAG_UNICODE_RANGE_2
+HB_OT_BITS_TAG_UNICODE_RANGE_3
+HB_OT_BITS_TAG_UNICODE_RANGE_4
+HB_OT_BITS_TAG_CODE_PAGE_RANGE_1
+HB_OT_BITS_TAG_CODE_PAGE_RANGE_2
+HB_OT_NUMBER_TAG_FONT_X_MIN
+HB_OT_NUMBER_TAG_FONT_Y_MIN
+HB_OT_NUMBER_TAG_FONT_X_MAX
+HB_OT_NUMBER_TAG_FONT_Y_MAX
+hb_ot_bits_tag_t
+hb_ot_fetch_bits()
+hb_ot_number_tag_t
+hb_ot_fetch_number()
* Paint:
+hb_paint_fill_glyph_func_t
+hb_paint_fill_glyph()
+hb_paint_funcs_set_fill_glyph_func()
* Subset library:
+HB_SUBSET_FLAGS_CFF_IDENTITY_CHARSET
Overview of changes leading to 14.2.1
Tuesday, June 2, 2026
=====================================
- Various AAT shaping fixes: legacy `mort` contextual offsets (which could
produce out-of-font glyph IDs), in-place deleted-glyph replacements, and
overflow in obsolete offset math.
- Fix Arabic PUA fallback shaping for the isolated lam-alef-maksura ligature.
- Fix float-to-int overflow in `avar2` mapping with malformed fonts.
- Harden buffer verification after detecting non-monotone clusters.
- Various `COLR` v1 fixes: fix handling of `.notdef` without paint, round alpha
consistently, and report the root clip under the font transform.
- Various Glyph-extents fixes: inclusive rounding, and floating-point scaling
before rounding so the reported box always covers the glyph.
- Various Subsetting fixes: keep the `palt` spacing feature by default, raise
the repacker `MAX_SPACES` limit, fix a repacker crash on shared `LigatureSet`
nodes, guard `gvar` size overflow on 32-bit, and fix the `post` glyph-name
sort comparator on macOS.
- Replace `std::sort` with an internal quicksort, removing leaked `std::`
symbols from the `libharfbuzz` ABI.
- Harden size computations with saturating arithmetic against 32-bit overflow.
- Various improvements to the experimental Rust shaper (HarfRust) and font
functions (`fontations`): honor custom font funcs, key shape plans on
features, faster buffer handling, and update to HarfRust 0.8.
- Various fixes to the experimental `harfbuzz-gpu` and `harfbuzz-vector`
libraries, including a `harfbuzz-vector` heap buffer overflow and Windows
build fixes.
- Map the `Hrkt` (Katakana or Hiragana) script tag to the `kana` OpenType tag.
- Build configuration: new `HB_CONFIG_OVERRIDE_LAST_H` override header,
decouple `HB_NO_DRAW` from `HB_NO_CFF`, and an optional `hb-allocator` Cargo
feature.
- Various build, CI, and fuzzing fixes.
Overview of changes leading to 14.2.0
Monday, April 20, 2026
=====================================
In this release, the experimental raster, vector, and GPU libraries went
through several rounds of code review and cleanup to make sure they follow the
high standards expected of HarfBuzz code. The API has also been extensively
reviewed based on experience gained from using these libraries. We consider the
code and API to be ready for stabilization, and we expect to graduate them from
experimental in the near future. If you are using or planning to use these
libraries and have any concerns about the API, it is time to raise them. Once a
library is deemed stable, we will never change the API or ABI in an
incompatible way.
- GPU library:
* New color-glyph paint renderer, based on design by Lê Duy Quang.
`hb_gpu_paint_t` walks a font's paint tree (COLRv0 or COLRv1) and encodes
its layers (solid fills, linear / radial / sweep gradients, transforms,
composite groups) into a compact blob.
A new fragment-shader function `hb_gpu_paint()` renders the blob in
premultiplied RGBA; monochrome glyphs are handled transparently via a
synthesized foreground-colored layer.
Shader sources provided in GLSL, WGSL, MSL, and HLSL.
* Paint encoder limitations: the encoder sets `unsupported` and returns
`NULL` when `num_ops` would exceed 32767, `push_group` nests deeper than 4,
or the paint tree calls back through the image callback (PaintImage).
Nested glyph clips are intersected up to 3 levels; a few composite modes
use approximate fallbacks; `push_clip_rectangle` is silently ignored.
* Encode entry point now returns extents and auto-clears the encoder; the
standalone `get_extents()` is gone.
* Gradient color stop interpolation now happens in premultiplied space per
the OpenType COLR specification.
* The foreground color sentinel (`is_foreground`) now correctly preserves the
paint-tree alpha from the encoded color data instead of discarding it.
* The hb-gpu utility gains `--draw` / `--paint` flags with per-font
auto-detect, and `--output-file` / `-o` for headless single-frame rendering
to a PPM image.
- Vector library:
* New PDF output backend. Vector paint glyphs now render to PDF page content,
producing scalable COLRv0 / COLRv1 color-glyph artwork (solid fills, linear
/ radial / sweep gradients, blend modes, PNG images with transparency) that
can be embedded directly in PDF documents. Useful for PDF producers such as
LibreOffice that want crisp, resolution-independent color emoji.
* New SVG id prefix API on paint allows prefixing document references, which
allows for embedding multiple SVGs in the same page without name clashes
(`hb_vector_paint_set_svg_prefix`).
* Removed glyph path dedup from vector draw and paint. Each glyph is emitted
inline; no `<defs>` / `<use>` caching.
* `_glyph()` functions are now thin convenience wrappers documented as
equivalent expansions of the underlying font draw/paint API.
* Drop glyph-source rendering of SVG-in-OT fonts.
- Raster library:
* Drop glyph-source rendering of SVG-in-OT fonts.
- Across Draw / Paint subsystems:
* `_reset()` methods gain matching`_clear()` companions that drop accumulated
data while preserving user configuration. Getter companions added for
setters across raster, vector, and gpu types.
- Various fuzzer fixes for raster, vector, and GPU libraries.
- Paint API:
* New arbitrary-path clip: `hb_paint_push_clip_path_start` / `_end` let
callers clip to a caller-supplied outline, not just a font glyph.
`push_clip_path_start()` returns the draw-funcs (and matching draw data)
for the backend’s path accumulator; the caller drives `hb_draw_*()` into
it, then calls `push_clip_path_end()`, followed by painted ops, then
`hb_paint_pop_clip()` to release the clip. Implemented for all paint
backends: vector (SVG defs + clipPath + url ref), vector PDF (q / path / W
n), raster (path rendered to an alpha mask, intersected with the current
clip), and GPU (the path is encoded into a Slug sub-blob so the fragment
shader clips against it the same way it clips against glyph outlines).
- Shaping:
* Indic: categorize U+1CF5 and U+1CF6 as CS.
- Changed API
* GPU library:
- `hb_gpu_draw_glyph()` now returns `void` (was `hb_bool_t`). Use
`hb_gpu_draw_glyph_or_fail()` if you need the success status.
- `hb_gpu_paint_glyph()` now returns `void` (was `hb_bool_t`) and
internally synthesizes a foreground-colored layer for non-color glyphs
via `hb_font_paint_glyph()`, so every glyph with an outline produces
output. Use `hb_gpu_paint_glyph_or_fail()` (which delegates to
`hb_font_paint_glyph_or_fail()`) if you need to distinguish color vs
synthesized paint. Encoder-level limits (unsupported ops, group-stack
overflow) no longer fail paint_glyph; they surface from
`hb_gpu_paint_encode()` returning `NULL`.
- `hb_gpu_draw_encode()` now takes an `extents` out-parameter and
auto-clears the encoder on return.
- `hb_gpu_draw_darken()` renamed to `hb_gpu_stem_darken()`.
* Vector library:
- `hb_vector_svg_set_precision()` and its paint counterpart renamed to
`hb_vector_draw_set_precision()` / `hb_vector_paint_set_precision()`
(SVG-specific naming is inaccurate with the PDF backend added).
- `hb_vector_draw_glyph()` / `hb_vector_paint_glyph()` now return `void`
(were `hb_bool_t`). Paint additionally gains a draw fallback for
non-color glyphs. Use the matching `_or_fail()` variants for the
`hb_bool_t` return.
* Raster library:
- `hb_raster_draw_glyph()` / `hb_raster_paint_glyph()` now return `void`
(were `hb_bool_t`). Paint additionally gains a draw fallback for
non-color glyphs. Use the matching `_or_fail()` variants for the
`hb_bool_t` return.
* General:
- Many read-only getters gained const on their object argument.
- Six public draw / paint funcs getters across raster, vector, and gpu now
take a const-pointer to the relevant context instance instead of being
singletons:
hb_raster_draw_get_funcs (const hb_raster_draw_t *)`
hb_raster_paint_get_funcs (const hb_raster_paint_t *)
hb_vector_draw_get_funcs (const hb_vector_draw_t *)
hb_vector_paint_get_funcs (const hb_vector_paint_t *)
hb_gpu_draw_get_funcs (const hb_gpu_draw_t *)
hb_gpu_paint_get_funcs (const hb_gpu_paint_t *)
This is what lets vector_paint dispatch to SVG- vs PDF- flavored
callbacks transparently when called from outside code; the others
currently use the instance for symmetry only.
- New API
* Draw:
+HB_DRAW_LINE_CAP_BUTT
+HB_DRAW_LINE_CAP_ROUND
+HB_DRAW_LINE_CAP_SQUARE
+hb_draw_line_cap_t
+hb_draw_line()
+hb_draw_rectangle()
+hb_draw_circle()
* Paint:
+hb_paint_push_clip_path_start_func_t
+hb_paint_push_clip_path_end_func_t
+hb_paint_sweep_gradient_tile_func_t
+hb_paint_push_group_for_func_t
+hb_paint_push_group_for()
+hb_paint_funcs_set_push_group_for_func()
+hb_paint_reduce_linear_anchors()
+hb_paint_normalize_color_line()
+hb_paint_sweep_gradient_tiles()
+hb_paint_push_clip_path_start()
+hb_paint_push_clip_path_end()
+hb_paint_funcs_set_push_clip_path_start_func()
+hb_paint_funcs_set_push_clip_path_end_func()
* GPU library:
+HB_GPU_SHADER_STAGE_VERTEX
+HB_GPU_SHADER_STAGE_FRAGMENT
+HB_GPU_SHADER_LANG_INVALID
+hb_gpu_shader_stage_t
+hb_gpu_paint_t
+hb_gpu_paint_create_or_fail()
+hb_gpu_paint_reference()
+hb_gpu_paint_destroy()
+hb_gpu_paint_set_user_data()
+hb_gpu_paint_get_user_data()
+hb_gpu_paint_get_funcs()
+hb_gpu_paint_set_palette()
+hb_gpu_paint_get_palette()
+hb_gpu_paint_set_custom_palette_color()
+hb_gpu_paint_clear_custom_palette_colors()
+hb_gpu_paint_set_scale()
+hb_gpu_paint_get_scale()
+hb_gpu_paint_glyph()
+hb_gpu_paint_encode()
+hb_gpu_paint_clear()
+hb_gpu_paint_reset()
+hb_gpu_paint_recycle_blob()
+hb_gpu_paint_shader_source()
+hb_gpu_paint_glyph_or_fail()
+hb_gpu_shader_source()
+hb_gpu_draw_shader_source()
+hb_gpu_draw_clear()
+hb_gpu_draw_get_scale()
+hb_gpu_draw_glyph_or_fail()
* Raster library:
+hb_raster_draw_clear()
+hb_raster_draw_glyph_or_fail()
+hb_raster_paint_clear()
+hb_raster_paint_glyph_or_fail()
+hb_raster_paint_set_palette()
+hb_raster_paint_get_palette()
+hb_raster_paint_get_foreground()
+hb_raster_paint_set_background()
+hb_raster_paint_get_background()
* Vector library:
+HB_VECTOR_FORMAT_PDF
+hb_vector_draw_clear()
+hb_vector_draw_get_precision()
+hb_vector_draw_get_format()
+hb_vector_draw_glyph_or_fail()
+hb_vector_draw_new_path()
+hb_vector_draw_set_foreground()
+hb_vector_draw_get_foreground()
+hb_vector_draw_set_background()
+hb_vector_draw_get_background()
+hb_vector_paint_clear()
+hb_vector_paint_get_precision()
+hb_vector_paint_get_format()
+hb_vector_paint_get_foreground()
+hb_vector_paint_set_background()
+hb_vector_paint_get_background()
+hb_vector_paint_get_palette()
+hb_vector_paint_glyph_or_fail()
+hb_vector_paint_set_svg_prefix()
+hb_vector_paint_get_svg_prefix()
- Removed API
* GPU library:
-hb_gpu_shader_fragment_source() (replaced by hb_gpu_shader_source(stage))
-hb_gpu_shader_vertex_source() (replaced by hb_gpu_shader_source(stage))
-hb_gpu_draw_get_extents() (extents are now an out-parameter of hb_gpu_draw_encode())
* Vector library:
-hb_vector_draw_set_flat()
-hb_vector_draw_get_flat()
-hb_vector_paint_set_flat()
-hb_vector_paint_get_flat()
Overview of changes leading to 14.1.0
Saturday, April 4, 2026
=====================================
- GPU library improvements:
* Add anti-aliased rendering for small sizes.
* Store font scale in blob header.
* Port scale/ppem support to MSL, WGSL, and HLSL shaders.
* Fix contour breaks and bounds quantization in encode.
* Fix garbled rendering after font change in web demo.
* Various robustness fixes.
- Various fuzzing fixes for `harfbuzz-raster`, `harfbuzz-gpu` and
`harfbuzz-vector` libraries.
- Move `HB_NO_CFF` from `HB_LEAN` to `HB_NO_DRAW` closure, and fix
`HB_TINY` build.
- New API:
+hb_gpu_draw_set_scale()
Overview of changes leading to 14.0.0
Wednesday, April 1, 2026
=====================================
- New `libharfbuzz-gpu` library: GPU text rasterization based on the
Slug algorithm by Eric Lengyel. Encodes glyph outlines on the CPU
into compact blobs that the GPU decodes and rasterizes directly in
the fragment shader, with no intermediate bitmap atlas.
Shader sources provided in GLSL, WGSL, MSL, and HLSL.
New `hb-gpu` installed utility for interactive GPU text rendering.
Live web demo: https://harfbuzz.github.io/hb-gpu-demo/
- New `harfbuzz-world.cc` amalgamated source for building a subset of
all HarfBuzz libraries into one compilation unit, driven by a custom
`hb-features.h`.
- Updated README with libraries overview and project description.
- Various bug fixes.
- New API:
+hb_gpu_draw_t
+hb_gpu_draw_create_or_fail()
+hb_gpu_draw_reference()
+hb_gpu_draw_destroy()
+hb_gpu_draw_set_user_data()
+hb_gpu_draw_get_user_data()
+hb_gpu_draw_get_funcs()
+hb_gpu_draw_glyph()
+hb_gpu_draw_encode()
+hb_gpu_draw_get_extents()
+hb_gpu_draw_reset()
+hb_gpu_draw_recycle_blob()
+hb_gpu_shader_lang_t
+hb_gpu_shader_fragment_source()
+hb_gpu_shader_vertex_source()
Overview of changes leading to 13.2.1
Thursday, March 19, 2026
=====================================
- Fix regression in tracing messages from previous release.
Overview of changes leading to 13.2.0
Thursday, March 19, 2026
=====================================
- Fix `hb-view` glyph positioning with `--glyphs` input from `hb-shape --ned`.
- Various fuzzing fixes for `harfbuzz-subset`, `harfbuzz-raster` and
`harfbuzz-vector` libraries.
- Various improvements to tracing messages.
- Various documentation improvements.
- New API:
+HB_OT_SHAPE_BUFFER_FORMAT_SERIAL
+hb_ot_shape_get_buffer_format_serial()
Overview of changes leading to 13.1.1
Friday, March 13, 2026
=====================================
- Support gzip-compressed `SVG` glyphs in `harfbuzz-raster` and
`harfbuzz-vector` libraries. This new functionality requires `zlib`, and will
not be available if HarfBuzz is built without `zlib`.
- Improve handling of `SVG` glyphs in `harfbuzz-raster` and
`harfbuzz-vector` libraries.
- Further harden application of `stch` feature against malicious fonts.
- Various fuzzing fixes.
- Various build fixes:
* Add missing `chafa` dependency to `hb-raster` utility, and remove
accidental `cairo` dependency.
* Don’t build raster and vector fuzzers if the library is disabled.
* Add meson options for enabling / disabling `libpng` and `zlib`.
* Support building `harfbuzz-raster` and `harfbuzz-vector` libraries with
CMake.
Overview of changes leading to 13.1.0
Wednesday, March 11, 2026
=====================================
- The `harfbuzz-raster` library can now render bitmap color glyph formats
(`CBDT` and `sbix`). It now also has an API to serialize / deserialize images
to and from PNGs. This new functionality requires `libpng`, and will not be
available if HarfBuzz is built without `libpng`.
- Install `hb-raster` command line utility.
- Fix overflow when applying `stch` feature with malicious fonts.
- Fix memory leaks in `harfbuzz-raster` and `harfbuzz-vector` in error
conditions, as well as more robust handling of allocation failures.
- Various documentation improvements and build fixes.
- New API:
+hb_raster_image_serialize_to_png_or_fail()
+hb_raster_image_deserialize_from_png_or_fail()
Overview of changes leading to 13.0.1
Saturday, March 7, 2026
=====================================
- Bug fixes in rendering `COLR` v1 fonts.
- Various build fixes.
Overview of changes leading to 13.0.0
Wednesday, March 4, 2026
=====================================
- New experimental drawing and rendering libraries:
* New public `hb-vector` API for vector output of glyph outlines. The only
supported output format currently is SVG.
The new API is available in a separate `harfbuzz-vector` library.
* New public `hb-raster` API for rasterizing glyphs to A8 / BGRA32 images.
The new API is available in a separate `harfbuzz-raster` library.
* Both APIs are still experimental and subject to change.
* Both libraries support monochrome as well as vector color glyph formats
(`COLR` v0, v1, and `SVG`).
* Additionally, `hb-vector` supports also bitmap color glyph formats (`CBDT`
and `sbix`).
* New command line utilities to accompany the new APIs: `hb-vector` and
`hb-raster`. They share many of the same options as `hb-view`.
- New subset flag `HB_SUBSET_FLAGS_DOWNGRADE_CFF2` to convert instantiated
`CFF2` table to `CFF `. This options will desubroutinize `CFF2` table and
convert it to CID-keyed `CFF` table. This is useful for compatibility with
older renderers that do not support `CFF2` table, including embedding
instantiated fonts in PDF documents.
- The `hb-view` command-line utility got a few bells and whistles as well,
including support for logical / ink extents (with the default being the union
of both), stroke, and an option to rotate glyph foreground colors
(rainbow coloring).
- New API to inspect color-glyph documents in `SVG` table.
- New API to signal that the buffer content was changed by the client in
message callbacks.
- Improve `VARC` drawing accuracy with multiple transform / rounding fixes.
- Don’t reject malformed `cmap` subtables, a regression from 12.3.0 when we
stopped sanitizing malformed tables.
- Disallow calling `hb_buffer_set_message_func()` from within the message
callback.
- Various performance optimizations, fuzzing fixes, and documentation
improvements.
- New API:
* harfbuzz:
+hb_buffer_changed()
+hb_ot_color_get_svg_document_count()
+hb_ot_color_get_svg_document_glyph_range()
+hb_ot_color_glyph_get_svg_document_index()
* harfbuzz-subset:
+HB_SUBSET_FLAGS_DOWNGRADE_CFF2
* harfbuzz-raster:
+hb_raster_draw_t
+hb_raster_extents_t
+hb_raster_format_t
+hb_raster_image_t
+hb_raster_paint_t
+hb_raster_draw_create_or_fail()
+hb_raster_draw_destroy()
+hb_raster_draw_get_extents()
+hb_raster_draw_get_funcs()
+hb_raster_draw_get_scale_factor()
+hb_raster_draw_get_transform()
+hb_raster_draw_get_user_data()
+hb_raster_draw_glyph()
+hb_raster_draw_recycle_image()
+hb_raster_draw_reference()
+hb_raster_draw_render()
+hb_raster_draw_reset()
+hb_raster_draw_set_extents()
+hb_raster_draw_set_glyph_extents()
+hb_raster_draw_set_scale_factor()
+hb_raster_draw_set_transform()
+hb_raster_draw_set_user_data()
+hb_raster_image_clear()
+hb_raster_image_configure()
+hb_raster_image_create_or_fail()
+hb_raster_image_destroy()
+hb_raster_image_get_buffer()
+hb_raster_image_get_extents()
+hb_raster_image_get_format()
+hb_raster_image_get_user_data()
+hb_raster_image_reference()
+hb_raster_image_set_user_data()
+hb_raster_paint_clear_custom_palette_colors()
+hb_raster_paint_create_or_fail()
+hb_raster_paint_destroy()
+hb_raster_paint_get_extents()
+hb_raster_paint_get_funcs()
+hb_raster_paint_get_scale_factor()
+hb_raster_paint_get_transform()
+hb_raster_paint_get_user_data()
+hb_raster_paint_glyph()
+hb_raster_paint_recycle_image()
+hb_raster_paint_reference()
+hb_raster_paint_render()
+hb_raster_paint_reset()
+hb_raster_paint_set_custom_palette_color()
+hb_raster_paint_set_extents()
+hb_raster_paint_set_foreground()
+hb_raster_paint_set_glyph_extents()
+hb_raster_paint_set_scale_factor()
+hb_raster_paint_set_transform()
+hb_raster_paint_set_user_data()
* harfbuzz-vector:
+hb_vector_draw_t
+hb_vector_extents_mode_t
+hb_vector_extents_t
+hb_vector_format_t
+hb_vector_paint_t
+hb_vector_draw_create_or_fail()
+hb_vector_draw_destroy()
+hb_vector_draw_get_extents()
+hb_vector_draw_get_funcs()
+hb_vector_draw_get_scale_factor()
+hb_vector_draw_get_transform()
+hb_vector_draw_get_user_data()
+hb_vector_draw_glyph()
+hb_vector_draw_recycle_blob()
+hb_vector_draw_reference()
+hb_vector_draw_render()
+hb_vector_draw_reset()
+hb_vector_draw_set_extents()
+hb_vector_draw_set_glyph_extents()
+hb_vector_draw_set_scale_factor()
+hb_vector_draw_set_transform()
+hb_vector_draw_set_user_data()
+hb_vector_paint_clear_custom_palette_colors()
+hb_vector_paint_create_or_fail()
+hb_vector_paint_destroy()
+hb_vector_paint_get_extents()
+hb_vector_paint_get_funcs()
+hb_vector_paint_get_scale_factor()
+hb_vector_paint_get_transform()
+hb_vector_paint_get_user_data()
+hb_vector_paint_glyph()
+hb_vector_paint_recycle_blob()
+hb_vector_paint_reference()
+hb_vector_paint_render()
+hb_vector_paint_reset()
+hb_vector_paint_set_custom_palette_color()
+hb_vector_paint_set_extents()
+hb_vector_paint_set_foreground()
+hb_vector_paint_set_glyph_extents()
+hb_vector_paint_set_palette()
+hb_vector_paint_set_scale_factor()
+hb_vector_paint_set_transform()
+hb_vector_paint_set_user_data()
+hb_vector_svg_paint_set_flat()
+hb_vector_svg_paint_set_precision()
+hb_vector_svg_set_flat()
+hb_vector_svg_set_precision()
Overview of changes leading to 12.3.2
Tuesday, January 24, 2026
=====================================
- Fix padding `gvar` table during subsetting when the original font uses long
format and subset font uses short format.
- Various fuzzing fixes.
- Fix NULL pointer deference when malloc fails.
Overview of changes leading to 12.3.1
Tuesday, January 20, 2026
=====================================
- Various speed optimizations.
- Build fixes for GCC 4.9.
- Fix NULL pointer deference when malloc fails.
Overview of changes leading to 12.3.0
Saturday, December 27, 2025
=====================================
- Invalid font tables (eg. GSUB/GPOS) are outright rejected, instead of
partially validated and used. This behavior is different from DirectWrite
and HarfRust, and is in line with CoreText. For context and reasoning see:
https://github.com/harfbuzz/harfbuzz/issues/5535#issuecomment-3573738217
- Various speed optimizations:
* AAT shaping: speed up state machine on Apple silicon using a fast-path.
12% faster in LucidaGrande benchmark.
* OpenType shaping: speed up (Chain)Context lookup shaping using a fast-path
and Coverage caching. 20% speedup in NotoNastaliqUrdu benchmark.
* Drawing mega variable-fonts: 30% speedup on GoogleSansFlex benchmark.
* Drawing `VARC` fonts: 5% speedup on varc-hanzi benchmark.
- Always apply synthetic slant around horizontal glyph origin in hb-draw API.
- Fix undefined C++ behavior in some uses of union.
- Remove the disabled by default uniscribe-bug-compatible mode from Indic and
Khmer shapers, that used to be used when testing against Uniscribe shaping
behaviour.
- Support full instancing fonts with v2 `avar` table.
- Various subsetting, build, fuzzing, and documentation fixes.
Overview of changes leading to 12.2.0
Wednesday, November 5, 2025
=====================================
- While Windows platform contain the matching of the ChainContext rules to
within the syllable for those features that are applied per syllable (in
Indic-like and USE shapers), in 2015 we decided that in HarfBuzz we would
allow the backtrack / lookahead parts of the rule to match across syllables.
However, our implementation had a latent bug, causing the backtrack sequence
to be matched within syllable most of the time, and inconsistently so. As
such, and after empirical testing, we have decided to match the Windows
implementation for this, so now both backtrack and lookahead sequences are
contained to within the syllable, just like DirectWrite does.
- Disable legacy `kern` table for most shapers, enabling it only for default,
Arabic, Hangul, and Hebrew shapers.
- When dropping `STAT` table during subsetting, drop also named IDs that are
referenced only by it.
- Don’t apply synthetic slant to glyph origin, fixing horizontal shift in
slanted glyphs.
- Various build and fuzzing fixes.
- Documentation fixes.
Overview of changes leading to 12.1.0
Wednesday, October 1, 2025
=====================================
- Build fixes with GCC 15 on some 32 bit platforms.
- Fix misaligned pointer use.
- New API, `hb_ot_layout_lookup_collect_glyph_alternates()`, to collect glyph
substitutions from single and alternate substitution lookups in one call,
instead of getting substitutions one by one using
`hb_ot_layout_lookup_get_glyph_alternates()`.
- New API
+hb_ot_layout_lookup_collect_glyph_alternates()
Overview of changes leading to 12.0.0
Sunday, September 28, 2025
=====================================
- The major feature of this release is that the Variable Composites /
Components (`VARC` table) addition to the ISO OpenFontFormat has graduated
from experimental, and is now enabled by default. It can be disabled at
compile time by defining the `HB_NO_VAR_COMPOSITES`z macro.
`VARC` table is a new way to store glyph outlines, that allows for better
shape reuse, and can reduce font file size for Chinese, Japanese, Korean, and
some other scripts drastically. Some font design tools provide a similar
feature to designers, known as "smart components". This technology brings the
same idea to the compiled font file. For the format specification, see:
https://github.com/harfbuzz/boring-expansion-spec/blob/main/VARC.md
Test fonts can be found at:
https://github.com/notofonts/noto-cjk-varco/releases/tag/v0.003
The Fontra font editor already supports this technology.
Note that this new format involves just the HarfBuzz draw API and does not
affect shaping.
- Correctly handle `markFilteringSet` lookup field during subsetting.
- Deduplicate features during subsetting.
- Disable “more” buffer messages that give more verbose output when using
buffer messages callbacks, as it has a performance overhead. Users/tools that
need the more verbose messages should define `HB_BUFFER_MESSAGE_MORE` to 1
when building HarfBuzz.
- Shaping and instancing optimizations.
- Fix subsetting issues when building with GCC 12.
Overview of changes leading to 11.5.1
Monday, September 22, 2025
=====================================
- Optimized partial-instancing of fonts with a large number of axes. Now over two times faster.
- Fix C++ STL atomics implementation.
Overview of changes leading to 11.5.0
Saturday, September 12, 2025
=====================================
- Update to Unicode 17.0.0.
- Subsetter optimizations.
Overview of changes leading to 11.4.5
Saturday, August 30, 2025
=====================================
- Bug fixes for “AAT” shaping, and other shaping micro optimizations.
Overview of changes leading to 11.4.4
Tuesday, August 26, 2025
=====================================
- Fix a shaping regression affecting mark glyphs in certain fonts.
- Fix pruning of mark filtering sets when subsetting fonts, which caused changes in shaping behaviour.
Overview of changes leading to 11.4.3
Saturday, August 23, 2025
====================================
- Make shaping fail much faster for certain malformed fonts (e.g., those that
trigger infinite recursion).
- Fix undefined behaviour introduced in 11.4.2.
- Fix detection of the “Cambria Math” font when fonts are scaled, so the
workaround for the bad `MATH` table constant is applied.
Overview of changes leading to 11.4.2
Thursday, August 21, 2025
====================================
- Various performance and memory usage improvements.
- The `hb-shape` command line tool can now be built with the amalgamated
`harfbuzz.cc` source.
- Fix regression in handling version 2 of `avar` table.
- Increase various buffer length limits for better handling of fonts that
generate huge number of glyphs per codepoint (e.g. Noto Sans Duployan)
- Improvements to the harfrust shaper for more accurate testing.
Overview of changes leading to 11.4.1
Wednesday, August 13, 2025
====================================
- Fix clang compiler warnings.
Overview of changes leading to 11.4.0
Wednesday, August 13, 2025
====================================
- General shaping and subsetting speedups.
- Fix in Graphite shaping backend when glyph advances became negative.
- Subsetting improvements, pruning empty mark-attachment lookups.
- Don't use the macro name `_S`, which is reserved by system liberaries.
- Build fixes and speedup.
- Add a `kbts` shaping backend that calls into the `kb_text_shape`
single-header shaping library. This is purely for testing and
performance evaluation and we do NOT recommend using it for any
other purposes.
Overview of changes leading to 11.3.3
Sunday, July 26, 2025
====================================
- Fix but in vertical shaping of fonts without the vmtx table.
Overview of changes leading to 11.3.2
Sunday, July 20, 2025
====================================
- Fix build with non-compliant C++11 compilers that don't recognize
the "and" keyword.
Overview of changes leading to 11.3.1
Sunday, July 20, 2025
====================================
- Fix crasher in the glyph_v_origin function introduced in
11.3.0.
Overview of changes leading to 11.3.0
Sunday, July 20, 2025
====================================
- Speed up handling fonts with very large number of variations:
- Drawing by up to 40%.
- Calculating glyph extents by up to 15%.
- Getting horizontal glyph advances by up to 45%.
- Speed up getting horizontal and vertical glyph advances by up to 24%.
- Significantly speed up vertical text shaping.
- Various documentation improvements.
- Various build improvements.
- Various subsetting improvements.
- Various improvements to Rust font functions (fontations integration) and shaper (HarfRust integration).
- Rename harfruzz option and shaper to harfrust following upstream rename.
- Implement hb_face_reference_blob() for DirectWrite font functions.
- New API:
+hb_font_get_glyph_origins_func_t
+hb_font_get_glyph_h_origins_func_t
+hb_font_get_glyph_v_origins_func_t
+hb_font_funcs_set_glyph_h_origins_func()
+hb_font_funcs_set_glyph_v_origins_func()
+hb_font_get_glyph_h_origins()
+hb_font_get_glyph_v_origins()
Overview of changes leading to 11.2.1
Monday, May 12, 2025
====================================
- Various build improvements.
- Fix build with HB_NO_DRAW and HB_NO_PAINT
- Add an optional “harfruzz” shaper that uses HarfRuzz; an ongoing Rust port of
HarfBuzz shaping. This shaper is mainly used for testing the output of the
Rust implementation.
- Fix regression that caused applying unsafe_to_break() to the whole buffer to
be ignored.
- Update USE data files.
- Fix getting advances of out-of-rage glyph indices in DirectWrite font
functions.
Overview of changes leading to 11.2.0
Monday, April 28, 2025
====================================
- Painting of COLRv1 fonts without clip boxes is now about 10 times faster.
- Synthetic bold/slant of a sub font is now respected, instead of using the parent’s.
- Glyph extents for fonts synthetic bold/slant are now accurately calculated.
- Various build fixes
- New API:
+hb_font_is_synthetic()
+hb_font_draw_glyph_or_fail_func_t
+hb_font_paint_glyph_or_fail_func_t
+hb_font_funcs_set_draw_glyph_or_fail_func()
+hb_font_funcs_set_paint_glyph_or_fail_func()
+hb_font_draw_glyph_or_fail()
+hb_font_paint_glyph_or_fail()
- Deprecated API:
-hb_font_draw_glyph_func_t
-hb_font_paint_glyph_func_t
-hb_font_funcs_set_draw_glyph_func()
-hb_font_funcs_set_paint_glyph_func()
Overview of changes leading to 11.1.0
Wednesday, April 16, 2025
====================================
- Include bidi mirroring variants of the requested codepoints when subsetting.
The new HB_SUBSET_FLAGS_NO_BIDI_CLOSURE can be used to disable this
behaviour.
- Various bug fixes.
- Various build fixes and improvements.
- Various test suite improvements.
- New API:
+HB_SUBSET_FLAGS_NO_BIDI_CLOSURE
Overview of changes leading to 11.0.1
Friday, April 4, 2025
====================================