CFontStore Class Reference

class CFontStore : public CTypefaceStore

A store for fonts.

Stores and handles both open and fixed-size fonts. Open fonts are made from open (scalable) typefaces by Open Font plug-in rasterizers. Fonts of other typefaces are stored in a limited number of fixed sizes. However, which is being used is transparent to the user of this class. For example the GetNearestFont...() functions get a bitmap font which may be retrieved from memory or generated via a rasterizer.

Inherits from

Public Member Functions
~CFontStore ()
IMPORT_C TUid AddFileL (const TDesC &)
IMPORT_C TInt CreateLinkedTypeface (const TLinkedTypefaceSpecificationArgs &, TInt , TInt &)
void DecNumShaperCaches ()
TGlyphBitmapType DefaultBitmapType ()
IMPORT_C void DeleteSessionCache ( TInt )
IMPORT_C TInt FontHeightInPixels ( TInt , TInt )
IMPORT_C TInt FontHeightInTwips ( TInt , TInt )
IMPORT_C TInt GetFontById ( CFont *&, TUid , const TAlgStyle &)
IMPORT_C TBool GetFontFilePath (const TDesC &, TFileName &)
IMPORT_C void GetLinkedTypefaceL ( TLinkedTypefaceSpecificationArgs &)
IMPORT_C TInt GetNearestFontInPixels ( CFont *&, const TFontSpec &)
IMPORT_C TInt GetNearestFontInPixels ( CFont *&, const TOpenFontSpec &)
IMPORT_C TInt GetNearestFontInTwips ( CFont *&, const TFontSpec &)
IMPORT_C TInt GetNearestFontInTwips ( CFont *&, const TOpenFontSpec &)
IMPORT_C TInt GetNearestFontToDesignHeightInPixels ( CFont *&, const TFontSpec &)
IMPORT_C TInt GetNearestFontToDesignHeightInPixels ( CFont *&, const TOpenFontSpec &)
IMPORT_C TInt GetNearestFontToDesignHeightInTwips ( CFont *&, const TFontSpec &)
IMPORT_C TInt GetNearestFontToDesignHeightInTwips ( CFont *&, const TOpenFontSpec &)
IMPORT_C TInt GetNearestFontToMaxHeightInPixels ( CFont *&, const TFontSpec &, TInt )
IMPORT_C TInt GetNearestFontToMaxHeightInPixels ( CFont *&, const TOpenFontSpec &, TInt )
IMPORT_C TInt GetNearestFontToMaxHeightInTwips ( CFont *&, const TFontSpec &, TInt )
IMPORT_C TInt GetNearestFontToMaxHeightInTwips ( CFont *&, const TOpenFontSpec &, TInt )
TInt GetNumShaperCaches ()
CArrayPtrFlat < COpenFontFile > * GetOpenFontFileList ()
COpenFontSessionCacheList * GetSessionCacheList ()
TInt GetShaperCacheMemUsage ()
IMPORT_C TBool HaveTypefaceFamilyName (const TDesC &)
void IncNumShaperCaches ()
IMPORT_C void InstallRasterizerL ( COpenFontRasterizer *)
IMPORT_C void InstallShaperFactoryL ( CShaperFactory *)
IMPORT_C void LoadFontsAtStartupL ()
IMPORT_C CFontStore * NewL ( RHeap *)
IMPORT_C TInt NumTypefaces ()
IMPORT_C void RemoveFile ( TUid )
void SetDefaultBitmapType ( TGlyphBitmapType )
void SetShaperCacheMemUsage ( TInt )
const CArrayPtrFlat < CShaperFactory > * ShaperFactoryList ()
IMPORT_C void TypefaceSupport ( TTypefaceSupport &, TInt )
IMPORT_C void UpdateLinkedTypefaceL (const TLinkedTypefaceSpecificationArgs &)
Private Member Functions
CFontStore ( RHeap *)
void AddSanityCheckedFontL (const TParse &, TUid &)
TInt AddTypefacesToSupportList ( COpenFontFile *)
void CleanupRemoveFontFile ( TAny *)
void ConstructL ()
TInt CreateLinkedTypefaceL (const TLinkedTypefaceSpecificationArgs &, TInt , TInt &)
TInt FindBitmapFontFileIndexByUid ( TUid )
const TAny * FontLinkingInterface ()
void GenerateLinkedFontFileL ( COpenFontLinkedTypefaceSpecification &, const TAny *, TBool )
TInt GetCanonicalIndex ( TInt )
CFontBitmap * GetFontBitmapById ( TUid )
void GetNearestBitmapFontInPixelsL ( CFont *&, TFontSpec &, TInt )
TInt GetNearestFontInPixels ( CFont *&, const TOpenFontSpec &, TInt )
TInt GetNearestFontInPixelsL ( CFont *&, const TOpenFontSpec &, TInt )
TInt GetNearestOpenFontInPixelsByFontName ( COpenFont *&, TOpenFontSpec &, const TOpenFontSpec &, TInt )
TInt GetNearestOpenFontInPixelsBySimilarity ( COpenFont *&, TOpenFontSpec &, const TOpenFontSpec &, TInt )
void GetNearestOpenFontInPixelsL ( CFont *&, TOpenFontSpec &, const TOpenFontSpec &, TInt )
TInt GetNearestRealFontInPixels ( CFont *&, const TOpenFontSpec &, TInt )
TTypeface * GetNearestTypeface (const TTypeface &)
TTypefaceFontBitmap GetNearestTypefaceFontBitmap (const TFontSpec &, TInt )
TBool IncRefCountOfLoadedFont (const TParse &, TUid &)
void InternalizeFontStoreFileL (CFontStoreFile *, TInt )
TBool IsFontLoaded ( CFont *&, const TAlgStyle &, const TFontSpec &, TUid , TInt )
TBool IsFontLoaded ( CFont *&, const TAlgStyle &, const TOpenFontSpec &, TInt )
TUid LoadFileAsBitmapFontL (const TParse &)
TBool LoadFileAsOpenFontL (const TParse &, TUid &)
void LoadFontsL (const TDesC &)
CBitmapFont * NewFontL (const TFontSpec &, const TAlgStyle &, CFontBitmap *)
CBitmapFont * NewFontL (const TOpenFontSpec &, const TAlgStyle &, COpenFont *)
void RemoveTypefacesFromSupportList ( COpenFontFile *)
void SanityCheckFontFileL ( TParse &)
void SanityCheckForTtfL ( RFile &, TUint , TBool )
void TypefaceSupportLinked ( TTypefaceSupport &, TInt )
TInt ValidateLinkedFontSpecificationL ( COpenFontLinkedTypefaceSpecification &, TBool )
TInt VerticalPixelsToTwips ( TInt )
TInt VerticalTwipsToPixels ( TInt )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CTypefaceStore::AddFontL(CFont *)
CTypefaceStore::BaselineOffset(TInt,TFontPrintPosition)
CTypefaceStore::CTypefaceStore()
CTypefaceStore::IncrementFontCount(const CFont *)
CTypefaceStore::ReleaseFont(CFont *)
CTypefaceStore::SuperSubHeight(TInt,TFontPrintPosition)
CTypefaceStore::~CTypefaceStore()
Public Attributes
TInt iKPixelHeightInTwips
TInt iKPixelWidthInTwips
Private Attributes
TGlyphBitmapType iDefaultBitmapType
CArrayPtrFlat < CFontBitmap > iFontBitmapList
CArrayPtrFlat < CFontStoreFile > iFontStoreFileList
RFs iFs
RHeap * iHeap
TInt iNumberOfShaperCaches
CArrayPtrFlat < COpenFontFile > iOpenFontFileList
CArrayPtrFlat < COpenFontRasterizer > iOpenFontRasterizerList
COpenFontSessionCacheList * iOpenFontSessionCacheList
TInt iOpenFontShaperCacheMemUsage
RPointerArray < CTypefaceSupportInfo > iOpenFontTypefaceSupportList
TInt iOpenFontUid
TInt iReserved
CArrayPtrFlat < CShaperFactory > iShaperFactoryList
CArrayFixFlat < TTypefaceFontBitmap > iTypefaceFontBitmapList
CArrayPtrFlat < TTypeface > iTypefaceList
TUint32 iUniqueFontIdCount
TAny * iUnused
TAny * iUnused2
Inherited Attributes
CTypefaceStore::iFontAccess

