BCGControlBar Pro for MFC
BOOL CBCGPTextFormat::Create ( const CString &  strFontFamily,
float  fFontSize,
long  lFontWeight = FW_REGULAR,
BCGP_FONT_STYLE  fontStyle = BCGP_FONT_STYLE_NORMAL,
LPCTSTR  lpszFontLocale = NULL,
double  dblScaleRatio = 1.0 
)

Creates a text format indirectly.

Parameters
strFontFamilyThe font family.
fFontSizeSize of the font.
lFontWeightThe font weight.
fontStyleThe font style.
lpszFontLocaleThe font locale.
dblScaleRatioThe scale ratio.
Returns
TRUE if it succeeds, FALSE if it fails.