[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1.7 Font settings
- Method on
mglGraph
(C++, Python):void
SetFontSize (float
val) - C function:
void
mgl_set_font_size (HMGL
gr,float
val) Sets the size of font for tick and axis labels. Default font size of axis labels is 1.4 times large than for tick labels.
- Method on
mglGraph
(C++, Python):void
SetFontDef (const char *
fnt) - C function:
void
mgl_set_font_def (HMGL
gr,const char *
val) Sets the font specification (see section Text printing). Default is ‘rC’ – Roman font centering.
- Method on
mglGraph
(C++, Python):void
SetRotatedText (bool
val) - C function:
void
mgl_set_rotated_text (HMGL
gr,int
val) Sets to use or not text rotation along axis.
- Method on
mglGraph
(C++, Python):void
LoadFont (const char *
name,const char *
path=""
) - C function:
void
mgl_load_font (HMGL
gr,const char *
name,const char *
path) Load font typeface from path/name.
- Method on
mglGraph
(C++, Python):void
CopyFont (mglGraph *
from) - C function:
void
mgl_copy_font (HMGL
gr,HMGL
gr_from) Copy font data from another
mglGraph
object.
- Method on
mglGraph
(C++, Python):void
RestoreFont () - C function:
void
mgl_restore_font (HMGL
gr) Restore font data to default typeface.
- Method on
mglGraph
(C++):void
SetFontSizePT (float
cm,int
dpi=72
) Set FontSize by size in pt and picture DPI (default is 16 pt for dpi=72).
- Method on
mglGraph
(C++):inline void
SetFontSizeCM (float
cm,int
dpi=72
) Set FontSize by size in centimeters and picture DPI (default is 0.56 cm = 16 pt).
- Method on
mglGraph
(C++):inline void
SetFontSizeIN (float
cm,int
dpi=72
) Set FontSize by size in inch and picture DPI (default is 0.22 in = 16 pt).
- Method on
mglGraph
(C++):void
SetFont (mglFont *
f) Sets font typeface. Note that each mglFont instance can be used with ONLY ONE mglGraph instance at a moment of time! If
f==""
then default font is used.
- Method on
mglGraph
(C++):inline mglFont *
GetFont () Gets current typeface. Note that this variable can be deleted at next SetFont() call!
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |