summaryrefslogtreecommitdiff
path: root/pango/pango-fontmap.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-08-27 22:09:29 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-27 22:09:29 -0400
commit8316111583488356b77ec8ea4e5249d902127b3b (patch)
tree7757cfc6ee17cf173d084a8505a6b457473e427b /pango/pango-fontmap.c
parent90a1bb8607c05d585de00bb36488ec4b90247c9b (diff)
downloadpango-8316111583488356b77ec8ea4e5249d902127b3b.tar.gz
Deprecate pango_lookup_aliases()
Part of Bug 377539 - (pango-threadsafe) Make Pango thread-safe
Diffstat (limited to 'pango/pango-fontmap.c')
-rw-r--r--pango/pango-fontmap.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c
index aaea09e2..f6352828 100644
--- a/pango/pango-fontmap.c
+++ b/pango/pango-fontmap.c
@@ -145,32 +145,12 @@ pango_font_map_fontset_add_fonts (PangoFontMap *fontmap,
PangoFontDescription *desc,
const char *family)
{
- char **aliases;
- int n_aliases;
- int j;
PangoFont *font;
- pango_lookup_aliases (family,
- &aliases,
- &n_aliases);
-
- if (n_aliases)
- {
- for (j = 0; j < n_aliases; j++)
- {
- pango_font_description_set_family_static (desc, aliases[j]);
- font = pango_font_map_load_font (fontmap, context, desc);
- if (font)
- pango_fontset_simple_append (fonts, font);
- }
- }
- else
- {
- pango_font_description_set_family_static (desc, family);
- font = pango_font_map_load_font (fontmap, context, desc);
- if (font)
- pango_fontset_simple_append (fonts, font);
- }
+ pango_font_description_set_family_static (desc, family);
+ font = pango_font_map_load_font (fontmap, context, desc);
+ if (font)
+ pango_fontset_simple_append (fonts, font);
}
static PangoFontset *