summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>2006-02-10 21:47:25 +0000
committerTor Lillqvist <tml@src.gnome.org>2006-02-10 21:47:25 +0000
commitffd467988d75ab2528704c65bff0de02901bf859 (patch)
tree4d842f9a6b5c79b9ca36ff208f538cf3b185bf06 /pango
parent97d41c85c3f4bce3e22f4aba9665182f1ad13e08 (diff)
downloadpango-ffd467988d75ab2528704c65bff0de02901bf859.tar.gz
Rename the recently added pango_win32_pango_font_description_from_logfont()
to pango_win32_font_description_from_logfont(). Add it to pangowin32.def and pango-sections.txt, too.
Diffstat (limited to 'pango')
-rw-r--r--pango/pangowin32-fontmap.c12
-rw-r--r--pango/pangowin32.def1
-rw-r--r--pango/pangowin32.h2
3 files changed, 8 insertions, 7 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 3d3d643e..ea380e2f 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -621,9 +621,9 @@ get_family_name (const LOGFONT *lfp)
/**
* pango_win32_pango_font_description_from_logfont:
- * @lfp: pointer to a LOGFONT
+ * @lfp: a LOGFONT
*
- * Creates a #PangoFontDescription from a LOGFONT.
+ * Creates a #PangoFontDescription that matches the specified LOGFONT.
*
* The face name, italicness and weight fields in the LOGFONT are used
* to set up the resulting #PangoFontDescription. If the face name in
@@ -633,13 +633,13 @@ get_family_name (const LOGFONT *lfp)
* data. If that doesn't work, the face name is converted from the
* system codepage to UTF-8 and that is used.
*
- * Return value: a new #PangoFontDescription that should be freed with
- * pango_font_desciption_free() when no longer needed.
+ * Return value: the newly allocated #PangoFontDescription, which
+ * should be freed using pango_font_desciption_free()
*
* Since: 1.12
*/
PangoFontDescription *
-pango_win32_pango_font_description_from_logfont (const LOGFONT *lfp)
+pango_win32_font_description_from_logfont (const LOGFONT *lfp)
{
PangoFontDescription *description;
gchar *family;
@@ -765,7 +765,7 @@ pango_win32_insert_font (PangoWin32FontMap *win32fontmap,
PING(("g_slist_length(size_info->logfonts)=%d", g_slist_length(size_info->logfonts)));
win32face = g_object_new (PANGO_WIN32_TYPE_FACE, NULL);
- win32face->description = pango_win32_pango_font_description_from_logfont (lfp2);
+ win32face->description = pango_win32_font_description_from_logfont (lfp2);
win32face->cached_fonts = NULL;
diff --git a/pango/pangowin32.def b/pango/pangowin32.def
index 5ca614ba..65d62c4f 100644
--- a/pango/pangowin32.def
+++ b/pango/pangowin32.def
@@ -3,6 +3,7 @@ EXPORTS
pango_win32_font_cache_load
pango_win32_font_cache_new
pango_win32_font_cache_unload
+ pango_win32_font_description_from_logfont
pango_win32_font_entry_get_coverage
pango_win32_font_entry_remove
pango_win32_font_get_glyph_index
diff --git a/pango/pangowin32.h b/pango/pangowin32.h
index dc1aef14..986f3a11 100644
--- a/pango/pangowin32.h
+++ b/pango/pangowin32.h
@@ -106,7 +106,7 @@ PangoWin32FontCache *pango_win32_font_map_get_font_cache (PangoFontMap *fo
LOGFONT *pango_win32_font_logfont (PangoFont *font);
-PangoFontDescription *pango_win32_pango_font_description_from_logfont (const LOGFONT *lfp);
+PangoFontDescription *pango_win32_font_description_from_logfont (const LOGFONT *lfp);
G_END_DECLS