Location:
OPENFONT.H
class MOpenFontShapingExtension;
Open Font System Extension Interface abstract base class.
COpenFont
derivers should also derive from this interface to enable complex font "shaping".
This interface should be returned by the overridden COpenFont::ExtendedInterface
function when KUidOpenFontShapingExtension is supplied as the UID.
Defined in MOpenFontShapingExtension
:
GetExtensionFontMetrics()
, GlyphIndex()
, GlyphPointInFontUnits()
, GlyphPointInHintedPixels()
, RasterizeGlyphL()
, TExtensionFontMetrics
virtual void RasterizeGlyphL(TInt aCode, TOpenFontGlyphData *aGlyphData)=0;
Creates a bitmap for the specified Glyph code.
Implementations of this function should put the bitmap in aGlyphData->iBitmapBuffer, and the character metrics are placed in aGlyphData->iMetricsBuffer. The other parts of aGlyphData should be left alone.
This function provides the same functionality as the COpenFont::RasterizeL()
except that the glyph code is supplied rather than the unicode.
For more information:
|
virtual TInt GlyphIndex(TInt aUnicodeCharacter) const=0;
Maps a character to a glyph index.
|
|
virtual TBool GlyphPointInHintedPixels(TInt aGlyphIndex, TInt aPointNumber, TReal &aX, TReal &aY) const=0;
Returns the hinted pixel coordinates of a particular point in the outline of the given glyph.
|
|
virtual TBool GlyphPointInFontUnits(TInt aGlyphIndex, TInt aPointNumber, TInt &aX, TInt &aY) const=0;
Returns the coordinates of a particular (unhinted) point in the outline of the given glyph in font units.
|
|
virtual void GetExtensionFontMetrics(TExtensionFontMetrics &aOut)=0;
Returns font metrics.
|
class TExtensionFontMetrics;
Various font metrics.
Defined in MOpenFontShapingExtension::TExtensionFontMetrics
:
iUnitsPerEm
, iXPixelsPerEm
, iXScaleFactor
, iYPixelsPerEm
, iYScaleFactor
iUnitsPerEm
TInt iUnitsPerEm;
The number of font design units per em.
iXPixelsPerEm
TReal iXPixelsPerEm;
The width of the font's em square in pixels.
iYPixelsPerEm
TReal iYPixelsPerEm;
The height of the font's em square in pixels.
iXScaleFactor
TReal iXScaleFactor;
The horizontal scaling factor from the font's transform; the number of horizontal pixels per font unit.
iYScaleFactor
TReal iYScaleFactor;
The vertical scaling factor from the font's transform; the number of vertical pixels per font unit.