|
#define | PANGO_SCALE_XX_SMALL ((double)0.5787037037037) |
|
#define | PANGO_SCALE_X_SMALL ((double)0.6944444444444) |
|
#define | PANGO_SCALE_SMALL ((double)0.8333333333333) |
|
#define | PANGO_SCALE_MEDIUM ((double)1.0) |
|
#define | PANGO_SCALE_LARGE ((double)1.2) |
|
#define | PANGO_SCALE_X_LARGE ((double)1.44) |
|
#define | PANGO_SCALE_XX_LARGE ((double)1.728) |
|
#define | PANGO_TYPE_FONT_DESCRIPTION (pango_font_description_get_type ()) |
|
#define | PANGO_TYPE_FONT_METRICS (pango_font_metrics_get_type ()) |
|
#define | PANGO_TYPE_FONT_FAMILY (pango_font_family_get_type ()) |
|
#define | PANGO_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FAMILY, PangoFontFamily)) |
|
#define | PANGO_IS_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FAMILY)) |
|
#define | PANGO_FONT_FAMILY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_FAMILY, PangoFontFamilyClass)) |
|
#define | PANGO_IS_FONT_FAMILY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_FAMILY)) |
|
#define | PANGO_FONT_FAMILY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_FAMILY, PangoFontFamilyClass)) |
|
#define | PANGO_TYPE_FONT_FACE (pango_font_face_get_type ()) |
|
#define | PANGO_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FACE, PangoFontFace)) |
|
#define | PANGO_IS_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FACE)) |
|
#define | PANGO_FONT_FACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_FACE, PangoFontFaceClass)) |
|
#define | PANGO_IS_FONT_FACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_FACE)) |
|
#define | PANGO_FONT_FACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_FACE, PangoFontFaceClass)) |
|
#define | PANGO_TYPE_FONT (pango_font_get_type ()) |
|
#define | PANGO_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT, PangoFont)) |
|
#define | PANGO_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT)) |
|
#define | PANGO_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT, PangoFontClass)) |
|
#define | PANGO_IS_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT)) |
|
#define | PANGO_FONT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT, PangoFontClass)) |
|
#define | PANGO_GLYPH_EMPTY ((PangoGlyph)0x0FFFFFFF) |
|
#define | PANGO_GLYPH_INVALID_INPUT ((PangoGlyph)0xFFFFFFFF) |
|
#define | PANGO_GLYPH_UNKNOWN_FLAG ((PangoGlyph)0x10000000) |
|
#define | PANGO_GET_UNKNOWN_GLYPH(wc) ((PangoGlyph)(wc)|PANGO_GLYPH_UNKNOWN_FLAG) |
|
#define | PANGO_UNKNOWN_GLYPH_WIDTH 10 |
|
#define | PANGO_UNKNOWN_GLYPH_HEIGHT 14 |
|
|
PANGO_AVAILABLE_IN_ALL GType | pango_font_description_get_type (void) G_GNUC_CONST |
|
PANGO_AVAILABLE_IN_ALL PangoFontDescription * | pango_font_description_new (void) |
|
PANGO_AVAILABLE_IN_ALL PangoFontDescription * | pango_font_description_copy (const PangoFontDescription *desc) |
|
PANGO_AVAILABLE_IN_ALL PangoFontDescription * | pango_font_description_copy_static (const PangoFontDescription *desc) |
|
PANGO_AVAILABLE_IN_ALL guint | pango_font_description_hash (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL gboolean | pango_font_description_equal (const PangoFontDescription *desc1, const PangoFontDescription *desc2) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_free (PangoFontDescription *desc) |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_descriptions_free (PangoFontDescription **descs, int n_descs) |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_set_family (PangoFontDescription *desc, const char *family) |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_set_family_static (PangoFontDescription *desc, const char *family) |
|
PANGO_AVAILABLE_IN_ALL const char * | pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_set_style (PangoFontDescription *desc, PangoStyle style) |
|
PANGO_AVAILABLE_IN_ALL PangoStyle | pango_font_description_get_style (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_set_variant (PangoFontDescription *desc, PangoVariant variant) |
|
PANGO_AVAILABLE_IN_ALL PangoVariant | pango_font_description_get_variant (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_set_weight (PangoFontDescription *desc, PangoWeight weight) |
|
PANGO_AVAILABLE_IN_ALL PangoWeight | pango_font_description_get_weight (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_set_stretch (PangoFontDescription *desc, PangoStretch stretch) |
|
PANGO_AVAILABLE_IN_ALL PangoStretch | pango_font_description_get_stretch (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_set_size (PangoFontDescription *desc, gint size) |
|
PANGO_AVAILABLE_IN_ALL gint | pango_font_description_get_size (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_8 void | pango_font_description_set_absolute_size (PangoFontDescription *desc, double size) |
|
PANGO_AVAILABLE_IN_1_8 gboolean | pango_font_description_get_size_is_absolute (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_16 void | pango_font_description_set_gravity (PangoFontDescription *desc, PangoGravity gravity) |
|
PANGO_AVAILABLE_IN_1_16 PangoGravity | pango_font_description_get_gravity (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_42 void | pango_font_description_set_variations_static (PangoFontDescription *desc, const char *variations) |
|
PANGO_AVAILABLE_IN_1_42 void | pango_font_description_set_variations (PangoFontDescription *desc, const char *variations) |
|
PANGO_AVAILABLE_IN_1_42 const char * | pango_font_description_get_variations (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL PangoFontMask | pango_font_description_get_set_fields (const PangoFontDescription *desc) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_unset_fields (PangoFontDescription *desc, PangoFontMask to_unset) |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_merge (PangoFontDescription *desc, const PangoFontDescription *desc_to_merge, gboolean replace_existing) |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_description_merge_static (PangoFontDescription *desc, const PangoFontDescription *desc_to_merge, gboolean replace_existing) |
|
PANGO_AVAILABLE_IN_ALL gboolean | pango_font_description_better_match (const PangoFontDescription *desc, const PangoFontDescription *old_match, const PangoFontDescription *new_match) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL PangoFontDescription * | pango_font_description_from_string (const char *str) |
|
PANGO_AVAILABLE_IN_ALL char * | pango_font_description_to_string (const PangoFontDescription *desc) |
|
PANGO_AVAILABLE_IN_ALL char * | pango_font_description_to_filename (const PangoFontDescription *desc) |
|
PANGO_AVAILABLE_IN_ALL GType | pango_font_metrics_get_type (void) G_GNUC_CONST |
|
PANGO_AVAILABLE_IN_ALL PangoFontMetrics * | pango_font_metrics_ref (PangoFontMetrics *metrics) |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_metrics_unref (PangoFontMetrics *metrics) |
|
PANGO_AVAILABLE_IN_ALL int | pango_font_metrics_get_ascent (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL int | pango_font_metrics_get_descent (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_44 int | pango_font_metrics_get_height (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL int | pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL int | pango_font_metrics_get_approximate_digit_width (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_6 int | pango_font_metrics_get_underline_position (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_6 int | pango_font_metrics_get_underline_thickness (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_6 int | pango_font_metrics_get_strikethrough_position (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_6 int | pango_font_metrics_get_strikethrough_thickness (PangoFontMetrics *metrics) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_ALL GType | pango_font_family_get_type (void) G_GNUC_CONST |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_family_list_faces (PangoFontFamily *family, PangoFontFace ***faces, int *n_faces) |
|
PANGO_AVAILABLE_IN_ALL const char * | pango_font_family_get_name (PangoFontFamily *family) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_4 gboolean | pango_font_family_is_monospace (PangoFontFamily *family) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_44 gboolean | pango_font_family_is_variable (PangoFontFamily *family) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_46 PangoFontFace * | pango_font_family_get_face (PangoFontFamily *family, const char *name) |
|
PANGO_AVAILABLE_IN_ALL GType | pango_font_face_get_type (void) G_GNUC_CONST |
|
PANGO_AVAILABLE_IN_ALL PangoFontDescription * | pango_font_face_describe (PangoFontFace *face) |
|
PANGO_AVAILABLE_IN_ALL const char * | pango_font_face_get_face_name (PangoFontFace *face) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_4 void | pango_font_face_list_sizes (PangoFontFace *face, int **sizes, int *n_sizes) |
|
PANGO_AVAILABLE_IN_1_18 gboolean | pango_font_face_is_synthesized (PangoFontFace *face) G_GNUC_PURE |
|
PANGO_AVAILABLE_IN_1_46 PangoFontFamily * | pango_font_face_get_family (PangoFontFace *face) |
|
PANGO_AVAILABLE_IN_ALL GType | pango_font_get_type (void) G_GNUC_CONST |
|
PANGO_AVAILABLE_IN_ALL PangoFontDescription * | pango_font_describe (PangoFont *font) |
|
PANGO_AVAILABLE_IN_1_14 PangoFontDescription * | pango_font_describe_with_absolute_size (PangoFont *font) |
|
PANGO_AVAILABLE_IN_ALL PangoCoverage * | pango_font_get_coverage (PangoFont *font, PangoLanguage *language) |
|
PANGO_DEPRECATED_IN_1_44 PangoEngineShape * | pango_font_find_shaper (PangoFont *font, PangoLanguage *language, guint32 ch) |
|
PANGO_AVAILABLE_IN_ALL PangoFontMetrics * | pango_font_get_metrics (PangoFont *font, PangoLanguage *language) |
|
PANGO_AVAILABLE_IN_ALL void | pango_font_get_glyph_extents (PangoFont *font, PangoGlyph glyph, PangoRectangle *ink_rect, PangoRectangle *logical_rect) |
|
PANGO_AVAILABLE_IN_1_10 PangoFontMap * | pango_font_get_font_map (PangoFont *font) |
|
PANGO_AVAILABLE_IN_1_46 PangoFontFace * | pango_font_get_face (PangoFont *font) |
|
PANGO_AVAILABLE_IN_1_44 gboolean | pango_font_has_char (PangoFont *font, gunichar wc) |
|
PANGO_AVAILABLE_IN_1_44 void | pango_font_get_features (PangoFont *font, hb_feature_t *features, guint len, guint *num_features) |
|
PANGO_AVAILABLE_IN_1_44 hb_font_t * | pango_font_get_hb_font (PangoFont *font) |
|
PANGO_AVAILABLE_IN_1_50 PangoLanguage ** | pango_font_get_languages (PangoFont *font) |
|
PANGO_AVAILABLE_IN_1_50 GBytes * | pango_font_serialize (PangoFont *font) |
|
PANGO_AVAILABLE_IN_1_50 PangoFont * | pango_font_deserialize (PangoContext *context, GBytes *bytes, GError **error) |
|
#define PANGO_GLYPH_EMPTY ((PangoGlyph)0x0FFFFFFF) |
PANGO_GLYPH_EMPTY:
A PangoGlyph
value that indicates a zero-width empty glpyh.
This is useful for example in shaper modules, to use as the glyph for various zero-width Unicode characters (those passing [func@is_zero_width]). PANGO_GLYPH_INVALID_INPUT:
A PangoGlyph
value for invalid input.
PangoLayout
produces one such glyph per invalid input UTF-8 byte and such a glyph is rendered as a crossed box.
Note that this value is defined such that it has the PANGO_GLYPH_UNKNOWN_FLAG set.
Since: 1.20 PANGO_GLYPH_UNKNOWN_FLAG:
Flag used in PangoGlyph
to turn a gunichar
value of a valid Unicode character into an unknown-character glyph for that gunichar
.
Such unknown-character glyphs may be rendered as a 'hex box'. PANGO_GET_UNKNOWN_GLYPH: @wc: a Unicode character
The way this unknown glyphs are rendered is backend specific. For example, a box with the hexadecimal Unicode code-point of the character written in it is what is done in the most common backends.
Returns: a PangoGlyph
value that means no glyph was found for @wc.
Definition at line 680 of file pango-font.h.
#define PANGO_SCALE_XX_SMALL ((double)0.5787037037037) |
PANGO_SCALE_XX_SMALL:
The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)). PANGO_SCALE_X_SMALL:
The scale factor for two shrinking steps (1 / (1.2 * 1.2)). PANGO_SCALE_SMALL:
The scale factor for one shrinking step (1 / 1.2). PANGO_SCALE_MEDIUM:
The scale factor for normal size (1.0). PANGO_SCALE_LARGE:
The scale factor for one magnification step (1.2). PANGO_SCALE_X_LARGE:
The scale factor for two magnification steps (1.2 * 1.2). PANGO_SCALE_XX_LARGE:
The scale factor for three magnification steps (1.2 * 1.2 * 1.2).
Definition at line 233 of file pango-font.h.
PangoFontMetrics:
A PangoFontMetrics
structure holds the overall metric information for a font.
The information in a PangoFontMetrics
structure may be restricted to a script. The fields of this structure are private to implementations of a font backend. See the documentation of the corresponding getters for documentation of their meaning.
For an overview of the most important metrics, see:
<picture> <source srcset="fontmetrics-dark.png" media="(prefers-color-scheme: dark)">
</picture>
Definition at line 64 of file pango-font.h.