| [ << ] | [ < ] | [ 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.
- 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 (floatval) - C function:
voidmgl_set_font_size (HMGLgr,floatval) 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 (floatcm,intdpi=72) Set FontSize by size in pt and picture DPI (default is 16 pt for dpi=72).
- Method on
mglGraph:inline voidSetFontSizeCM (floatcm,intdpi=72) Set FontSize by size in centimeters and picture DPI (default is 0.56 cm = 16 pt).
- Method on
mglGraph:inline voidSetFontSizeIN (floatcm,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.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 13, 2012 using texi2html 5.0.
