SRGraphTitle::m_nStyle

int  SRGraphTitle::m_nStyle

Bitwise flag which defines the font settings for bold, italic and other styles
bit 0 = CX_FONT_BOLD
bit 1 = CX_FONT_ITALIC
bit 2 = CX_FONT_UNDERLINE
bit 3 = CX_FONT_STRIKEOUT
bit 4 = CX_FONT_AUTOSIZE
bit 5 = CX_FONT_EMBOSS
bit 6 = CX_FONT_RELIEF
bit 7 = CX_FONT_NOWRAP

The AUTOSIZE bit may be set to allow the font to be sized by the object using the font. The CalcFontAutoSize() function returns a value used to define the font height. This value may be modified to suit your application. For example. SRGraphDisplay returns the font as 1/25th of the available display height and SRGraphLegend returns it as 1/10th. Your own derived classes may return values based upon other calculations.

Objective Chart 6.01 added the ability to display fonts with an embossed style. When the EMBOSS bit is set fonts will be shown with a light and dark border which gives the impression of the font being "chiselled" from the surrounding color. The RELIEF bit may be set to show the fonts "raised" out of the background or reset to show them chiselled into the background.
This font style is very effective when a dark grey color is used (CXCLR_GRAY70) as the text color.

Objective Chart 6.03 added the capability to wrap text to fit the available space for titles and text panels. You can turn off word wrapping for titles and the text panels by including CX_FONT_NOWRAP in the font style.

See also...

 SetFontStyle  GetFontStyle