mupdf
Loading...
Searching...
No Matches
glyph.h File Reference
Include dependency graph for glyph.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct fz_glyph fz_glyph

Functions

fz_irect fz_glyph_bbox (fz_context *ctx, fz_glyph *glyph)
fz_irect fz_glyph_bbox_no_ctx (fz_glyph *src)
int fz_glyph_width (fz_context *ctx, fz_glyph *glyph)
int fz_glyph_height (fz_context *ctx, fz_glyph *glyph)
fz_glyphfz_keep_glyph (fz_context *ctx, fz_glyph *pix)
void fz_drop_glyph (fz_context *ctx, fz_glyph *pix)
fz_pathfz_outline_glyph (fz_context *ctx, fz_font *font, int gid, fz_matrix ctm)

Typedef Documentation

◆ fz_glyph

typedef struct fz_glyph fz_glyph

Glyphs represent a run length encoded set of pixels for a 2 dimensional region of a plane.

Function Documentation

◆ fz_drop_glyph()

void fz_drop_glyph ( fz_context * ctx,
fz_glyph * pix )

Drop a reference and free a glyph.

Decrement the reference count for the glyph. When no references remain the glyph will be freed.

◆ fz_glyph_bbox()

fz_irect fz_glyph_bbox ( fz_context * ctx,
fz_glyph * glyph )

Return the bounding box of the glyph in pixels.

◆ fz_glyph_bbox_no_ctx()

fz_irect fz_glyph_bbox_no_ctx ( fz_glyph * src)

◆ fz_glyph_height()

int fz_glyph_height ( fz_context * ctx,
fz_glyph * glyph )

Return the height of the glyph in pixels.

◆ fz_glyph_width()

int fz_glyph_width ( fz_context * ctx,
fz_glyph * glyph )

Return the width of the glyph in pixels.

◆ fz_keep_glyph()

fz_glyph * fz_keep_glyph ( fz_context * ctx,
fz_glyph * pix )

Take a reference to a glyph.

pix: The glyph to increment the reference for.

Returns pix.

◆ fz_outline_glyph()

fz_path * fz_outline_glyph ( fz_context * ctx,
fz_font * font,
int gid,
fz_matrix ctm )

Look a glyph up from a font, and return the outline of the glyph using the given transform.

The caller owns the returned path, and so is responsible for ensuring that it eventually gets dropped.