31#if !defined(AFX_ODFONT_H__0B76813A_DCFA_450E_8591_B6C6F1ED76EC__INCLUDED_)
32#define AFX_ODFONT_H__0B76813A_DCFA_450E_8591_B6C6F1ED76EC__INCLUDED_
75 { ::memset(
this, 0,
sizeof(*
this)); }
112 kVerticalText = 0x02,
126 kBezierCurves = 0x100,
130 kLastPosOnly = 0x400,
132 kTriangleCache = 0x800,
135 ,kExtentsCalculation = 0x4000
140 OdTextProperties() : m_flags(0), m_trackingPercent(0.0), m_textQuality(50), m_prevChar(0) {}
388 kFontSimplex6 = 0x0080,
556 return getAbove() + getBelow();
583 double above = getAbove();
601 return -0.2 * textSize;
614 return 1.2 * textSize;
666 virtual void getScore(
OdChar 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 OdCharacterProperties & currProperties() const =0
virtual const OdChar * currPos() const =0
virtual void getDescriptor(OdTtfDescriptor &descr) const
virtual OdUInt32 getAvailableChars(OdCharArray &characters)=0
virtual bool supportsVerticalMode()
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(OdChar 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
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)
bool isLastPosOnly() const
void setLastChar(bool value)
bool isVerticalText() const
void setVerticalText(bool value)
bool isTriangleCache() const
bool isZeroNormals() const
void setUnderlined(bool value)
void setIncludePenups(bool value)
void setZeroNormals(bool value)
void setGlyph(bool value)
bool isIncludePenups() const
bool isUnderlined() const
double trackingPercent() const
void setLastPosOnly(bool value)
OdUInt32 textQuality() const
void setStriked(bool value)
void setSetTriangleCache(bool value)