summaryrefslogtreecommitdiff
path: root/src/gui_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index e57bb9279..90e6fbd94 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -1988,6 +1988,20 @@ gui_mch_get_font(name, giveErrorIfMissing)
return (GuiFont)font;
}
+/*
+ * Return the name of font "font" in allocated memory.
+ * Don't know how to get the actual name, thus use the provided name.
+ */
+ char_u *
+gui_mch_get_fontname(font, name)
+ GuiFont font;
+ char_u *name;
+{
+ if (name == NULL)
+ return NULL;
+ return vim_strsave(name);
+}
+
int
gui_mch_adjust_charsize()
{