| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1.7 Font settings
- Method on
mglGraph(C++, Python):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(C++, Python):voidSetFontDef (const char *fnt) - C function:
voidmgl_set_font_def (HMGLgr,const char *val) Sets the font specification (see section Text printing). Default is ‘rC’ – Roman font centering.
- Method on
mglGraph(C++, Python):voidSetRotatedText (boolval) - C function:
voidmgl_set_rotated_text (HMGLgr,intval) Sets to use or not text rotation along axis.
- Method on
mglGraph(C++, Python):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(C++, Python):voidCopyFont (mglGraph *from) - C function:
voidmgl_copy_font (HMGLgr,HMGLgr_from) Copy font data from another
mglGraphobject.
- Method on
mglGraph(C++, Python):voidRestoreFont () - C function:
voidmgl_restore_font (HMGLgr) Restore font data to default typeface.
- Method on
mglGraph(C++):voidSetFontSizePT (floatcm,intdpi=72) Set FontSize by size in pt and picture DPI (default is 16 pt for dpi=72).
- Method on
mglGraph(C++):inline voidSetFontSizeCM (floatcm,intdpi=72) Set FontSize by size in centimeters and picture DPI (default is 0.56 cm = 16 pt).
- Method on
mglGraph(C++):inline voidSetFontSizeIN (floatcm,intdpi=72) Set FontSize by size in inch and picture DPI (default is 0.22 in = 16 pt).
- Method on
mglGraph(C++):voidSetFont (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] | [ ? ] |
