// 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 _WNT_FontMapEntry_HeaderFile #define _WNT_FontMapEntry_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_WNT_FontMapEntry_HeaderFile #include #endif #ifndef _WNT_LogFont_HeaderFile #include #endif #ifndef _Aspect_Handle_HeaderFile #include #endif #ifndef _Quantity_Factor_HeaderFile #include #endif #ifndef _Quantity_PlaneAngle_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _WNT_Dword_HeaderFile #include #endif #ifndef _Standard_Address_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class WNT_FontMapEntryDefinitionError; class WNT_WDriver; class WNT_DDriver; //! Defines correspondence between FontMapEntry from
//! Aspect and Windows NT font handle. Also, provides
//! some optimizations due to rotation, italics & underlining
//! of fonts. Each font can be reffered by its name which
//! is a character string. The format of the string takes
//! after format of font name of X window system but there
//! are some differences. The font name string format is:
//! "h-w-e-o-wgt-i-u-so-cs-op-cp-q-pf-face".
//! ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
//! | | | | | | | | | | | | | |
//! | | | | | | | | | | | | | +- name of the typeface
//! | | | | | | | | | | | | | (Courier, Arial ...)
//! | | | | | | | | | | | | +- pitch and family
//! | | | | | | | | | | | +- quality
//! | | | | | | | | | | +- clip precision
//! | | | | | | | | | +- out precision
//! | | | | | | | | +- character set
//! | | | | | | | +- strike out
//! | | | | | | +- underline
//! | | | | | +- italic
//! | | | | +- weight
//! | | | +- orientation
//! | | +- escapement
//! | +- width
//! +- height
//! Wildcarding is allowed by specifying '*' sign. This means
//! a default value for parameter.
//! Example: "13-8-*-*-400-*-*-*-255-1-2-*-25-courier".
//! For more detail information see Microsoft Windows manual.
//! Warning: Windows can output rotated text only if the selected for
//! drawing font is True Type.
class WNT_FontMapEntry : public MMgt_TShared { public: //! Creates a class and loads font.
//! Warning: Windows finds the real font that most closely matches
//! the request. In doing so, it uses a
//! "font-mapping-algorythm". So it is possible that loaded
//! font differs from font in the request.
//! Trigger: Raises if font loading failed.
Standard_EXPORT WNT_FontMapEntry(const Standard_CString aFontName); //! Destroys all ressources attached to the FontMapEntry
Standard_EXPORT virtual void Destroy() ; ~WNT_FontMapEntry() { Destroy(); } //! Returns handle of the font.
Standard_EXPORT Aspect_Handle HFont() const; //! Sets certain attributes ( italics etc. ) for font.
//! Warning: If is True then creates a new handle for font.
//! In this case calling routine MUST DELETE THE FONT ITSELF
//! WHEN THE FONT BECOME NO LONGER NEEDED.
Standard_EXPORT Aspect_Handle SetAttrib(const WNT_Dword& aFlags,const Standard_Address aData,const Standard_Boolean aRepl = Standard_False) ; //! Sets the font's slant and returns a previous one.
Quantity_PlaneAngle SetSlant(const Quantity_PlaneAngle aSlant) ; //! Sets the font's scale and returns a previous one.
Quantity_Factor SetScale(const Quantity_Factor aScale) ; //! Returns value of the font's slant.
Quantity_PlaneAngle Slant() const; //! Returns value of the font's scale.
Quantity_Factor Scale() const; //! Returns pointer to LogFont structure.
Standard_Address LogFont() const; friend class WNT_WDriver; friend class WNT_DDriver; DEFINE_STANDARD_RTTI(WNT_FontMapEntry) protected: WNT_LogFont myLogFont; Aspect_Handle myHandle; Quantity_Factor myScale; Quantity_PlaneAngle mySlant; private: }; #include // other Inline functions and methods (like "C++: function call" methods) #endif