Constructor & Destructor Documentation

CFontStore(RHeap *)

CFontStore ( RHeap * aHeap ) [private]

Parameters

RHeap * aHeap

~CFontStore()

IMPORT_C ~CFontStore ( )

Member Functions Documentation

AddFileL(const TDesC &)

IMPORT_C TUid AddFileL ( const TDesC & aName )

Parameters

const TDesC & aName

AddSanityCheckedFontL(const TParse &, TUid &)

void AddSanityCheckedFontL ( const TParse & aFileName,
TUid & aUid
) [private]

Parameters

const TParse & aFileName
TUid & aUid

AddTypefacesToSupportList(COpenFontFile *)

TInt AddTypefacesToSupportList ( COpenFontFile * aOpenFontFile ) [private]

Parameters

COpenFontFile * aOpenFontFile

CleanupRemoveFontFile(TAny *)

void CleanupRemoveFontFile ( TAny * aCleanupInfo ) [private, static]

Parameters

TAny * aCleanupInfo

ConstructL()

void ConstructL ( ) [private]

CreateLinkedTypeface(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)

IMPORT_C TInt CreateLinkedTypeface ( const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec,
TInt aSession,
TInt & aId
)

Parameters

const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec
TInt aSession
TInt & aId

CreateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)

TInt CreateLinkedTypefaceL ( const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec,
TInt aSession,
TInt & aId
) [private]

