summaryrefslogtreecommitdiffstats
path: root/src/gui_photon.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-12 11:33:30 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-12 11:33:30 +0000
commitd8b0cf1cc5231e19116cc3208b680a07f842bfe9 (patch)
treeef1ddd7a76427ea943296528bce82c73d5c34a1d /src/gui_photon.c
parent293ee4d421cd55f4a3c014c1c26edf02f718cc83 (diff)
updated for version 7.0022
Diffstat (limited to 'src/gui_photon.c')
-rw-r--r--src/gui_photon.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui_photon.c b/src/gui_photon.c
index f2bd5f09b0..b7c92df3dd 100644
--- a/src/gui_photon.c
+++ b/src/gui_photon.c
@@ -2986,6 +2986,7 @@ gui_mch_init_font(char_u *vim_font_name, int fontset)
vim_free( font_name );
return( FAIL );
}
+
gui_mch_free_font( gui.norm_font );
gui.norm_font = font_tag;
}
@@ -3046,6 +3047,20 @@ gui_mch_get_font(char_u *vim_font_name, int report_error)
return( FAIL );
}
+/*
+ * 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);
+}
+
void
gui_mch_set_font(GuiFont font)
{