diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-28 20:23:21 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-02-13 14:27:17 -0600 |
commit | 465d13467dc3d15d21590c0bdef54c2a83ce75b4 (patch) | |
tree | 4170ec9358f9f4ec5e3d3a9ef583f69896a0d46c | |
parent | 8ba64fd6d13b38445b1bcd62ffa77e45805b290c (diff) | |
download | pango-465d13467dc3d15d21590c0bdef54c2a83ce75b4.tar.gz |
Drop pango_hb_font_get_size
If needed, this should be PangoFontFace api
-rw-r--r-- | pango/pango-hbfont.c | 18 | ||||
-rw-r--r-- | pango/pango-hbfont.h | 4 |
2 files changed, 1 insertions, 21 deletions
diff --git a/pango/pango-hbfont.c b/pango/pango-hbfont.c index 916c466e..f8b943d6 100644 --- a/pango/pango-hbfont.c +++ b/pango/pango-hbfont.c @@ -1050,24 +1050,6 @@ pango_hb_font_new_for_description (PangoHbFace *face, return pango_hb_font_new (face, size, features, n_features, variations, n_variations, gravity, dpi, matrix); } -/** - * pango_hb_font_get_size: - * @font: a `PangoHbFont` - * - * Returns the size of the font in points, scaled by `PANGO_SCALE`. - * - * This is the same value that was passed as size to [ctor@Pango.HbFont.new]. - * - * Returns: the size of @font - */ -int -pango_hb_font_get_size (PangoHbFont *font) -{ - g_return_val_if_fail (PANGO_IS_HB_FONT (font), 0); - - return font->size; -} - /* }}} */ /* vim:set foldmethod=marker expandtab: */ diff --git a/pango/pango-hbfont.h b/pango/pango-hbfont.h index cd2cabc9..bc0093cf 100644 --- a/pango/pango-hbfont.h +++ b/pango/pango-hbfont.h @@ -47,7 +47,5 @@ PangoHbFont * pango_hb_font_new_for_description (PangoHbFace const PangoFontDescription *description, float dpi, const PangoMatrix *matrix); -G_END_DECLS -PANGO_AVAILABLE_IN_1_52 -int pango_hb_font_get_size (PangoHbFont *font); +G_END_DECLS |