CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
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,
610 #endif // !defined(AFX_ODFONT_H__0B76813A_DCFA_450E_8591_B6C6F1ED76EC__INCLUDED_)
#define GETBIT(flags, bit)
virtual bool supportsVerticalMode()
void setTrackingPercent(double trackingPercent)
bool isUnderlined() const
void setOverlined(bool value)
virtual double getHeight() const
bool isZeroNormals() const
#define SETBIT(flags, bit, value)
void setLastChar(bool value)
virtual void getDescriptor(OdTtfDescriptor &descr)
ODRX_DECLARE_MEMBERS(OdFont)
virtual double getInternalLeading() const
void addFlag(OdUInt32 fontFlags)
OdUInt32 getFlags() const
virtual double getAverageWidth()
virtual bool hasCharacter(OdChar character)=0
void setIncludePenups(bool value)
@ kUnderlined
The border is inset.
virtual double getBelow() const =0
void setNormalText(bool value)
virtual OdResult drawCharacter(OdChar character, OdGePoint2d &advance, OdGiCommonDraw *pWd, OdTextProperties &textProperties)=0
void setFlags(OdUInt32 fontFlags)
virtual OdInt32 getLogFont(void *lpLogFont) const
virtual const OdChar * currPos() const =0
void setTextQuality(OdUInt32 val)
void setVerticalText(bool value)
virtual OdUInt32 getFontData(OdUInt32 dwTable, OdUInt32 dwOffset, void *pBuffer, OdUInt32 cbData) const
double trackingPercent() const
bool isVerticalText() const
OdSmartPtr< OdFont > OdFontPtr
bool isNormalText() const
virtual double getAbove() const =0
virtual OdResult drawCharacter(OdChar character, OdGePoint2d &advance, OdGiConveyorGeometry *pGeometry, OdTextProperties &textProperties)=0
virtual double getUnderlinePos(double textSize) const
void setZeroNormals(bool value)
void setUnderlined(bool value)
bool isIncludePenups() const
GLsizei const GLfloat * value
virtual void getScore(OdUInt16 character, OdGePoint2d &advance, OdGePoint3d *pointsOver, OdGePoint3d *pointsUnder, const OdTextProperties &textFlags)
virtual double getOverlinePos(double textSize) const
virtual OdString getFileName() const
OdUInt32 textQuality() const
void setInBigFont(bool value)
virtual OdChar nextChar()=0
virtual OdUInt32 getAvailableChars(OdCharArray &characters)=0
void setStriked(bool value)
OdSmartPtr< OdBaseTextIterator > OdBaseTextIteratorPtr
virtual OdResult initialize(OdStreamBuf *pStreamBuf)=0
bool OdZero(double x, double tol=1.e-10)
void setTtfPolyDraw(bool bFlag)
virtual const OdCharacterProperties & currProperties() const =0