Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
pango-glyph.h File Reference

Go to the source code of this file.

Data Structures

struct  _PangoGlyphGeometry
 
struct  _PangoGlyphVisAttr
 
struct  _PangoGlyphInfo
 
struct  _PangoGlyphString
 

Macros

#define PANGO_TYPE_GLYPH_STRING   (pango_glyph_string_get_type ())
 

Typedefs

typedef typedefG_BEGIN_DECLS struct _PangoGlyphGeometry PangoGlyphGeometry
 
typedef struct _PangoGlyphVisAttr PangoGlyphVisAttr
 
typedef struct _PangoGlyphInfo PangoGlyphInfo
 
typedef struct _PangoGlyphString PangoGlyphString
 
typedef gint32 PangoGlyphUnit
 

Enumerations

enum  PangoShapeFlags { PANGO_SHAPE_NONE = 0 , PANGO_SHAPE_ROUND_POSITIONS = 1 << 0 }
 

Functions

PANGO_AVAILABLE_IN_ALL GType pango_glyph_string_get_type (void) G_GNUC_CONST
 
PANGO_AVAILABLE_IN_ALL PangoGlyphStringpango_glyph_string_new (void)
 
PANGO_AVAILABLE_IN_ALL void pango_glyph_string_set_size (PangoGlyphString *string, int new_len)
 
PANGO_AVAILABLE_IN_ALL PangoGlyphStringpango_glyph_string_copy (PangoGlyphString *string)
 
PANGO_AVAILABLE_IN_ALL void pango_glyph_string_free (PangoGlyphString *string)
 
PANGO_AVAILABLE_IN_ALL void pango_glyph_string_extents (PangoGlyphString *glyphs, PangoFont *font, PangoRectangle *ink_rect, PangoRectangle *logical_rect)
 
PANGO_AVAILABLE_IN_1_14 int pango_glyph_string_get_width (PangoGlyphString *glyphs)
 
PANGO_AVAILABLE_IN_ALL void pango_glyph_string_extents_range (PangoGlyphString *glyphs, int start, int end, PangoFont *font, PangoRectangle *ink_rect, PangoRectangle *logical_rect)
 
PANGO_AVAILABLE_IN_ALL void pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs, const char *text, int length, int embedding_level, int *logical_widths)
 
PANGO_AVAILABLE_IN_ALL void pango_glyph_string_index_to_x (PangoGlyphString *glyphs, const char *text, int length, PangoAnalysis *analysis, int index_, gboolean trailing, int *x_pos)
 
PANGO_AVAILABLE_IN_ALL void pango_glyph_string_x_to_index (PangoGlyphString *glyphs, const char *text, int length, PangoAnalysis *analysis, int x_pos, int *index_, int *trailing)
 
PANGO_AVAILABLE_IN_1_50 void pango_glyph_string_index_to_x_full (PangoGlyphString *glyphs, const char *text, int length, PangoAnalysis *analysis, PangoLogAttr *attrs, int index_, gboolean trailing, int *x_pos)
 
PANGO_AVAILABLE_IN_ALL void pango_shape (const char *text, int length, const PangoAnalysis *analysis, PangoGlyphString *glyphs)
 
PANGO_AVAILABLE_IN_1_32 void pango_shape_full (const char *item_text, int item_length, const char *paragraph_text, int paragraph_length, const PangoAnalysis *analysis, PangoGlyphString *glyphs)
 
PANGO_AVAILABLE_IN_1_44 void pango_shape_with_flags (const char *item_text, int item_length, const char *paragraph_text, int paragraph_length, const PangoAnalysis *analysis, PangoGlyphString *glyphs, PangoShapeFlags flags)
 
PANGO_AVAILABLE_IN_1_50 void pango_shape_item (PangoItem *item, const char *paragraph_text, int paragraph_length, PangoLogAttr *log_attrs, PangoGlyphString *glyphs, PangoShapeFlags flags)
 

Macro Definition Documentation

◆ PANGO_TYPE_GLYPH_STRING

#define PANGO_TYPE_GLYPH_STRING   (pango_glyph_string_get_type ())

Definition at line 150 of file pango-glyph.h.

Typedef Documentation

◆ PangoGlyphGeometry

typedef typedefG_BEGIN_DECLS struct _PangoGlyphGeometry PangoGlyphGeometry

Definition at line 31 of file pango-glyph.h.

◆ PangoGlyphInfo

Definition at line 33 of file pango-glyph.h.

◆ PangoGlyphString

Definition at line 34 of file pango-glyph.h.

◆ PangoGlyphUnit

PangoGlyphUnit:

The PangoGlyphUnit type is used to store dimensions within Pango.

Dimensions are stored in 1/PANGO_SCALE of a device unit. (A device unit might be a pixel for screen display, or a point on a printer.) PANGO_SCALE is currently 1024, and may change in the future (unlikely though), but you should not depend on its exact value.

