Commit Graph
545 Commits
Author SHA1 Message Date
Behdad EsfahbodandClaude Opus 4.6 99c17acbcd [gpu] Add HB_HAS_GPU to harfbuzz-sections.txt
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 03:06:31 -06:00
Behdad EsfahbodandClaude Opus 4.6 0582846c08 [gpu] Simplify shader API: return single string per language
Change hb_gpu_shader_{fragment,vertex}_sources() (array + count)
to hb_gpu_shader_{fragment,vertex}_source() returning a single
const char *.  Each language variant is one complete string.

Simplifies the demo shader compilation and documentation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 17:10:04 -06:00
Behdad EsfahbodandClaude Opus 4.6 d9a81a9cc5 [gpu] Add hb-gpu to docs sections and docs index
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 19:40:13 -06:00
Khaled Hosny 5ad3909af4 13.2.0 2026-03-19 00:45:24 +02:00
Khaled Hosny 257769a9d2 [ot-shape] Add hb_ot_shape_get_buffer_format_serial() (#5857) 2026-03-18 10:24:52 -06:00
Khaled Hosny 8168bf5fe0 [docs] Remove note about old HarfBuzz
Old HarfBuzz is long long dead that this note is likely to just confuse
people now.
2026-03-14 10:51:47 +02:00
Khaled Hosny 8fbf89c638 [docs] Re-order API sections a bit
Keep libharfbuzz APIs together, except for the integration APIs which
now comes last.
2026-03-13 15:28:29 +02:00
Behdad Esfahbod 3786b83fa6 [amalgamation] Add HB_HAS_SUBSET and share SVG helpers (#5835)
Add HB_HAS_SUBSET to hb-features.h and wire it through the same
HAVE_* feature plumbing used by the other HB_HAS_* macros.

Refactor the raster/vector SVG helper code so the duplicated
private helpers live in shared internal headers, avoiding
duplicate definitions when sources are combined in a single
translation unit.

Testing: meson compile -C build

Assisted-by: OpenAI Codex
2026-03-12 08:32:37 -06:00
Behdad Esfahbod 4da15dadff [meson] Add raster/vector feature macros
Raster and vector libraries were configurable, but hb-features.h.in
did not expose matching HB_HAS_* macros.

Set HAVE_RASTER and HAVE_VECTOR during configuration, include both
features in the generated hb-features.h list, and add them to the
gtk-doc section index.

Testing: meson test -C build

Assisted-by: OpenAI Codex
2026-03-12 02:53:11 -03:00
Khaled Hosny 68d19d6964 13.1.0 2026-03-11 04:01:41 +02:00
Behdad Esfahbod dfc64f02c0 raster: add PNG serialization API for images 2026-03-09 23:37:36 +02:00
Khaled Hosny f5190a73aa [usermanual] Document hb-info, hb-raster, and hb-vector 2026-03-08 00:03:57 +02:00
Khaled Hosny 5408e599f6 [usermanual] Move code blocks inside list item 2026-03-08 00:03:57 +02:00
Khaled Hosny c27ef57976 [usermanual] Improve program listings
Content inside <programlisting> tags is sensitive to white space, and the
extra indentation appear in the output.
2026-03-08 00:03:57 +02:00
Khaled Hosny c4eafe606c [docs] Move hb-raster and hb-vector to their own section 2026-03-08 00:03:57 +02:00
Khaled Hosny a0fc099681 13.0.0 2026-03-04 22:28:50 +02:00
Behdad EsfahbodandClaude Opus 4.6 6a1c028a61 [buffer] Add hb_buffer_changed() (#5755)
* [buffer] Add hb_buffer_changed()

To be called by message callbacks if they modify buffer glyph indices,
to update internal caches (currently the buffer digest).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [buffer] Implement changed() callback and hook up to OT shaper.

* Only install buffer changed() callback if messaging enabled

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 09:16:54 -07:00
Behdad Esfahbod 7b73346253 [docs] Export hb-vector custom palette APIs in sections 2026-02-26 17:21:48 -03:00
Behdad Esfahbod fb88a3127c [docs] List new hb-raster custom palette APIs 2026-02-25 15:43:37 -03:00
Behdad Esfahbod 9f464bf067 [vector,raster] Export new getter APIs in headers/docs 2026-02-24 19:32:49 -03:00
Behdad Esfahbod 3f39f12e20 [vector,raster] Add get_extents APIs for draw/paint contexts 2026-02-24 19:25:35 -03:00
Behdad Esfahbod 40ec999ace [docs] Drop 12.2.0 index and use placeholder XSince for new SVG range API 2026-02-24 18:35:06 -03:00
Behdad Esfahbod ebdb23879d [ot-color] Add SVG document glyph-range API and use in vector cache 2026-02-24 16:39:39 -03:00
Behdad Esfahbod 9207a61b35 [ot-color][vector] Add SVG doc-index API and cache by document index 2026-02-24 14:52:45 -03:00
Behdad Esfahbod 86e0e55b70 [vector] Make format constructor-time and drop set_format APIs 2026-02-24 14:01:39 -03:00
Behdad Esfahbod ba6de29374 [docs] Remove libharfbuzz-vector design doc 2026-02-24 12:41:09 -03:00
Behdad Esfahbod edf193095a [docs] Add hb-vector API section and raster glyph entries 2026-02-24 12:37:37 -03:00
Behdad Esfahbod 3c099ee71c Add initial libharfbuzz-vector SVG backend and utility rename 2026-02-24 08:52:34 -03:00
Behdad Esfahbod bcd19a4c39 raster: add draw/paint scale-factor API 2026-02-24 05:02:35 -03:00
Behdad Esfahbod 70f45cbdcd raster-draw: hardwire output format to A8 2026-02-24 04:52:44 -03:00
Behdad Esfahbod 5ea04afcda raster: adopt create_or_fail and strict render semantics 2026-02-24 04:46:51 -03:00
Behdad Esfahbod 0727834314 raster-image: consolidate configuration API 2026-02-24 04:22:51 -03:00
Behdad Esfahbod 742f79da08 raster: remove extents_from_glyph_extents API
Remove hb_raster_extents_from_glyph_extents and switch callers to the new transform-aware set_glyph_extents APIs on raster draw/paint. Also add test coverage for transformed glyph extents and update section symbol listings.
2026-02-23 12:10:41 -03:00
Behdad Esfahbod 5c01a87ae5 docs: add hb_raster_extents_from_glyph_extents section entry 2026-02-22 15:20:10 -03:00
Behdad Esfahbod 8a087adaa4 hb-raster: Fix docs 2026-02-22 02:48:45 -03:00
Behdad Esfahbod 5e4c105c6f cairo: remove raster mode API and hb-view --raster 2026-02-22 00:20:31 -03:00
Behdad EsfahbodandClaude Opus 4.6 7d008bf735 hb-raster: add hb_raster_draw_recycle_image() for zero-malloc rendering
Add API to recycle a rendered image back to the rasterizer.  The draw
object keeps the image and its buffer for reuse by the next render()
call.  After the first render+recycle cycle, render() does zero
mallocs (the image struct and pixel buffer are both reused).

Also switch hb_raster_image_t to use hb_vector_t<uint8_t> for its
pixel buffer so resize tracking is automatic.

Update hb-raster-all benchmark to use recycling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-21 17:29:05 -03:00
Behdad EsfahbodandClaude Opus 4.6 0b97882e58 hb-raster: add GTK-Doc comments for all public API
Document all hb_raster_image_t and hb_raster_draw_t functions with
GTK-Doc style comments.  Add SECTION header for hb-raster.  Fix
hb_cairo_font_face_set/get_raster() doc comments to use XSince and
standard Return value format.

Also add hb-raster section to harfbuzz-sections.txt and include
hb-raster.xml in harfbuzz-docs.xml Integration API chapter.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-21 17:29:05 -03:00
Khaled Hosny a790c38b78 [docs] Fix build 2025-10-01 08:26:58 +03:00
Khaled Hosny cb59b347ca 12.1.0 2025-10-01 08:24:34 +03:00
Behdad Esfahbod 4a26e289f7 Add hb_ot_layout_lookup_collect_glyph_alternates() (#5367)
* [map] Massage operator << overloads

* [ot-layout] Add +hb_ot_layout_lookup_collect_glyph_alternates

To collect all glyph mapping from SingleSubst or AlternateSubst
lookups in one call.  Needed by FreeType autohinter for performance.

New API:
+hb_ot_layout_lookup_collect_glyph_alternates()

* [layout] Change hb_ot_layout_lookup_collect_glyph_alternates() API

https://github.com/harfbuzz/harfbuzz/pull/5367#discussion_r2149019638
2025-09-30 13:31:04 -06:00
Count_MHM 025f72b240 Make example variable names consistent 2025-08-03 18:30:54 -06:00
Khaled Hosny 30e7af11ee 11.3.0 2025-07-20 21:40:37 +03:00
Behdad Esfahbod 1835c088db [font] Add get_glyph_[hv]_origins callbacks (plural)
Unused so far, and unimplemented in backends.
2025-07-20 07:19:23 -06:00
Corentin Noël 37627c6756 [docs] Specify the online location of the documentation
Move the releaseinfo under the bookinfo as it is what gtk-doc expects.

This specifically allows the online location to also be exported into the devhelp2
file.
2025-06-13 11:27:56 -06:00
Khaled Hosny 63cdd745ff 11.2.0 2025-04-28 15:56:32 +03:00
Behdad Esfahbod 38db1facf2 [paint] Change back return type of paint_glyph() to void
Add new "_or_fail" variants of draw_glyph and paint_glyph

New API:
+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()
2025-04-23 18:23:51 -06:00
Behdad Esfahbod 853720ead4 [font] Add hb_font_is_synthetic()
New API:
+hb_font_is_synthetic()
2025-04-22 22:51:40 -06:00
Garret Rieger a1e587b75a [subset] Add hb_subset_cff_get_charstrings_index and hb_subset_cff2_get_charstrings_index.
These methods allow retrieving the entire charstrings index structure from a CFF or CFF2 table.
2025-03-31 16:28:28 -06:00
Garret Rieger ae8b288db7 [subset] Correctly handle lifetime of charstrings data blob returned by hb_subset_cff_get_charstring_data. 2025-03-27 22:07:06 +00:00