summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-28 20:23:21 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-28 20:23:21 -0500
commitf4c319ba9093e9d8ecadc4baddf3a5f3caf945dd (patch)
tree432eba9a0f297b69af43e065e248df70226f7263
parentd58342a37e90580cca7d2e55396291ee4af84407 (diff)
downloadpango-f4c319ba9093e9d8ecadc4baddf3a5f3caf945dd.tar.gz
Drop pango_hb_font_get_size
If needed, this should be PangoFontFace api
-rw-r--r--pango/pango-hbfont.c18
-rw-r--r--pango/pango-hbfont.h4
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