A class representing the attributes of a text font that is representable on a PCanvas.
![]() | New functions for class |
![]() | deviceResX Device resolution of the canvas for printer point conversion functions. |
Overrides from class PInteractor
New methods for class
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
A class representing the attributes of a text font that is representable on a PCanvas.A canvas is always associated with a particular
device . This may be the screen as in PInteractorCanvas or a printer as in PPrinterCanvas. A particular device will only be able to render certain fonts, eg a screen device would only be able to display fonts that were installed on the system. A printer would typically only be able to render fonts that are built into it.The original PFont only has enough information for a request to the device of a font. Once a font is realised, more detailed information about the exact font metrics is available.
Note all sizes (height, width etc) for fonts are in printers points (1/72 inch).
The
The
The
The
New functions for class
virtual PDIMENSION GetHeight( BOOL inPixels = FALSE ) const
virtual PDIMENSION GetAvgWidth( BOOL inPixels = FALSE ) const
virtual PDIMENSION GetMaxWidth( BOOL inPixels = FALSE ) const
virtual PDIMENSION GetAscent( BOOL inPixels = FALSE ) const
virtual PDIMENSION GetDescent( BOOL inPixels = FALSE ) const
virtual PDIMENSION GetLeading( BOOL inPixels = FALSE ) const
PDIMENSION PointsToPixelsX( PDIMENSION x ) const
PDIMENSION PointsToPixelsY( PDIMENSION y ) const
PDIMENSION PixelsToPointsX( PDIMENSION x ) const
PDIMENSION PixelsToPointsY( PDIMENSION y ) const
PDIMENSION deviceResX
Alphabetic index HTML hierarchy of classes or Java