diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-12-18 11:52:57 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-12-18 16:43:24 -0500 |
commit | 0fe60735873542a82974f271f44e8616220120fe (patch) | |
tree | 4bd309696b9de135cb1998203532368c123cf06e /pango/fonts.c | |
parent | 9783d3623fc55e23a2141cd31faeffcf4307537d (diff) | |
download | pango-0fe60735873542a82974f271f44e8616220120fe.tar.gz |
Add some docs
Add doc comments for some private API.
Diffstat (limited to 'pango/fonts.c')
-rw-r--r-- | pango/fonts.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index fd4dba21..35527e7a 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -2738,6 +2738,12 @@ pango_font_get_languages (PangoFont *font) return pclass->get_languages (font); } +/*< private > + * pango_font_get_matrix: + * @font: a `PangoFont` + * + * Gets the matrix for the transformation from 'font space' to 'user space'. + */ void pango_font_get_matrix (PangoFont *font, PangoMatrix *matrix) @@ -2747,12 +2753,31 @@ pango_font_get_matrix (PangoFont *font, pclass->get_matrix (font, matrix); } +/*< private > + * pango_font_is_hinted: + * @font: a `PangoFont` + * + * Gets whether this font is hinted. + * + * Returns: %TRUE if @font is hinted + */ gboolean pango_font_is_hinted (PangoFont *font) { return PANGO_FONT_GET_CLASS_PRIVATE (font)->is_hinted (font); } +/*< private > + * pango_font_get_scale_factors: + * @font: a `PangoFont` + * @x_scale: return location for X scale + * @y_scale: return location for Y scale + * + * Gets the font scale factors of the ctm for this font. + * + * The ctm is the matrix set on the context that this font was + * loaded for. + */ void pango_font_get_scale_factors (PangoFont *font, double *x_scale, |