CFx SDK Documentation
2020SP3
|
#include <GiTextStyle.h>
Public Types | |
enum | { kShape = 0x01, kUpsideDown = 0x02, kVertical = 0x04, kUnderlined = 0x08, kOverlined = 0x10, kShxFont = 0x20, kPreLoaded = 0x40, kBackward = 0x80, kShapeLoaded = 0x100, kStriked = 0x200, kUseIntercharSpacing = 0x400, kFixedIntercharSpacing = 0x800 } |
This class provides an interface to the display attributes of text.
<group OdGi_Classes>
Definition at line 51 of file GiTextStyle.h.
anonymous enum |
Enumerator | |
---|---|
kShape | |
kUpsideDown | |
kVertical | |
kUnderlined | |
kOverlined | |
kShxFont | |
kPreLoaded | |
kBackward | |
kShapeLoaded | |
kStriked | |
kUseIntercharSpacing | |
kFixedIntercharSpacing |
Definition at line 79 of file GiTextStyle.h.
OdGiTextStyle::OdGiTextStyle | ( | ) |
OdGiTextStyle::~OdGiTextStyle | ( | ) |
|
inline |
Returns the BigFont filename for this TextStyle.
Definition at line 440 of file GiTextStyle.h.
void OdGiTextStyle::font | ( | OdString & | typeface, |
bool & | bold, | ||
bool & | italic, | ||
int & | charset, | ||
int & | pitchAndFamily | ||
) | const |
Returns the Windows font characteristics for this TextStyle.
typeface | [out] Typeface name of the font. |
bold | [out] True if and only if bold. |
italic | [out] True if and only if italic. |
charset | [out] Windows character set identifier. |
pitchAndFamily | [out] Windows pitch and character family identifier. |
|
inline |
Returns the OdFont associated with the BigFont for this TextStyle.
Definition at line 423 of file GiTextStyle.h.
OdString OdGiTextStyle::getBigFontFilePath | ( | OdDbBaseDatabase * | pDb | ) | const |
Returns the fully qualified BigFont file path associated with this TextStyle.
pDb | [in] Pointer to the database whose OdDbHostAppServices object will be used. |
|
inline |
Returns the CodePage associated with this TextStyle.
Definition at line 491 of file GiTextStyle.h.
|
inline |
Returns the OdFont associated with this TextStyle.
Definition at line 418 of file GiTextStyle.h.
OdString OdGiTextStyle::getFontFilePath | ( | OdDbBaseDatabase * | pDb | ) | const |
Returns the fully qualified font file path associated with this TextStyle.
pDb | [in] Pointer to the database whose OdDbHostAppServices object will be used. |
double OdGiTextStyle::getIntercharSpacing | ( | ) | const |
Returns the interchar spacing for this TextStyle.
|
inline |
Returns true if and only if text is drawn backwards with this TextStyle.
Definition at line 313 of file GiTextStyle.h.
|
inline |
|
inline |
Returns true if and only if text is drawn overlined with this TextStyle.
Definition at line 333 of file GiTextStyle.h.
|
inline |
DOM
Definition at line 341 of file GiTextStyle.h.
|
inline |
Returns true if and only if the font file for this TextStyle is a shape file.
DOM
Definition at line 361 of file GiTextStyle.h.
|
inline |
Returns true if and only if the text font file for this TextStyle marked as loaded.
DOM
Definition at line 108 of file GiTextStyle.h.
|
inline |
DOM
Definition at line 344 of file GiTextStyle.h.
|
inline |
Returns true if and only if text is drawn strike with this TextStyle.
Definition at line 338 of file GiTextStyle.h.
|
inline |
DOM
Definition at line 347 of file GiTextStyle.h.
|
inline |
Returns true if and only if text is drawn underlined with this TextStyle.
Definition at line 328 of file GiTextStyle.h.
|
inline |
Returns true if and only if text is drawn upside down with this TextStyle.
Definition at line 318 of file GiTextStyle.h.
|
inline |
|
inline |
Returns true if and only if text is drawn vertical with this TextStyle.
Definition at line 323 of file GiTextStyle.h.
void OdGiTextStyle::loadStyleRec | ( | OdDbBaseDatabase * | pDb | ) | const |
Loads the font file(s) associated with this TextStyle.
pDb | [in] Pointer to the database whose OdDbHostAppServices object will be used. |
|
inline |
Returns the obliquing angle for this TextStyle.
Definition at line 469 of file GiTextStyle.h.
void OdGiTextStyle::set | ( | const OdString & | fontName, |
const OdString & | bigFontName, | ||
const double | textSize, | ||
const double | xScale, | ||
const double | obliquingAngle, | ||
const double | trackingPercent, | ||
const bool | isBackward, | ||
const bool | isUpsideDown, | ||
const bool | isVertical, | ||
const bool | isOverlined, | ||
const bool | isUnderlined | ||
) |
Sets the parameters of this TextStyle object according to its parameters.
fontName | [in] Font filename. |
bigFontName | [in] BigFont filename. |
textSize | [in] Fixed text size. |
xScale | [in] X-scale (width) factor of text. |
obliquingAngle | [in] Obliquing angle of text. |
trackingPercent | [in] Tracking percent of text. |
isBackward | [in] Controls backwards drawing of text. |
isUpsideDown | [in] Controls upside down drawing of text. |
isVertical | [in] Controls vertical drawing of text. |
isOverlined | [in] Controls overlined drawing of text. |
isUnderlined | [in] Controls overlined drawing of text. |
void OdGiTextStyle::setBackward | ( | bool | isBackward | ) |
Controls the backwards drawing of text with this TextStyle.
isBackwards | [in] Controls backwards drawing. |
Sets this TextStyle to use the specified OdFont as the BigFont.
pBigFont | [in] Pointer to the BigFont. |
Definition at line 395 of file GiTextStyle.h.
Sets the name of the BitFont file associated with this TextStyle.
bigFontFileName | [in] Filename. |
Sets the fully qualified BigFont file path associated with this TextStyle.
bigFontFilePath | [in] BigFont file path. |
Definition at line 196 of file GiTextStyle.h.
|
inline |
Sets the CodePage associated with this TextStyle.
codePage | [in] CodePage. |
Definition at line 500 of file GiTextStyle.h.
Sets the name of the font file associated with this TextStyle.
fontFileName | [in] Filename. |
void OdGiTextStyle::setFont | ( | const OdString & | typeface, |
bool | bold, | ||
bool | italic, | ||
int | charset, | ||
int | pitchAndFamily | ||
) |
Sets this TextStyle to use the specified Windows font characteristics.
typeface | [in] Typeface name of the font. |
bold | [in] Bold if and only if true. |
italic | [in] Italic if and only if true. |
charset | [in] Windows character set identifier. |
pitchAndFamily | [in] Windows pitch and character family identifier. |
Sets this TextStyle to use the specified OdFont characteristics.
pFont | [in] Pointer to the font. |
Definition at line 387 of file GiTextStyle.h.
Sets the fully qualified font file path associated with this TextStyle.
fontFilePath | [in] Font file path. |
Definition at line 185 of file GiTextStyle.h.
void OdGiTextStyle::setIntercharSpacing | ( | double | dSpacing | ) |
Allow to set interchar spacing for this TextStyle.
|
inline |
Controls if fixed interchar spacing used.
isShape | [in] Controls setting. |
DOM
Definition at line 534 of file GiTextStyle.h.
|
inline |
Controls if the font file for this TextStyle is treated as a shape file.
isShape | [in] Controls setting. |
DOM
Definition at line 354 of file GiTextStyle.h.
|
inline |
Controls if interchar spacing used.
isShape | [in] Controls setting. |
DOM
Definition at line 520 of file GiTextStyle.h.
void OdGiTextStyle::setObliquingAngle | ( | double | obliquingAngle | ) |
Sets the obliquing angle for this TextStyle.
obliquingAngle | [in] Obliquing angle. |
void OdGiTextStyle::setOverlined | ( | bool | isOverlined | ) |
Controls the overlined drawing of text with this TextStyle.
overlined | [in] Controls overlined drawing. |
void OdGiTextStyle::setPreLoaded | ( | bool | value | ) | const |
DOM
void OdGiTextStyle::setShapeLoaded | ( | bool | shapeLoaded | ) | const |
Controls if the text font file for this TextStyle marked as loaded.
shapeLoaded | [in] Controls shape loaded. |
DOM
void OdGiTextStyle::setShxFont | ( | bool | value | ) | const |
DOM
void OdGiTextStyle::setStriked | ( | bool | isStriked | ) |
Controls the strike drawing of text with this TextStyle.
overlined | [in] Controls strike drawing. |
Definition at line 510 of file GiTextStyle.h.
void OdGiTextStyle::setTextSize | ( | double | textSize | ) |
Sets the fixed text size for this TextStyle.
textSize | [in] Fixed text size. |
void OdGiTextStyle::setTrackingPercent | ( | double | trackingPercent | ) |
Sets the tracking percent for this TextStyle.
trackingPercent | [in] TrackingPercent [0.75, 4.0]. |
void OdGiTextStyle::setUnderlined | ( | bool | isUnderlined | ) |
Controls the underlined drawing of text with this TextStyle.
underlined | [in] Controls underlined drawing. |
void OdGiTextStyle::setUpsideDown | ( | bool | isUpsideDown | ) |
Controls the upside down drawing of text with this TextStyle.
isUpsideDown | [in] Controls upside down drawing. |
void OdGiTextStyle::setVertical | ( | bool | isVertical | ) |
Controls the vertical drawing of text with this TextStyle.
isVertical | [in] Controls vertical drawing. |
void OdGiTextStyle::setXScale | ( | double | xScale | ) |
Sets the X-scale (width) factor for this TextStyle.
xScale | [in] X-scale factor. |
|
inline |
Definition at line 505 of file GiTextStyle.h.
|
inline |
Returns the fixed text size for this TextStyle.
Definition at line 447 of file GiTextStyle.h.
|
inline |
Returns the tracking percent for this TextStyle.
trackingPercent() has a range of [0.75..4].
Definition at line 481 of file GiTextStyle.h.
|
inline |
Returns a reference to the TTF descriptor for this TextStyle.
Definition at line 428 of file GiTextStyle.h.
|
inline |
Definition at line 432 of file GiTextStyle.h.
|
inline |
Returns the X-scale (width) factor for this TextStyle.
Definition at line 455 of file GiTextStyle.h.