#include <WNT_FontMapEntry.hxx>
Public Member Functions | |
| Standard_EXPORT | WNT_FontMapEntry (const Standard_CString aFontName) |
| 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. . | |
| virtual Standard_EXPORT void | Destroy () |
| Destroys all ressources attached to the FontMapEntry . | |
| ~WNT_FontMapEntry () | |
| Standard_EXPORT Aspect_Handle | HFont () const |
| Returns handle of the font. . | |
| Standard_EXPORT Aspect_Handle | SetAttrib (const WNT_Dword &aFlags, const Standard_Address aData, const Standard_Boolean aRepl=Standard_False) |
| Sets certain attributes ( italics etc. ) for font. Warning: If <arepl> 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. . | |
| Quantity_PlaneAngle | SetSlant (const Quantity_PlaneAngle aSlant) |
| Sets the font's slant and returns a previous one. . | |
| Quantity_Factor | SetScale (const Quantity_Factor aScale) |
| Sets the font's scale and returns a previous one. . | |
| Quantity_PlaneAngle | Slant () const |
| Returns value of the font's slant. . | |
| Quantity_Factor | Scale () const |
| Returns value of the font's scale. . | |
| Standard_Address | LogFont () const |
| Returns pointer to LogFont structure. . | |
| Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Attributes | |
| WNT_LogFont | myLogFont |
| Aspect_Handle | myHandle |
| Quantity_Factor | myScale |
| Quantity_PlaneAngle | mySlant |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.1