[pango/redo-attrs: 8/13] Drop pango_hb_font_get_size
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/redo-attrs: 8/13] Drop pango_hb_font_get_size
- Date: Sun, 6 Feb 2022 02:39:48 +0000 (UTC)
commit f4c319ba9093e9d8ecadc4baddf3a5f3caf945dd
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 28 20:23:21 2022 -0500
Drop pango_hb_font_get_size
If needed, this should be PangoFontFace api
pango/pango-hbfont.c | 18 ------------------
pango/pango-hbfont.h | 4 +---
2 files changed, 1 insertion(+), 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]