upipe-freetype/upipe_freetype.h header reference

freetype2 based text renderer More

Header inclusion [link] 

Members [link] 

Types [link] 

Functions [link] 

Description [link] 

freetype2 based text renderer

Members detail [link] 

#define UPIPE_FREETYPE_SIGNATURE [link] 

This macro is declared in upipe-freetype/upipe_freetype.h source file, line 40.

#define _UPIPE_FREETYPE_UPIPE_FREETYPE_H_ [link] 

This macro is declared in upipe-freetype/upipe_freetype.h source file, line 32.

struct upipe_freetype_bbox [link] 

This struct is declared in upipe-freetype/upipe_freetype.h source file, line 72.

This struct describes a string bounding box.

FieldDescription
int x;horizontal position
int y;vertical position
uint64_t height;box height
uint64_t width;box width

enum upipe_freetype_command [link] 

This enum is declared in upipe-freetype/upipe_freetype.h source file, line 53.

This enum enumerates the freetype pipe commands.

IdentifierValueDescription
UPIPE_FREETYPE_SENTINEL0x8000sentinel
UPIPE_FREETYPE_GET_BBOX1get the string bounding box (const char *, struct upipe_freetype_bbox *)
UPIPE_FREETYPE_SET_PIXEL_SIZE2set the freetype pixel size (unsigned)
UPIPE_FREETYPE_SET_BASELINE3set the baseline position in the buffer (int64_t, int64_t)
UPIPE_FREETYPE_GET_TEXT4get the current text (const char **)
UPIPE_FREETYPE_GET_METRICS5get the font global metrics (struct upipe_freetype_metrics *)
UPIPE_FREETYPE_GET_ADVANCE6get a string advance value (const char *, uint64_t *, uint64_t *)

int upipe_freetype_get_advance(struct upipe *upipe, const char *str, uint64_t *advance_p, uint64_t *units_per_EM_p) [link] 

This function is declared in upipe-freetype/upipe_freetype.h source file, line 136.

This function gets the advance value for a string.

Parameter list:

  • upipe: description structure of the pipe
  • str: string to get the advance value
  • advance_p: filled with the compute advance value
  • units_per_EM_p: filled with the units per EM of the font

The return value is an error code

int upipe_freetype_get_bbox(struct upipe *upipe, const char *str, struct upipe_freetype_bbox *bbox_p) [link] 

This function is declared in upipe-freetype/upipe_freetype.h source file, line 93.

This function gets the bounding box for a string at the current pixel size.

Parameter list:

  • upipe: description structure of the pipe
  • str: a string
  • bbox_p: filled with the x and y min and max of the rendered string

The return value is an error code

int upipe_freetype_get_metrics(struct upipe *upipe, struct upipe_freetype_metrics *metrics) [link] 

This function is declared in upipe-freetype/upipe_freetype.h source file, line 120.

This function gets the global font metrics.

Parameter list:

  • upipe: description structure of the pipe
  • metrics: filled with the string metrics

The return value is an error code

int upipe_freetype_get_text(struct upipe *upipe, const char **text_p) [link] 

This function is declared in upipe-freetype/upipe_freetype.h source file, line 177.

This function gets the current text.

Parameter list:

  • upipe: description structure of the pipe
  • text_p: filled with the current text

The return value is an error code

struct upipe_freetype_metrics [link] 

This struct is declared in upipe-freetype/upipe_freetype.h source file, line 99.

This struct describes the global font metrics.

FieldDescription
int units_per_EM;
struct <anonymous> {
long min;
long max;
} x;
struct <anonymous> {
long min;
long max;
} y;

struct upipe_mgr * upipe_freetype_mgr_alloc(void ) [link] 

This function is declared in upipe-freetype/upipe_freetype.h source file, line 186.

This function returns the freetype pipes manager.

The return value is a pointer to the freetype pipes manager

int upipe_freetype_set_baseline(struct upipe *upipe, int64_t xoff, int64_t yoff) [link] 

This function is declared in upipe-freetype/upipe_freetype.h source file, line 164.

This function sets the baseline start position.

Parameter list:

  • upipe: description structure of the pipe
  • xoff: offset from the left of the buffer
  • yoff: offset from the top of the buffer

The return value is an error code

int upipe_freetype_set_pixel_size(struct upipe *upipe, unsigned int pixel_size) [link] 

This function is declared in upipe-freetype/upipe_freetype.h source file, line 150.

This function sets the freetype pixel size.

Parameter list:

  • upipe: description structure of the pipe
  • pixel_size: pixel size to set

The return value is an error code

enum uprobe_freetype_event [link] 

This enum is declared in upipe-freetype/upipe_freetype.h source file, line 44.

This enum enumerates the freetype probe events.

IdentifierValueDescription
UPROBE_FREETYPE_SENTINEL0x8000sentinel
UPROBE_FREETYPE_NEW_TEXT1new input text received (const char *)
Valid XHTML 1.0 StrictGenerated by cmassiot on Sun Dec 14 18:31:17 2025 using MkDoc