// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Aspect_FontStyle_HeaderFile #define _Aspect_FontStyle_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Aspect_TypeOfFont_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Quantity_Length_HeaderFile #include #endif #ifndef _Quantity_PlaneAngle_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class Aspect_FontStyleDefinitionError; class TCollection_AsciiString; //! This class defines a Font Style.
//! The Style can be Predefined or defined by the user
class Aspect_FontStyle { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Creates a font style with the default values of
//! FontStyle type : DEFAULT
Standard_EXPORT Aspect_FontStyle(); //! Creates the font style depending of
//! Size given in the basic LENGTH unit and Slant in
//! the basic PLANE ANGLE unit.
//! When CapsHeight is TRUE the size defines the
//! ascent height of the font;if FALSE,the size
//! defines the ascent+descent part of the font.
Standard_EXPORT Aspect_FontStyle(const Aspect_TypeOfFont Type,const Quantity_Length Size,const Quantity_PlaneAngle Slant = 0.0,const Standard_Boolean CapsHeight = Standard_False); //! Creates a font style from Adobe font style descriptor
//! depending of Size given in MM and Slant in RADIAN.
//! When CapsHeight is TRUE the size defines the
//! ascent height of the font;if FALSE,the size
//! defines the ascent+descent part of the font.
//! Font Style Descriptor must be :
//! Simple form is "family" Ex: "helvetica"
//! More complex form is "family-weight" Ex: "helvetica-bold"
//! Full form is :
//! "-foundry-family-weight-slant-swdth-adstyl-pixelsize"
//! "-pointsize-resx-resy-spacing-avgWidth-registry-encoding"
//! where each field must be replaced by an "*"
//! Warning: create the smalest font size if the foundry height
Standard_EXPORT Aspect_FontStyle(const Standard_CString Style,const Quantity_Length Size,const Quantity_PlaneAngle Slant = 0.0,const Standard_Boolean CapsHeight = Standard_False); //! Creates a transformable font with the full font name