Parameters

const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec
TInt aSession
TInt & aId

DecNumShaperCaches()

void DecNumShaperCaches ( )

DefaultBitmapType()

TGlyphBitmapType DefaultBitmapType ( ) const [inline]

Returns a default bitmap type.

TGlyphBitmapType

DeleteSessionCache(TInt)

IMPORT_C void DeleteSessionCache ( TInt aSessionHandle )

Parameters

TInt aSessionHandle

FindBitmapFontFileIndexByUid(TUid)

TInt FindBitmapFontFileIndexByUid ( TUid aUid ) [private]

Parameters

TUid aUid

FontHeightInPixels(TInt, TInt)

IMPORT_C TInt FontHeightInPixels ( TInt aTypefaceIndex,
TInt aHeightIndex
) const

Parameters

TInt aTypefaceIndex
TInt aHeightIndex

FontHeightInTwips(TInt, TInt)

IMPORT_C TInt FontHeightInTwips ( TInt aTypefaceIndex,
TInt aHeightIndex
) const [virtual]

Gets the height of the font with specified height and typeface indices, in twips.

The value returned is rounded up or down to the nearest font height in twips.

Parameters

TInt aTypefaceIndex A typeface index number, in the range: 0 to (NumTypefaces() - 1).
TInt aHeightIndex A font height index number.

FontLinkingInterface()

const TAny * FontLinkingInterface ( ) const [private]

GenerateLinkedFontFileL(COpenFontLinkedTypefaceSpecification &, const TAny *, TBool)

void GenerateLinkedFontFileL ( COpenFontLinkedTypefaceSpecification & aSpec,
const TAny * aExtension,
TBool aUpdate
) [private]

Parameters

COpenFontLinkedTypefaceSpecification & aSpec
const TAny * aExtension
TBool aUpdate

GetCanonicalIndex(TInt)

TInt GetCanonicalIndex ( TInt aTypefaceIndex ) const [private]

Parameters

TInt aTypefaceIndex

GetFontBitmapById(TUid)

CFontBitmap * GetFontBitmapById ( TUid aUid ) [private]

Parameters

TUid aUid

GetFontById(CFont *&, TUid, const TAlgStyle &)

IMPORT_C TInt GetFontById ( CFont *& aFont,
TUid aUid,
const TAlgStyle & aAlgStyle
)

Parameters

CFont *& aFont
TUid aUid
const TAlgStyle & aAlgStyle

GetFontFilePath(const TDesC &, TFileName &)

IMPORT_C TBool GetFontFilePath ( const TDesC & aFontName,
TFileName & aFilePath
) const

Parameters

const TDesC & aFontName
TFileName & aFilePath

GetLinkedTypefaceL(TLinkedTypefaceSpecificationArgs &)

IMPORT_C void GetLinkedTypefaceL ( TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec )

Parameters

TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec

GetNearestBitmapFontInPixelsL(CFont *&, TFontSpec &, TInt)

void GetNearestBitmapFontInPixelsL ( CFont *& aFont,
TFontSpec & aFontSpec,
TInt aMaxHeight
) [private]

Parameters

CFont *& aFont
TFontSpec & aFontSpec
TInt aMaxHeight

GetNearestFontInPixels(CFont *&, const TFontSpec &)

IMPORT_C TInt GetNearestFontInPixels ( CFont *& aFont,
const TFontSpec & aFontSpec
)

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

