diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2015-05-01 15:01:05 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2015-05-01 15:01:05 -0400 |
commit | 66d0aaa967043822b5d1119ab92ce6137a1ceabb (patch) | |
tree | dd8e553fad838c0be14843b5d3ddeb104103f5db | |
parent | 4ad91ff6754f99d8c4f3ca1e09e2cc3005edb857 (diff) | |
download | pango-66d0aaa967043822b5d1119ab92ce6137a1ceabb.tar.gz |
Rename pango_fc_font_map_[sg]et_fc_config to pango_fc_font_map_[sg]et_config
Do it before it's too late!
-rw-r--r-- | docs/pango-sections.txt | 4 | ||||
-rw-r--r-- | pango/pangofc-fontmap.c | 32 | ||||
-rw-r--r-- | pango/pangofc-fontmap.h | 4 | ||||
-rw-r--r-- | pango/pangoft2.c | 2 | ||||
-rw-r--r-- | pango/pangoft2.def | 4 |
5 files changed, 23 insertions, 23 deletions
diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt index 96cdd3c0..d6ecf587 100644 --- a/docs/pango-sections.txt +++ b/docs/pango-sections.txt @@ -916,8 +916,8 @@ pango_fc_font_map_add_decoder_find_func pango_fc_font_map_find_decoder pango_fc_font_map_cache_clear pango_fc_font_map_shutdown -pango_fc_font_map_set_fc_config -pango_fc_font_map_get_fc_config +pango_fc_font_map_set_config +pango_fc_font_map_get_config pango_fc_font_description_from_pattern PANGO_FC_FONT_FEATURES PANGO_FC_GRAVITY diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index d4ff2dd6..85dd94cc 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -151,7 +151,7 @@ struct _PangoFcFontMapPrivate guint closed : 1; - FcConfig *fc_config; + FcConfig *config; }; struct _PangoFcFontFaceData @@ -782,7 +782,7 @@ pango_fc_patterns_get_font_pattern (PangoFcPatterns *pats, int i, gboolean *prep FcResult result; if (!pats->match && !pats->fontset) { - pats->match = FcFontMatch (pats->fontmap->priv->fc_config, pats->pattern, &result); + pats->match = FcFontMatch (pats->fontmap->priv->config, pats->pattern, &result); #ifdef FC_PATTERN /* The FC_PATTERN element, which points back to our the original * pattern defeats our hash tables. @@ -802,7 +802,7 @@ pango_fc_patterns_get_font_pattern (PangoFcPatterns *pats, int i, gboolean *prep if (!pats->fontset) { FcResult result; - pats->fontset = FcFontSort (pats->fontmap->priv->fc_config, pats->pattern, FcTrue, NULL, &result); + pats->fontset = FcFontSort (pats->fontmap->priv->config, pats->pattern, FcTrue, NULL, &result); if (pats->match) { FcPatternDestroy (pats->match); @@ -1314,7 +1314,7 @@ pango_fc_font_map_list_families (PangoFontMap *fontmap, * the same family have different spacing values */ GHashTable *temp_family_hash; - fontset = FcFontList (priv->fc_config, pat, os); + fontset = FcFontList (priv->config, pat, os); FcPatternDestroy (pat); FcObjectSetDestroy (os); @@ -1812,7 +1812,7 @@ pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap) } /** - * pango_fc_font_map_set_fc_config: + * pango_fc_font_map_set_config: * @fcfontmap: a #PangoFcFontMap * @fcconfig: (nullable) a #FcConfig, or %NULL * @@ -1831,29 +1831,29 @@ pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap) * Since: 1.38 **/ void -pango_fc_font_map_set_fc_config (PangoFcFontMap *fcfontmap, +pango_fc_font_map_set_config (PangoFcFontMap *fcfontmap, FcConfig *fcconfig) { FcConfig *oldconfig; g_return_if_fail (PANGO_IS_FC_FONT_MAP (fcfontmap)); - oldconfig = fcfontmap->priv->fc_config; + oldconfig = fcfontmap->priv->config; if (fcconfig) FcConfigReference (fcconfig); - fcfontmap->priv->fc_config = fcconfig; + fcfontmap->priv->config = fcconfig; if (oldconfig) FcConfigDestroy (oldconfig); } /** - * pango_fc_font_map_get_fc_config: + * pango_fc_font_map_get_config: * @fcfontmap: a #PangoFcFontMap * - * Fetches FcConfig attached to a font map. See pango_fc_font_map_set_fc_config(). + * Fetches FcConfig attached to a font map. See pango_fc_font_map_set_config(). * * Returns: (nullable): the #FcConfig object attached to @fcfontmap, which * might be %NULL. @@ -1861,11 +1861,11 @@ pango_fc_font_map_set_fc_config (PangoFcFontMap *fcfontmap, * Since: 1.38 **/ FcConfig * -pango_fc_font_map_get_fc_config (PangoFcFontMap *fcfontmap) +pango_fc_font_map_get_config (PangoFcFontMap *fcfontmap) { g_return_val_if_fail (PANGO_IS_FC_FONT_MAP (fcfontmap), NULL); - return fcfontmap->priv->fc_config; + return fcfontmap->priv->config; } static PangoFcFontFaceData * @@ -2297,7 +2297,7 @@ pango_fc_face_describe (PangoFontFace *face) FcResult res; FcPattern *match_pattern; FcPattern *result_pattern; - FcConfig *fc_config = NULL; + FcConfig *config = NULL; if (G_UNLIKELY (!fcfamily)) return pango_font_description_new (); @@ -2325,9 +2325,9 @@ pango_fc_face_describe (PangoFontFace *face) FcDefaultSubstitute (match_pattern); if (fcface->family && fcface->family->fontmap) - fc_config = fcface->family->fontmap->priv->fc_config; + config = fcface->family->fontmap->priv->config; - result_pattern = FcFontMatch (fc_config, match_pattern, &res); + result_pattern = FcFontMatch (config, match_pattern, &res); if (result_pattern) { desc = pango_fc_font_description_from_pattern (result_pattern, FALSE); @@ -2547,7 +2547,7 @@ pango_fc_family_list_faces (PangoFontFamily *family, PangoFcFace **faces; gint num = 0; - fontset = FcFontList (priv->fc_config, pat, os); + fontset = FcFontList (priv->config, pat, os); FcPatternDestroy (pat); FcObjectSetDestroy (os); diff --git a/pango/pangofc-fontmap.h b/pango/pangofc-fontmap.h index 3f81348d..a1057b86 100644 --- a/pango/pangofc-fontmap.h +++ b/pango/pangofc-fontmap.h @@ -198,10 +198,10 @@ GType pango_fc_font_map_get_type (void) G_GNUC_CONST; void pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap); void -pango_fc_font_map_set_fc_config (PangoFcFontMap *fcfontmap, +pango_fc_font_map_set_config (PangoFcFontMap *fcfontmap, FcConfig *fcconfig); FcConfig * -pango_fc_font_map_get_fc_config (PangoFcFontMap *fcfontmap); +pango_fc_font_map_get_config (PangoFcFontMap *fcfontmap); /** * PangoFcDecoderFindFunc: diff --git a/pango/pangoft2.c b/pango/pangoft2.c index ec476856..386e9394 100644 --- a/pango/pangoft2.c +++ b/pango/pangoft2.c @@ -110,7 +110,7 @@ load_fallback_face (PangoFT2Font *ft2font, _pango_ft2_font_map_default_substitute ((PangoFcFontMap *)fcfont->fontmap, sans); - matched = FcFontMatch (pango_fc_font_map_get_fc_config (fcfont->fontmap), sans, &result); + matched = FcFontMatch (pango_fc_font_map_get_config (fcfont->fontmap), sans, &result); if (FcPatternGetString (matched, FC_FILE, 0, &filename2) != FcResultMatch) goto bail1; diff --git a/pango/pangoft2.def b/pango/pangoft2.def index 1f5ec90a..fdcf5cf2 100644 --- a/pango/pangoft2.def +++ b/pango/pangoft2.def @@ -18,9 +18,9 @@ EXPORTS pango_fc_font_map_cache_clear pango_fc_font_map_create_context pango_fc_font_map_find_decoder - pango_fc_font_map_get_fc_config + pango_fc_font_map_get_config pango_fc_font_map_get_type - pango_fc_font_map_set_fc_config + pango_fc_font_map_set_config pango_fc_font_map_shutdown pango_fc_font_unlock_face pango_fc_fontset_key_get_absolute_size |