| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.2.6 Font settings
- MGL command: font 'fnt' [
val=6] Font style for text and labels (see text). Initial style is ’fnt’=’:rC’ give Roman font with centering. Parameter
valsets the size of font for tick and axis labels. Default font size of axis labels is 1.4 times large than for tick labels. For more detail, see Font styles.
- MGL command: rotatetext
val - Method on
mglGraph:voidSetRotatedText (boolval) - C function:
voidmgl_set_rotated_text (HMGLgr,intval) Sets to use or not text rotation.
- MGL command: loadfont ['name'='']
- Method on
mglGraph:voidLoadFont (const char *name,const char *path="") - C function:
voidmgl_load_font (HMGLgr,const char *name,const char *path) Load font typeface from path/name. Empty name will load default font.
- Method on
mglGraph:voidSetFontDef (const char *fnt) - C function:
voidmgl_set_font_def (HMGLgr,const char *val) Sets the font specification (see Text printing). Default is ‘rC’ – Roman font centering.
- Method on
mglGraph:voidSetFontSize (mrealval) - C function:
voidmgl_set_font_size (HMGLgr,mrealval) 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:voidSetFontSizePT (mrealcm,intdpi=72) Set FontSize by size in pt and picture DPI (default is 16 pt for dpi=72).
- Method on
mglGraph:inline voidSetFontSizeCM (mrealcm,intdpi=72) Set FontSize by size in centimeters and picture DPI (default is 0.56 cm = 16 pt).
- Method on
mglGraph:inline voidSetFontSizeIN (mrealcm,intdpi=72) Set FontSize by size in inch and picture DPI (default is 0.22 in = 16 pt).
- Method on
mglGraph:voidLoadFont (const char *name,const char *path="") - C function:
voidmgl_load_font (HMGLgr,const char *name,const char *path) Load font typeface from path/name.
- Method on
mglGraph:voidCopyFont (mglGraph *from) - C function:
voidmgl_copy_font (HMGLgr,HMGLgr_from) Copy font data from another
mglGraphobject.
- Method on
mglGraph:voidRestoreFont () - C function:
voidmgl_restore_font (HMGLgr) Restore font data to default typeface.
- C function:
voidmgl_def_font (const char *name,const char *path) Load default font typeface (for all newly created HMGL/mglGraph objects) from path/name.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on March 21, 2014 using texi2html 5.0.
