A class representing the attributes of a text font.
![]() | Style The style bits that are returned in GetStyles(). |
![]() | PFont ( const char * fontDescriptionPtr ) Create a new font with the specified attributes. |
![]() | Clone () const Create a copy of the font object. |
![]() | Compare ( const PObject & obj ) const Determine if the two fonts are the same. |
![]() | GetDescription () const Get the description string for the font specification. |
![]() | GetFacename () const Get the face name of the created font eg "Courier". |
![]() | GetSize () const Get the size of characters in the font. |
![]() | GetStyles () const Get the current style bits for the font. |
![]() | IsBold () const Determine if the font was created as a bold font. |
![]() | IsItalic () const Determine if the font was created as an italic font. |
![]() | IsUnderlined () const Determine if the font was created as an underlined font. |
![]() | Overrides from class PInteractor |
![]() | New methods for class |
![]() | facename Face name string for the font. |
![]() | size The size of the font. |
![]() | styles Indication of the font styles eg bold etc. |
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
A class representing the attributes of a text font. This is the specification for a font request. The font may not be representable on the particular PCanvas that text is to drawn. A matching algorithm is performed to find the nearest font that actually exists for the canvas. This is calledrealising the font and will return a PRealFont object. A realised font is tied to the device that a PCanvas is drawing to. Thus a PPrintCanvas may realise a different font than a PDrawCanvas would given the same PFont specification.
Bold
A font description string consists of three fields separated by commas. The first field is the face name, the second is the font size in points and the last field has the any combination of the letters 'B', 'I' and 'U' for bold, italic and underlined respectively. The last field is optional.
Example description strings are: "Times,12,B" for times 12 point bold, "Hevetica, 24, IU" for helvetica 24 point italic with underline, "Courier,10" for regular courier 10 point.
Note the font size are in printers points (1/72 inch).
A font description string consists of three fields separated by
commas. The first field is the face name, the second is the font
size in points and the last field has the any combination of the
letters 'B', 'I' and 'U' for bold, italic and underlined
respectively. The last field is optional. Example description strings are:
"Times,12,B" for times 12 point bold,
"Hevetica, 24, IU" for helvetica 24 point italic with underline,
"Courier,10" for regular courier 10 point.
Overrides from class PInteractor
virtual PObject* Clone() const
virtual Comparison Compare( const PObject & obj ) const
New methods for class
PCaselessString GetDescription() const
PCaselessString GetFacename() const
PDIMENSION GetSize() const
WORD GetStyles() const
BOOL IsBold() const
BOOL IsItalic() const
BOOL IsUnderlined() const
PCaselessString facename
Alphabetic index HTML hierarchy of classes or Java