mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 17:19:17 +01:00
NEWS: Document get_funcs signature change and draw helpers
* Add the six raster/vector/gpu draw+paint get_funcs signature change to "Changed API, general". * List hb_vector_draw_get_format / hb_vector_paint_get_format under "New API, Vector library". * Add a "New API, Draw" section for the new shape helpers (hb_draw_line, hb_draw_rectangle, hb_draw_circle) and the hb_draw_line_cap_t / HB_DRAW_LINE_CAP_* constants that came in earlier this dev cycle but weren't yet listed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
48fdb0ec34
commit
88dc4c9926
1 file changed
+24
@@ -72,6 +72,15 @@ Overview of changes leading to NEXT (REPLACEME)
|
||||
shader clips against it the same way it clips against
|
||||
glyph outlines).
|
||||
|
||||
- New API, Draw:
|
||||
+hb_draw_line()
|
||||
+hb_draw_rectangle()
|
||||
+hb_draw_circle()
|
||||
+hb_draw_line_cap_t
|
||||
+HB_DRAW_LINE_CAP_BUTT
|
||||
+HB_DRAW_LINE_CAP_ROUND
|
||||
+HB_DRAW_LINE_CAP_SQUARE
|
||||
|
||||
- New API, Paint:
|
||||
+hb_paint_push_group_for()
|
||||
+hb_paint_funcs_set_push_group_for_func()
|
||||
@@ -129,11 +138,13 @@ Overview of changes leading to NEXT (REPLACEME)
|
||||
+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_set_svg_prefix()
|
||||
+hb_vector_draw_get_svg_prefix()
|
||||
+hb_vector_paint_clear()
|
||||
+hb_vector_paint_get_precision()
|
||||
+hb_vector_paint_get_format()
|
||||
+hb_vector_paint_get_foreground()
|
||||
+hb_vector_paint_get_palette()
|
||||
+hb_vector_paint_glyph_or_fail()
|
||||
@@ -185,6 +196,19 @@ Overview of changes leading to NEXT (REPLACEME)
|
||||
|
||||
- Changed API, 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.
|
||||
|
||||
|
||||
Overview of changes leading to 14.1.0
|
||||
|
||||
Reference in new issue
Block a user