24#ifndef __ODGITEXTSTYLE_H__
25#define __ODGITEXTSTYLE_H__
35class OdGiTextStyleImpl;
68 double m_dObliquingAngle;
69 double m_dTrackingPercent;
75 double m_dIntercharSpacing;
90 kUseIntercharSpacing = 0x400,
91 kFixedIntercharSpacing = 0x800,
92 kNoUsePreferableFont = 0x1000
101 bool shapeLoaded)
const;
155 const double textSize,
157 const double obliquingAngle,
158 const double trackingPercent,
159 const bool isBackward,
160 const bool isUpsideDown,
161 const bool isVertical,
162 const bool isOverlined,
163 const bool isUnderlined);
200 const OdString& fontFilePath){m_sFontPath = fontFilePath;}
210 const OdString& bigFontFilePath){m_sBigFontPath = bigFontFilePath;}
249 double trackingPercent);
425 bool bold,
bool italic,
435 OdFont* font){m_pFont = font;}
443 OdFont* pBigFont){m_pBigFont = pBigFont;}
460 int& pitchAndFamily)
const;
477 return m_ttfDescriptor;
481 return m_ttfDescriptor;
489 return m_sBigfontFile;
518 return m_dObliquingAngle;
530 return m_dTrackingPercent;
549 m_Codepage = codePage;
574 bool isUseIntercharSpacing) {
SETBIT(m_flags, kUseIntercharSpacing, isUseIntercharSpacing); }
588 bool isUseIntercharSpacing) {
SETBIT(m_flags, kFixedIntercharSpacing, isUseIntercharSpacing); }
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
void setBigFont(OdFont *pBigFont)
bool isUpsideDown() const
OdString getBigFontFilePath(OdDbBaseDatabase *pDb) const
void setBackward(bool isBackward)
OdCodePageId getCodePage() const
void setFont(OdFont *font)
void setShapeLoaded(bool shapeLoaded) const
void loadStyleRec(OdDbBaseDatabase *pDb) const
void setStyleName(const OdString &name)
void setNoUsePreferableFont(bool isUsePreferableFont)
void setUpsideDown(bool isUpsideDown)
void font(OdString &typeface, bool &bold, bool &italic, int &charset, int &pitchAndFamily) const
bool isUnderlined() const
void setIntercharSpacing(double dSpacing)
void setPreLoaded(bool value) const
double obliquingAngle() const
void setTextSize(double textSize)
void setIsUseIntercharSpacing(bool isUseIntercharSpacing)
OdFont * getBigFont() const
OdString getFontFilePath(OdDbBaseDatabase *pDb) const
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)
void setFileName(const OdString &fontFileName)
void setXScale(double xScale)
void setOverlined(bool isOverlined)
void setIsShape(bool isShape)
double getIntercharSpacing() const
OdTtfDescriptor & ttfdescriptor()
void setObliquingAngle(double obliquingAngle)
void setIsFixedIntercharSpacing(bool isUseIntercharSpacing)
void setBigFontFileName(const OdString &bigFontFileName)
void setFontFilePath(const OdString &fontFilePath)
void setCodePage(OdCodePageId codePage)
void setVertical(bool isVertical)
void setStriked(bool isStriked)
void setBigFontFilePath(const OdString &bigFontFilePath)
double trackingPercent() const
const OdTtfDescriptor & ttfdescriptor() const
bool isShapeLoaded() const
void setUnderlined(bool isUnderlined)
const OdString & bigFontFileName() const
void setTrackingPercent(double trackingPercent)
bool isFixedIntercharSpacing() const
void setFont(const OdString &typeface, bool bold, bool italic, int charset, int pitchAndFamily)
const OdString & styleName() const
bool isNoUsePreferableFont() const
bool isUseIntercharSpacing() const
void setShxFont(bool value) const
GLuint const GLchar * name
GLsizei const GLfloat * value