xlfont — load a font in the graphic context or query loaded font
xlfont(font-name) xlfont(font-filename) xlfont('reset') xlfont(font-name,font-id) xlfont(font-filename,font-id) xlfont(font-name,font-id,bold) xlfont(font-name,font-id,bold,italic) fonts=xlfont('AVAILABLE_FONTS') fonts=xlfont()
string, name of the font family.
string, filename of a true type font.
integer >= 0 .
a column vector of font names.
a boolean %t if bold
a boolean %t if italic
Without any argument, xlfont()
returns the list
of currently loaded fonts.
xlfont('AVAILABLE_FONTS') returns list of fonts available on your system.
xlfont('reset') reset to initial index list of fonts.
With arguments, xlfont
is used to load a new font
at different sizes in the graphics context.
Default family fonts are "Monospaced" (0), "Symbol" (1), "Serif"
(2), "Serif Italic" (3), "Serif Bold" (4), "Serif Bold Italic" (5),
"SansSerif" (6), "SansSerif Italic" (7), "SansSerif Bold" (8), "SansSerif
Bold Italic" (9). These default fonts are automatically loaded when needed
and so xlfont
is not really required for them. In fact
xlfont
is essentially useful to load a new font.
xlfont('reset'); xlfont() // Caution : this example may not work if your system have not Monospaced font. xlfont("Monospaced",10,%t,%t); xstring(1,0,'A title'); figure_entity = gcf(); axes_entity = figure_entity.children; title_entity = axes_entity.children; title_entity.font_style = 10; xlfont('reset');