manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1.7 Font settings

General option of mglGraph: float FontSize

The size of font for tick and axis labels. Default font size of axis labels is 1.4 times large than for tick labels.

General option of mglGraph: char FontDef[32]

Font specification (see section Text printing). Default is “rC” – Roman font centering.

General option of mglGraph: bool RotatedText

Set to use or not text rotation along axis.

Method on mglGraph: 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: 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: 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: 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==NULL then default font is used.

Method on mglGraph: inline mglFont * GetFont ()

Gets current typeface. Note that this variable can be deleted at next SetFont() call!


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.