[pango/matthiasc/for-main: 2/4] fcfont: Cosmetics




commit 1d6ef80242e16c5974dddd0a92727c0e6d97407a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 27 19:21:38 2021 -0400

    fcfont: Cosmetics
    
    Remove a few duplicated lines and typos.

 pango/pangofc-font.c    | 2 --
 pango/pangofc-fontmap.c | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 8543b85e..79bc166f 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -103,7 +103,6 @@ pango_fc_font_class_init (PangoFcFontClass *class)
   font_class->get_font_map = pango_fc_font_get_font_map;
   font_class->get_features = pango_fc_font_get_features;
   font_class->create_hb_font = pango_fc_font_create_hb_font;
-  font_class->get_features = pango_fc_font_get_features;
 
   pclass = g_type_class_get_private ((GTypeClass *) class, PANGO_TYPE_FONT);
 
@@ -472,7 +471,6 @@ pango_fc_font_get_metrics (PangoFont     *font,
           /* Compute derived metrics */
           PangoLayout *layout;
           PangoRectangle extents;
-          const char *sample_str = pango_language_get_sample_string (language);
           PangoFontDescription *desc = pango_font_describe_with_absolute_size (font);
           gulong sample_str_width;
 
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index dcc2c08d..388ed2d3 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -155,7 +155,7 @@ struct _PangoFcFontMapPrivate
 
   GHashTable *font_face_data_hash; /* Maps font file name/id -> data */
 
-  /* List of all families availible */
+  /* List of all families available */
   PangoFcFamily **families;
   int n_families;              /* -1 == uninitialized */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]