Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語

Please note that the recommended version of Scilab is 6.0.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Графики > text > xlfont

xlfont

load a font in the graphic context or query loaded font

Calling Sequence

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()

Arguments

font-name

string, name of the font family.

font-filename

string, filename of a true type font.

font-id

integer >= 0 .

fonts

a column vector of font names.

bold

a boolean %t if bold

italic

a boolean %t if italic

Description

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.

Examples

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');
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 14:01:08 CEST 2014