|
mupdf
|
#include <font.h>
Public Attributes | |
| void * | shaper_handle |
| void(* | destroy )(fz_context *ctx, void *) |
In order to shape a given font, we need to declare it to a shaper library (harfbuzz, by default, but others are possible). To avoid redeclaring it every time we need to shape, we hold a shaper handle and the destructor for it within the font itself. The handle is initialised by the caller when first required and the destructor is called when the fz_font is destroyed.
| void(* fz_shaper_data_t::destroy) (fz_context *ctx, void *) |
| void* fz_shaper_data_t::shaper_handle |