<< Return to Main Index

< Return to Class Index

CGXFont::SetFaceName

CGXFont& SetFaceName(LPCTSTR facename);

facename

Points to a null-terminated string with the facename.

Return Value

Returns a reference to the font object.

Remarks

Initializes the facename.

Support for different character sets

You can assign a specific character set to a cell via SetFaceName().

 Example:

   SetFaceName("Arial"); - default charset will be used
   SetFaceName("Arial (Western)"); - Western charset will be used
   SetFaceName("Arial (Cyrillic)"); - Cyrillic charset will be used

You can specify if the character sets should be displayed in the font page of the stylesheet by setting


   GXGetAppData()->m_bDisplayFontCharset = TRUE;

The default is FALSE (character sets will not be displayed in the font page).

CGXFont

Class Overview | Class Members