Useful for profiling — run the encode loop multiple times
and report averaged timing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Report outline, encode, and wall time with per-glyph rates.
Also restore max blob size reporting.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
recycle_blob stores the blob; encode reuses both the blob object
and its data buffer when the buffer is >= needed and < 2x needed.
Otherwise malloc fresh and replace_buffer on the recycled blob.
hb_blob_t::replace_buffer now skips destroy_user_data when the
new data pointer is the same as the old one (same-buffer reuse).
Add explicit destructor to hb_gpu_draw_t for recycled_blob cleanup.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Encodes all glyphs in a font, reports failures and summary
statistics (encoded/empty/failed counts, total and average sizes).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>