The PANGO_PIXELS() macro can be used to convert from glyph units into device units with correct rounding.

Definition at line 52 of file pango-glyph.h.

◆ PangoGlyphVisAttr

Definition at line 32 of file pango-glyph.h.

Enumeration Type Documentation

◆ PangoShapeFlags

PangoShapeFlags: @PANGO_SHAPE_NONE: Default value @PANGO_SHAPE_ROUND_POSITIONS: Round glyph positions and widths to whole device units This option should be set if the target renderer can't do subpixel positioning of glyphs

Flags influencing the shaping process.

PangoShapeFlags can be passed to [func@.nosp@m.Pang.nosp@m.o.sha.nosp@m.pe_w.nosp@m.ith_f.nosp@m.lags].

Since: 1.44

Enumerator
PANGO_SHAPE_NONE 
PANGO_SHAPE_ROUND_POSITIONS 

Definition at line 230 of file pango-glyph.h.

230 {
PangoShapeFlags
@ PANGO_SHAPE_ROUND_POSITIONS
@ PANGO_SHAPE_NONE

Function Documentation

◆ pango_glyph_string_copy()

PANGO_AVAILABLE_IN_ALL PangoGlyphString * pango_glyph_string_copy ( PangoGlyphString * string)

◆ pango_glyph_string_extents()

PANGO_AVAILABLE_IN_ALL void pango_glyph_string_extents ( PangoGlyphString * glyphs,
PangoFont * font,
PangoRectangle * ink_rect,
PangoRectangle * logical_rect )

◆ pango_glyph_string_extents_range()

PANGO_AVAILABLE_IN_ALL void pango_glyph_string_extents_range ( PangoGlyphString * glyphs,
int start,
int end,
PangoFont * font,
PangoRectangle * ink_rect,
PangoRectangle * logical_rect )

◆ pango_glyph_string_free()

PANGO_AVAILABLE_IN_ALL void pango_glyph_string_free ( PangoGlyphString * string)

◆ pango_glyph_string_get_logical_widths()

PANGO_AVAILABLE_IN_ALL void pango_glyph_string_get_logical_widths ( PangoGlyphString * glyphs,
const char * text,
int length,
int embedding_level,
int * logical_widths )

◆ pango_glyph_string_get_type()

PANGO_AVAILABLE_IN_ALL GType pango_glyph_string_get_type ( void )

◆ pango_glyph_string_get_width()

PANGO_AVAILABLE_IN_1_14 int pango_glyph_string_get_width ( PangoGlyphString * glyphs)

◆ pango_glyph_string_index_to_x()

PANGO_AVAILABLE_IN_ALL void pango_glyph_string_index_to_x ( PangoGlyphString * glyphs,
const char * text,
int length,
PangoAnalysis * analysis,
int index_,
gboolean trailing,
int * x_pos )

◆ pango_glyph_string_index_to_x_full()

PANGO_AVAILABLE_IN_1_50 void pango_glyph_string_index_to_x_full ( PangoGlyphString * glyphs,
const char * text,
int length,
PangoAnalysis * analysis,
PangoLogAttr * attrs,
int index_,
gboolean trailing,
int * x_pos )

◆ pango_glyph_string_new()

PANGO_AVAILABLE_IN_ALL PangoGlyphString * pango_glyph_string_new ( void )

◆ pango_glyph_string_set_size()

PANGO_AVAILABLE_IN_ALL void pango_glyph_string_set_size ( PangoGlyphString * string,
int new_len )

◆ pango_glyph_string_x_to_index()

PANGO_AVAILABLE_IN_ALL void pango_glyph_string_x_to_index ( PangoGlyphString * glyphs,
const char * text,
int length,
PangoAnalysis * analysis,
int x_pos,
int * index_,
int * trailing )

◆ pango_shape()

PANGO_AVAILABLE_IN_ALL void pango_shape ( const char * text,
int length,
const PangoAnalysis * analysis,
PangoGlyphString * glyphs )

◆ pango_shape_full()

PANGO_AVAILABLE_IN_1_32 void pango_shape_full ( const char * item_text,
int item_length,
const char * paragraph_text,
int paragraph_length,
const PangoAnalysis * analysis,
PangoGlyphString * glyphs )

◆ pango_shape_item()

PANGO_AVAILABLE_IN_1_50 void pango_shape_item ( PangoItem * item,
const char * paragraph_text,
int paragraph_length,
PangoLogAttr * log_attrs,
PangoGlyphString * glyphs,
PangoShapeFlags flags )

◆ pango_shape_with_flags()

PANGO_AVAILABLE_IN_1_44 void pango_shape_with_flags ( const char * item_text,
int item_length,
const char * paragraph_text,
int paragraph_length,
const PangoAnalysis * analysis,
PangoGlyphString * glyphs,
PangoShapeFlags flags )