void
fz_purge_glyph_cache (
fz_context *ctx
)
Purge all the glyphs from the cache.
fz_pixmap *
fz_render_glyph_pixmap (
fz_context *ctx,
fz_font *font,
int gid,
fz_matrix *ctm,
const fz_irect *scissor,
int aa
)
Create a pixmap containing a rendered glyph.
Lookup gid from font, clip it with scissor, and rendering it with aa bits of antialiasing into a new pixmap.
The caller takes ownership of the pixmap and so must free it.
Note: This function is no longer used for normal rendering operations, and is kept around just because we use it in the app. It should be considered “at risk” of removal from the API.
void
fz_render_t3_glyph_direct (
fz_context *ctx,
fz_device *dev,
fz_font *font,
int gid,
fz_matrix trm,
void *gstate,
fz_default_colorspaces *def_cs,
void *fill_gstate,
void *stroke_gstate
)
Nasty PDF interpreter specific hernia, required to allow the interpreter to replay glyphs from a type3 font directly into the target device.
This is only used in exceptional circumstances (such as type3 glyphs that inherit current graphics state, or nested type3 glyphs).
void
fz_prepare_t3_glyph (
fz_context *ctx,
fz_font *font,
int gid
)
Force a type3 font to cache the displaylist for a given glyph id.
This caching can involve reading the underlying file, so must happen ahead of time, so we aren’t suddenly forced to read the file while playing a displaylist back.
void
fz_dump_glyph_cache_stats (
fz_context *ctx,
fz_output *out
)
Dump debug statistics for the glyph cache.
float
fz_subpixel_adjust (
fz_context *ctx,
fz_matrix *ctm,
fz_matrix *subpix_ctm,
unsigned char *qe,
unsigned char *qf
)
Perform subpixel quantisation and adjustment on a glyph matrix.
Returns: the size of the glyph.
Note: This is currently only exposed for use in our app. It should be considered “at risk” of removal from the API.