thorvg/inc
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
..
meson.build build: Override dependency for use as subproject 2024-08-19 17:42:06 +09:00
thorvg.h ttf/api: add metrics() api 2025-05-22 00:17:39 +02:00