GetNearestFontInPixels(CFont *&, const TOpenFontSpec &)

IMPORT_C TInt GetNearestFontInPixels ( CFont *& aFont,
const TOpenFontSpec & aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

GetNearestFontInPixels(CFont *&, const TOpenFontSpec &, TInt)

TInt GetNearestFontInPixels ( CFont *& aFont,
const TOpenFontSpec & aFontSpec,
TInt aMaxHeight
) [private]

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

GetNearestFontInPixelsL(CFont *&, const TOpenFontSpec &, TInt)

TInt GetNearestFontInPixelsL ( CFont *& aFont,
const TOpenFontSpec & aFontSpec,
TInt aMaxHeight
) [private]

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

GetNearestFontInTwips(CFont *&, const TFontSpec &)

IMPORT_C TInt GetNearestFontInTwips ( CFont *& aFont,
const TFontSpec & aFontSpec
) [virtual]

Gets the font which is the nearest to the given font specification.

When the font is no longer needed, call ReleaseFont() .

Note that this deprecated function is replaced by the new GetNearestFontToDesignHeightInTwips() yielding (virtually) the same result. However clients are strongly encouraged to use the new GetNearestFontToMaxHeightInTwips() function instead. This will guarantee that every character within any given text string will fit within the given amount of twips, whereas the design height is an aesthetic unit decided by the font designer without strict physical meaning, which may result in cropped characters.

Use GetNearestFontToDesignHeightInTwips

Parameters

CFont *& aFont On return, contains a pointer to the nearest font.
const TFontSpec & aFontSpec The specification of the font to be matched.

GetNearestFontInTwips(CFont *&, const TOpenFontSpec &)

IMPORT_C TInt GetNearestFontInTwips ( CFont *& aFont,
const TOpenFontSpec & aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

GetNearestFontToDesignHeightInPixels(CFont *&, const TFontSpec &)

IMPORT_C TInt GetNearestFontToDesignHeightInPixels ( CFont *& aFont,
const TFontSpec & aFontSpec
)

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

GetNearestFontToDesignHeightInPixels(CFont *&, const TOpenFontSpec &)

IMPORT_C TInt GetNearestFontToDesignHeightInPixels ( CFont *& aFont,
const TOpenFontSpec & aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)

IMPORT_C TInt GetNearestFontToDesignHeightInTwips ( CFont *& aFont,
const TFontSpec & aFontSpec
) [virtual]

Gets the font which is the nearest to the given font specification.

When the font is no longer needed, call ReleaseFont() .

This new function replaces the deprecated GetNearestFontInTwips() yielding (virtually) the same result. However clients are strongly encouraged to use the new GetNearestFontToMaxHeightInTwips() function instead. This will guarantee that every character within any given text string will fit within the given amount of twips, whereas the design height is an aesthetic unit decided by the font designer without strict physical meaning, which may result in cropped characters.

Parameters

CFont *& aFont On return, contains a pointer to the nearest font.
const TFontSpec & aFontSpec The specification of the font to be matched.

GetNearestFontToDesignHeightInTwips(CFont *&, const TOpenFontSpec &)

IMPORT_C TInt GetNearestFontToDesignHeightInTwips ( CFont *& aFont,
const TOpenFontSpec & aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

GetNearestFontToMaxHeightInPixels(CFont *&, const TFontSpec &, TInt)

IMPORT_C TInt GetNearestFontToMaxHeightInPixels ( CFont *& aFont,
const TFontSpec & aFontSpec,
TInt aMaxHeight
)

Parameters

CFont *& aFont
const TFontSpec & aFontSpec
TInt aMaxHeight

GetNearestFontToMaxHeightInPixels(CFont *&, const TOpenFontSpec &, TInt)

IMPORT_C TInt GetNearestFontToMaxHeightInPixels ( CFont *& aFont,
const TOpenFontSpec & aFontSpec,
TInt aMaxHeight
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

GetNearestFontToMaxHeightInTwips(CFont *&, const TFontSpec &, TInt)

IMPORT_C TInt GetNearestFontToMaxHeightInTwips ( CFont *& aFont,
const TFontSpec & aFontSpec,
TInt aMaxHeight
) [virtual]

Gets the font which is the nearest to the given font specification.

When the font is no longer needed, call ReleaseFont() .

The font and bitmap server returns a pointer to the nearest matching font from those available. Matches to max height of font - this does its best to return a font that will fit within the maximum height specified (but note that variations due to hinting algorithms may rarely result in this height being exceeded by up to one pixel). Problems can also be encountered with bitmap fonts where the typeface exists but doesn't have a font small enough.

Parameters

CFont *& aFont On return, contains a pointer to the nearest font.
const TFontSpec & aFontSpec The specification of the font to be matched.
TInt aMaxHeight The maximum height within which the font must fit.

GetNearestFontToMaxHeightInTwips(CFont *&, const TOpenFontSpec &, TInt)

IMPORT_C TInt GetNearestFontToMaxHeightInTwips ( CFont *& aFont,
const TOpenFontSpec & aFontSpec,
TInt aMaxHeight
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

GetNearestOpenFontInPixelsByFontName(COpenFont *&, TOpenFontSpec &, const TOpenFontSpec &, TInt)

TInt GetNearestOpenFontInPixelsByFontName ( COpenFont *& aNearestOpenFont,
TOpenFontSpec & aActualFontSpec,
const TOpenFontSpec & aDesiredFontSpec,
TInt aMaxHeight
) [private]

Parameters

COpenFont *& aNearestOpenFont
TOpenFontSpec & aActualFontSpec
const TOpenFontSpec & aDesiredFontSpec
TInt aMaxHeight

GetNearestOpenFontInPixelsBySimilarity(COpenFont *&, TOpenFontSpec &, const TOpenFontSpec &, TInt)

TInt GetNearestOpenFontInPixelsBySimilarity ( COpenFont *& aNearestOpenFont,
TOpenFontSpec & aActualFontSpec,
const TOpenFontSpec & aDesiredFontSpec,
TInt aMaxHeight
) [private]

Parameters

COpenFont *& aNearestOpenFont
TOpenFontSpec & aActualFontSpec
const TOpenFontSpec & aDesiredFontSpec
TInt aMaxHeight

GetNearestOpenFontInPixelsL(CFont *&, TOpenFontSpec &, const TOpenFontSpec &, TInt)

void GetNearestOpenFontInPixelsL ( CFont *& aFont,
TOpenFontSpec & aActualFontSpec,
const TOpenFontSpec & aDesiredFontSpec,
TInt aMaxHeight
) [private]

Parameters

CFont *& aFont
TOpenFontSpec & aActualFontSpec
const TOpenFontSpec & aDesiredFontSpec
TInt aMaxHeight

GetNearestRealFontInPixels(CFont *&, const TOpenFontSpec &, TInt)

TInt GetNearestRealFontInPixels ( CFont *& aFont,
const TOpenFontSpec & aFontSpec,
TInt aMaxHeight
) [private]

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

GetNearestTypeface(const TTypeface &)

TTypeface * GetNearestTypeface ( const TTypeface & aTypeface ) const [private]

Parameters

const TTypeface & aTypeface

GetNearestTypefaceFontBitmap(const TFontSpec &, TInt)

TTypefaceFontBitmap GetNearestTypefaceFontBitmap ( const TFontSpec & aFontSpecInPixels,
TInt aMaxHeight
) [private]

Parameters

const TFontSpec & aFontSpecInPixels
TInt aMaxHeight

GetNumShaperCaches()

TInt GetNumShaperCaches ( )

GetOpenFontFileList()

CArrayPtrFlat < COpenFontFile > * GetOpenFontFileList ( )

GetSessionCacheList()

COpenFontSessionCacheList * GetSessionCacheList ( )

GetShaperCacheMemUsage()

TInt GetShaperCacheMemUsage ( )

HaveTypefaceFamilyName(const TDesC &)

IMPORT_C TBool HaveTypefaceFamilyName ( const TDesC & aName )

Parameters

const TDesC & aName

IncNumShaperCaches()

void IncNumShaperCaches ( )

IncRefCountOfLoadedFont(const TParse &, TUid &)

TBool IncRefCountOfLoadedFont ( const TParse & aFileName,
TUid & aFontUid
) [private]

Parameters

const TParse & aFileName
TUid & aFontUid

InstallRasterizerL(COpenFontRasterizer *)

IMPORT_C void InstallRasterizerL ( COpenFontRasterizer * aRasterizer )

Parameters

COpenFontRasterizer * aRasterizer

InstallShaperFactoryL(CShaperFactory *)

IMPORT_C void InstallShaperFactoryL ( CShaperFactory * aShaperFactory )

Parameters

CShaperFactory * aShaperFactory

InternalizeFontStoreFileL(CFontStoreFile *, TInt)

void InternalizeFontStoreFileL ( CFontStoreFile * aFontStoreFile,
TInt aFontVersion
) [private]

Parameters

CFontStoreFile * aFontStoreFile
TInt aFontVersion

IsFontLoaded(CFont *&, const TAlgStyle &, const TFontSpec &, TUid, TInt)

TBool IsFontLoaded ( CFont *& aFont,
const TAlgStyle & aAlgStyle,
const TFontSpec & aFontSpecInPixels,
TUid aUid,
TInt aMaxHeight = 0
) const [private]

Parameters

CFont *& aFont
const TAlgStyle & aAlgStyle
const TFontSpec & aFontSpecInPixels
TUid aUid
TInt aMaxHeight = 0

IsFontLoaded(CFont *&, const TAlgStyle &, const TOpenFontSpec &, TInt)

TBool IsFontLoaded ( CFont *& aFont,
const TAlgStyle & aAlgStyle,
const TOpenFontSpec & aFontSpecInPixels,
TInt aMaxHeight
) const [private]

Parameters

CFont *& aFont
const TAlgStyle & aAlgStyle
const TOpenFontSpec & aFontSpecInPixels
TInt aMaxHeight

LoadFileAsBitmapFontL(const TParse &)

TUid LoadFileAsBitmapFontL ( const TParse & aParse ) [private]

Parameters

const TParse & aParse

LoadFileAsOpenFontL(const TParse &, TUid &)

TBool LoadFileAsOpenFontL ( const TParse & aFileName,
TUid & aFontUid
) [private]

Parameters

const TParse & aFileName
TUid & aFontUid

LoadFontsAtStartupL()

IMPORT_C void LoadFontsAtStartupL ( )

LoadFontsL(const TDesC &)

void LoadFontsL ( const TDesC & aFontsDir ) [private]

Parameters

const TDesC & aFontsDir

NewFontL(const TFontSpec &, const TAlgStyle &, CFontBitmap *)

CBitmapFont * NewFontL ( const TFontSpec & aFontSpecInTwips,
const TAlgStyle & aAlgStyle,
CFontBitmap * aFontBitmap
) [private]

Parameters

const TFontSpec & aFontSpecInTwips
const TAlgStyle & aAlgStyle
CFontBitmap * aFontBitmap

NewFontL(const TOpenFontSpec &, const TAlgStyle &, COpenFont *)

CBitmapFont * NewFontL ( const TOpenFontSpec & aFontSpecInTwips,
const TAlgStyle & aAlgStyle,
COpenFont * aOpenFont
) [private]

Parameters

const TOpenFontSpec & aFontSpecInTwips
const TAlgStyle & aAlgStyle
COpenFont * aOpenFont

NewL(RHeap *)

IMPORT_C CFontStore * NewL ( RHeap * aHeap ) [static]

Parameters

RHeap * aHeap

NumTypefaces()

IMPORT_C TInt NumTypefaces ( ) const [virtual]

Gets the number of typefaces supported by the typeface store.

RemoveFile(TUid)

IMPORT_C void RemoveFile ( TUid aFileUid )

Parameters

TUid aFileUid

RemoveTypefacesFromSupportList(COpenFontFile *)

void RemoveTypefacesFromSupportList ( COpenFontFile * aOpenFontFile ) [private]

Parameters

COpenFontFile * aOpenFontFile

SanityCheckFontFileL(TParse &)

void SanityCheckFontFileL ( TParse & aParse ) [private]

Parameters

TParse & aParse

SanityCheckForTtfL(RFile &, TUint, TBool)

void SanityCheckForTtfL ( RFile & aFile,
TUint aFontFileSize,
TBool aStrictChecking
) [private]

Parameters

RFile & aFile
TUint aFontFileSize
TBool aStrictChecking

SetDefaultBitmapType(TGlyphBitmapType)

void SetDefaultBitmapType ( TGlyphBitmapType aType ) [inline]

Sets a default bitmap type.

TGlyphBitmapType

Parameters

TGlyphBitmapType aType A default bitmap type.

SetShaperCacheMemUsage(TInt)

void SetShaperCacheMemUsage ( TInt aUsage )

Parameters

TInt aUsage

ShaperFactoryList()

const CArrayPtrFlat < CShaperFactory > * ShaperFactoryList ( ) const

TypefaceSupport(TTypefaceSupport &, TInt)

IMPORT_C void TypefaceSupport ( TTypefaceSupport & aTypefaceSupport,
TInt aTypefaceIndex
) const [virtual]

Gets typeface information for a specified typeface index.

This information is returned in aTypefaceSupport, and includes the typeface name and typeface attributes, the number of font heights, the maximum and minimum font heights, and whether it is a scaleable typeface.

Parameters

TTypefaceSupport & aTypefaceSupport On return, if the function executed successfully, this object contains the typeface information.
TInt aTypefaceIndex A typeface index number, in the range: zero to (NumTypefaces() - 1).

TypefaceSupportLinked(TTypefaceSupport &, TInt)

void TypefaceSupportLinked ( TTypefaceSupport & aTypefaceSupport,
TInt aTypefaceIndex
) const [private]

Parameters

TTypefaceSupport & aTypefaceSupport
TInt aTypefaceIndex

UpdateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &)

IMPORT_C void UpdateLinkedTypefaceL ( const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec )

Parameters

const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec

ValidateLinkedFontSpecificationL(COpenFontLinkedTypefaceSpecification &, TBool)

TInt ValidateLinkedFontSpecificationL ( COpenFontLinkedTypefaceSpecification & aSpec,
TBool aOverwrite
) const [private]

VerticalPixelsToTwips(TInt)

TInt VerticalPixelsToTwips ( TInt aPixelHeight ) const [private]

Parameters

TInt aPixelHeight

VerticalTwipsToPixels(TInt)

TInt VerticalTwipsToPixels ( TInt aTwipsHeight ) const [private]

Parameters

TInt aTwipsHeight

Member Data Documentation

TGlyphBitmapType iDefaultBitmapType

TGlyphBitmapType iDefaultBitmapType [private]

CArrayPtrFlat< CFontBitmap > iFontBitmapList

CArrayPtrFlat < CFontBitmap > iFontBitmapList [private]

CArrayPtrFlat< CFontStoreFile > iFontStoreFileList

CArrayPtrFlat < CFontStoreFile > iFontStoreFileList [private]

RFs iFs

RFs iFs [private]

RHeap * iHeap

RHeap * iHeap [private]

TInt iKPixelHeightInTwips

TInt iKPixelHeightInTwips

The height of 1000 pixels in twips.

This is set in the constructor. If the appropriate HALData attributes are set (EDisplayYPixels and EDisplayYTwips) then the value is calculated using these; otherwise the value is set to 11860.

TInt iKPixelWidthInTwips

TInt iKPixelWidthInTwips

The width of 1000 pixels in twips.

This is set in the constructor. If the appropriate HALData attributes are set (EDisplayXPixels and EDisplayXTwips) then the value is calculated using these; otherwise the value is set to 11860.

TInt iNumberOfShaperCaches

TInt iNumberOfShaperCaches [private]

CArrayPtrFlat< COpenFontFile > iOpenFontFileList

CArrayPtrFlat < COpenFontFile > iOpenFontFileList [private]

CArrayPtrFlat< COpenFontRasterizer > iOpenFontRasterizerList

CArrayPtrFlat < COpenFontRasterizer > iOpenFontRasterizerList [private]

COpenFontSessionCacheList * iOpenFontSessionCacheList

COpenFontSessionCacheList * iOpenFontSessionCacheList [private]

TInt iOpenFontShaperCacheMemUsage

TInt iOpenFontShaperCacheMemUsage [private]

RPointerArray< CTypefaceSupportInfo > iOpenFontTypefaceSupportList

RPointerArray < CTypefaceSupportInfo > iOpenFontTypefaceSupportList [private]

TInt iOpenFontUid

TInt iOpenFontUid [private]

TInt iReserved

TInt iReserved [private]

CArrayPtrFlat< CShaperFactory > iShaperFactoryList

CArrayPtrFlat < CShaperFactory > iShaperFactoryList [private]

CArrayFixFlat< TTypefaceFontBitmap > iTypefaceFontBitmapList

CArrayFixFlat < TTypefaceFontBitmap > iTypefaceFontBitmapList [private]

CArrayPtrFlat< TTypeface > iTypefaceList

CArrayPtrFlat < TTypeface > iTypefaceList [private]

TUint32 iUniqueFontIdCount

TUint32 iUniqueFontIdCount [private]

TAny * iUnused

TAny * iUnused [private]

TAny * iUnused2

TAny * iUnused2 [private]