CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef __ODGITEXTSTYLE_H__
25 #define __ODGITEXTSTYLE_H__
35 class OdGiTextStyleImpl;
69 double m_dObliquingAngle;
70 double m_dTrackingPercent;
76 double m_dIntercharSpacing;
91 kUseIntercharSpacing = 0x400,
92 kFixedIntercharSpacing = 0x800
102 bool shapeLoaded)
const;
137 const double textSize,
139 const double obliquingAngle,
140 const double trackingPercent,
141 const bool isBackward,
142 const bool isUpsideDown,
143 const bool isVertical,
144 const bool isOverlined,
145 const bool isUnderlined);
186 const OdString& fontFilePath){m_sFontPath = fontFilePath;}
197 const OdString& bigFontFilePath){m_sBigFontPath = bigFontFilePath;}
238 double trackingPercent);
378 bool bold,
bool italic,
388 OdFont* font){m_pFont = font;}
396 OdFont* pBigFont){m_pBigFont = pBigFont;}
413 int& pitchAndFamily)
const;
430 return m_ttfDescriptor;
434 return m_ttfDescriptor;
442 return m_sBigfontFile;
471 return m_dObliquingAngle;
483 return m_dTrackingPercent;
502 m_Codepage = codePage;
521 bool isUseIntercharSpacing) {
SETBIT(m_flags, kUseIntercharSpacing, isUseIntercharSpacing); }
535 bool isUseIntercharSpacing) {
SETBIT(m_flags, kFixedIntercharSpacing, isUseIntercharSpacing); }
561 #endif // __ODGITEXTSTYLE_H__
#define GETBIT(flags, bit)
bool isUpsideDown() const
void setIsShape(bool isShape)
void font(OdString &typeface, bool &bold, bool &italic, int &charset, int &pitchAndFamily) const
void setBackward(bool isBackward)
GLuint const GLchar * name
bool isUseIntercharSpacing() const
void setShxFont(bool value) const
void setIsFixedIntercharSpacing(bool isUseIntercharSpacing)
void setBigFontFilePath(const OdString &bigFontFilePath)
#define SETBIT(flags, bit, value)
void setIntercharSpacing(double dSpacing)
OdString getBigFontFilePath(OdDbBaseDatabase *pDb) const
void setTrackingPercent(double trackingPercent)
void setUnderlined(bool isUnderlined)
void setFont(const OdString &typeface, bool bold, bool italic, int charset, int pitchAndFamily)
void setXScale(double xScale)
void setPreLoaded(bool value) const
@ kUnderlined
The border is inset.
void setFileName(const OdString &fontFileName)
void setObliquingAngle(double obliquingAngle)
double getIntercharSpacing() const
void setShapeLoaded(bool shapeLoaded) const
OdTtfDescriptor & ttfdescriptor()
OdFont * getBigFont() const
void setBigFont(OdFont *pBigFont)
void setOverlined(bool isOverlined)
void loadStyleRec(OdDbBaseDatabase *pDb) const
void setVertical(bool isVertical)
void setTextSize(double textSize)
void setStriked(bool isStriked)
bool isFixedIntercharSpacing() const
const OdTtfDescriptor & ttfdescriptor() const
void setBigFontFileName(const OdString &bigFontFileName)
void 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)
OdCodePageId getCodePage() const
const OdString & styleName() const
const OdString & bigFontFileName() const
bool isUnderlined() const
OdString getFontFilePath(OdDbBaseDatabase *pDb) const
GLsizei const GLfloat * value
void setUpsideDown(bool isUpsideDown)
double obliquingAngle() const
void setFont(OdFont *font)
bool isShapeLoaded() const
void setCodePage(OdCodePageId codePage)
void setStyleName(const OdString &name)
void setFontFilePath(const OdString &fontFilePath)
double trackingPercent() const
void setIsUseIntercharSpacing(bool isUseIntercharSpacing)