31 #if !defined(AFX_ODFONT_H__0B76813A_DCFA_450E_8591_B6C6F1ED76EC__INCLUDED_)
32 #define AFX_ODFONT_H__0B76813A_DCFA_450E_8591_B6C6F1ED76EC__INCLUDED_
66 { ::memset(
this, 0,
sizeof(*
this)); }
97 kBezierCurves = 0x100,
99 ,kExtentsCalculation = 0x4000
103 OdTextProperties() : m_flags(0), m_trackingPercent(0.0), m_textQuality(50), m_prevChar(0) {}
252 kFontSimplex6 = 0x0080,
399 return getAbove() + getBelow();
421 double above = getAbove();
436 return -0.2 * textSize;
447 return 1.2 * textSize;
495 virtual void getScore(
OdUInt16 character,
OdSmartPtr< OdFont > OdFontPtr
OdSmartPtr< OdBaseTextIterator > OdBaseTextIteratorPtr
bool OdZero(double x, double tol=1.e-10)
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
virtual OdChar nextChar()=0
virtual const OdChar * currPos() const =0
virtual const OdCharacterProperties & currProperties() const =0
virtual OdUInt32 getAvailableChars(OdCharArray &characters)=0
virtual bool supportsVerticalMode()
virtual void getDescriptor(OdTtfDescriptor &descr)
virtual OdUInt32 getFontData(OdUInt32 dwTable, OdUInt32 dwOffset, void *pBuffer, OdUInt32 cbData) const
virtual OdString getFileName() const
virtual double getOverlinePos(double textSize) const
void addFlag(OdUInt32 fontFlags)
virtual double getAbove() const =0
virtual OdResult initialize(OdStreamBuf *pStreamBuf)=0
virtual OdResult drawCharacter(OdChar character, OdGePoint2d &advance, OdGiCommonDraw *pWd, OdTextProperties &textProperties)=0
virtual OdInt32 getLogFont(void *lpLogFont) const
virtual bool hasCharacter(OdChar character)=0
virtual void getScore(OdUInt16 character, OdGePoint2d &advance, OdGePoint3d *pointsOver, OdGePoint3d *pointsUnder, const OdTextProperties &textFlags)
ODRX_DECLARE_MEMBERS(OdFont)
virtual double getHeight() const
OdUInt32 getFlags() const
void setFlags(OdUInt32 fontFlags)
virtual double getUnderlinePos(double textSize) const
virtual OdResult drawCharacter(OdChar character, OdGePoint2d &advance, OdGiConveyorGeometry *pGeometry, OdTextProperties &textProperties)=0
virtual double getAverageWidth()
virtual double getInternalLeading() const
virtual double getBelow() const =0
GLsizei const GLfloat * value
@ kUnderlined
The border is inset.
void setTrackingPercent(double trackingPercent)
void setInBigFont(bool value)
void setTtfPolyDraw(bool bFlag)
void setOverlined(bool value)
bool isNormalText() const
void setNormalText(bool value)
void setTextQuality(OdUInt32 val)
void setLastChar(bool value)
bool isVerticalText() const
void setVerticalText(bool value)
bool isZeroNormals() const
void setUnderlined(bool value)
void setIncludePenups(bool value)
void setZeroNormals(bool value)
bool isIncludePenups() const
bool isUnderlined() const
double trackingPercent() const
OdUInt32 textQuality() const
void setStriked(bool value)