thorvg/src
Mira Grudzinska 708b24b589 ttf/api: add metrics() api
Introduced the GlyphMetrics struct and the API:
  Result metrics(GlyphMetrics** metrics, uint32_t* size)
This allows retrieving glyph metrics for a given Text object.
The font and utf8 content must be set beforehand using
the font() and text() apis.

Memory for the metrics array is allocated internally by the API.
It is the user's responsibility to free it by calling the same API
with a valid metrics pointer and a nullptr passed as size.

@Issue: https://github.com/thorvg/thorvg/issues/3397
2025-05-22 00:17:39 +02:00
..
bindings capi: added missing mask methods 2025-05-07 10:44:06 +09:00
common gl_engine: revert some wrong change 2025-05-16 02:08:25 +09:00
loaders ttf/api: add metrics() api 2025-05-22 00:17:39 +02:00
renderer ttf/api: add metrics() api 2025-05-22 00:17:39 +02:00
savers renderer: ++wasm build portability 2025-03-12 13:14:13 +09:00
meson.build infra: added double-precison promotion warning 2025-02-12 19:12:06 +09:00