Share

AcGiTextStyle::loadStyleRec

C++

virtual int loadStyleRec(
    AcDbDatabase* pDb = NULL
) const;

Description

This function loads a font (not a style) and is run after AcGiTextStyle::setFileName() or AcGiTextStyle::setBigFontFileName() has set the font file name. This function must be called after loading a True Type font (TTF). It also must be called after changing any AcGiTextStyle properties, such as tracking percent, in order to load the new values into the graphics system.

Return value is a bitmask with the following values:

0x10 = Another bigfont file opened and loaded in place of the bigfont already in use by this AcGiTextStyle object. The new file name has been copied into the AcGiTextStyle object.
0x08 = Another font file opened and loaded in place of the font already in use by this AcGiTextStyle object. The new file name has been copied into the AcGiTextStyle object.
0x04 = The currently specified bigfont file failed to load.
0x02 = The currently specified font file failed to load.
0x01 = Both the current font file and bigfont files were loaded.

Parameters

Parameters Description
pDb Input AcDbDatabase from which to get any database specific text values.

Links

AcGiTextStyle

Was this information helpful?