[pango/pango2: 197/301] Drop pango_font_get_languages
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 197/301] Drop pango_font_get_languages
- Date: Wed, 22 Jun 2022 15:53:40 +0000 (UTC)
commit 34dc81610a9ebcf728c90f4934cb14035f702b66
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 11 14:45:34 2022 -0400
Drop pango_font_get_languages
One can use pango_font_face_get_languages instead.
pango/pango-font-private.h | 1 -
pango/pango-font.c | 28 ----------------------------
pango/pango-font.h | 3 ---
3 files changed, 32 deletions(-)
---
diff --git a/pango/pango-font-private.h b/pango/pango-font-private.h
index 85928b233..2423dee7a 100644
--- a/pango/pango-font-private.h
+++ b/pango/pango-font-private.h
@@ -64,7 +64,6 @@ struct _PangoFontClass
guint len,
guint *num_features);
hb_font_t * (* create_hb_font) (PangoFont *font);
- PangoLanguage ** (* get_languages) (PangoFont *font);
gboolean (* is_hinted) (PangoFont *font);
void (* get_scale_factors) (PangoFont *font,
double *x_scale,
diff --git a/pango/pango-font.c b/pango/pango-font.c
index 96f24b097..1ac1e6897 100644
--- a/pango/pango-font.c
+++ b/pango/pango-font.c
@@ -52,12 +52,6 @@ pango_font_finalize (GObject *object)
G_OBJECT_CLASS (pango_font_parent_class)->finalize (object);
}
-static PangoLanguage **
-pango_font_default_get_languages (PangoFont *font)
-{
- return pango_font_face_get_languages (font->face);
-}
-
static gboolean
pango_font_default_is_hinted (PangoFont *font)
{
@@ -106,7 +100,6 @@ pango_font_class_init (PangoFontClass *class G_GNUC_UNUSED)
object_class->finalize = pango_font_finalize;
- class->get_languages = pango_font_default_get_languages;
class->is_hinted = pango_font_default_is_hinted;
class->get_scale_factors = pango_font_default_get_scale_factors;
class->has_char = pango_font_default_has_char;
@@ -336,27 +329,6 @@ pango_font_get_features (PangoFont *font,
PANGO_FONT_GET_CLASS (font)->get_features (font, features, len, num_features);
}
-/**
- * pango_font_get_languages:
- * @font: a `PangoFont`
- *
- * Returns the languages that are supported by @font.
- *
- * If the font backend does not provide this information,
- * %NULL is returned. For the fontconfig backend, this
- * corresponds to the FC_LANG member of the FcPattern.
- *
- * The returned array is only valid as long as the font
- * and its fontmap are valid.
- *
- * Returns: (transfer none) (nullable) (array zero-terminated=1) (element-type PangoLanguage): an array of
`PangoLanguage`
- */
-PangoLanguage **
-pango_font_get_languages (PangoFont *font)
-{
- return PANGO_FONT_GET_CLASS (font)->get_languages (font);
-}
-
/*< private >
* pango_font_get_matrix:
* @font: a `PangoFont`
diff --git a/pango/pango-font.h b/pango/pango-font.h
index ed344dcc8..f839479cb 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -62,9 +62,6 @@ void pango_font_get_features (PangoFont *font,
PANGO_AVAILABLE_IN_ALL
hb_font_t * pango_font_get_hb_font (PangoFont *font);
-PANGO_AVAILABLE_IN_ALL
-PangoLanguage ** pango_font_get_languages (PangoFont *font);
-
PANGO_AVAILABLE_IN_ALL
GBytes * pango_font_serialize (PangoFont *font);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]