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 TUidAddFileL(const TDesC &)
IMPORT_C TIntCreateLinkedTypeface(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)
voidDecNumShaperCaches()
TGlyphBitmapType DefaultBitmapType()
IMPORT_C voidDeleteSessionCache(TInt)
IMPORT_C TIntFontHeightInPixels(TInt, TInt)
IMPORT_C TIntFontHeightInTwips(TInt, TInt)
IMPORT_C TIntGetFontById(CFont *&, TUid, const TAlgStyle &)
IMPORT_C TBoolGetFontFilePath(const TDesC &, TFileName &)
IMPORT_C voidGetLinkedTypefaceL(TLinkedTypefaceSpecificationArgs &)
IMPORT_C TIntGetNearestFontInPixels(CFont *&, const TFontSpec &)
IMPORT_C TIntGetNearestFontInPixels(CFont *&, const TOpenFontSpec &)
IMPORT_C TIntGetNearestFontInTwips(CFont *&, const TFontSpec &)
IMPORT_C TIntGetNearestFontInTwips(CFont *&, const TOpenFontSpec &)
IMPORT_C TIntGetNearestFontToDesignHeightInPixels(CFont *&, const TFontSpec &)
IMPORT_C TIntGetNearestFontToDesignHeightInPixels(CFont *&, const TOpenFontSpec &)
IMPORT_C TIntGetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)
IMPORT_C TIntGetNearestFontToDesignHeightInTwips(CFont *&, const TOpenFontSpec &)
IMPORT_C TIntGetNearestFontToMaxHeightInPixels(CFont *&, const TFontSpec &, TInt)
IMPORT_C TIntGetNearestFontToMaxHeightInPixels(CFont *&, const TOpenFontSpec &, TInt)
IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&, const TFontSpec &, TInt)
IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&, const TOpenFontSpec &, TInt)
TInt GetNumShaperCaches()
CArrayPtrFlat< COpenFontFile > *GetOpenFontFileList()
COpenFontSessionCacheList *GetSessionCacheList()
TInt GetShaperCacheMemUsage()
IMPORT_C TBoolHaveTypefaceFamilyName(const TDesC &)
voidIncNumShaperCaches()
IMPORT_C voidInstallRasterizerL(COpenFontRasterizer *)
IMPORT_C voidInstallShaperFactoryL(CShaperFactory *)
IMPORT_C voidLoadFontsAtStartupL()
IMPORT_C CFontStore *NewL(RHeap *)
IMPORT_C TIntNumTypefaces()
IMPORT_C voidRemoveFile(TUid)
voidSetDefaultBitmapType(TGlyphBitmapType)
voidSetShaperCacheMemUsage(TInt)
const CArrayPtrFlat< CShaperFactory > *ShaperFactoryList()
IMPORT_C voidTypefaceSupport(TTypefaceSupport &, TInt)
IMPORT_C voidUpdateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &)
Private Member Functions
CFontStore(RHeap *)
voidAddSanityCheckedFontL(const TParse &, TUid &)
TInt AddTypefacesToSupportList(COpenFontFile *)
voidCleanupRemoveFontFile(TAny *)
voidConstructL()
TInt CreateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)
TInt FindBitmapFontFileIndexByUid(TUid)
const TAny *FontLinkingInterface()
voidGenerateLinkedFontFileL(COpenFontLinkedTypefaceSpecification &, const TAny *, TBool)
TInt GetCanonicalIndex(TInt)
CFontBitmap *GetFontBitmapById(TUid)
voidGetNearestBitmapFontInPixelsL(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)
voidGetNearestOpenFontInPixelsL(CFont *&, TOpenFontSpec &, const TOpenFontSpec &, TInt)
TInt GetNearestRealFontInPixels(CFont *&, const TOpenFontSpec &, TInt)
TTypeface *GetNearestTypeface(const TTypeface &)
TTypefaceFontBitmapGetNearestTypefaceFontBitmap(const TFontSpec &, TInt)
TBool IncRefCountOfLoadedFont(const TParse &, TUid &)
voidInternalizeFontStoreFileL(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 &)
voidLoadFontsL(const TDesC &)
CBitmapFont *NewFontL(const TFontSpec &, const TAlgStyle &, CFontBitmap *)
CBitmapFont *NewFontL(const TOpenFontSpec &, const TAlgStyle &, COpenFont *)
voidRemoveTypefacesFromSupportList(COpenFontFile *)
voidSanityCheckFontFileL(TParse &)
voidSanityCheckForTtfL(RFile &, TUint, TBool)
voidTypefaceSupportLinked(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 TUidAddFileL(const TDesC &aName)

Parameters

const TDesC & aName

AddSanityCheckedFontL(const TParse &, TUid &)

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

Parameters

const TParse & aFileName
TUid & aUid

AddTypefacesToSupportList(COpenFontFile *)

TInt AddTypefacesToSupportList(COpenFontFile *aOpenFontFile)[private]

Parameters

COpenFontFile * aOpenFontFile

CleanupRemoveFontFile(TAny *)

voidCleanupRemoveFontFile(TAny *aCleanupInfo)[private, static]

Parameters

TAny * aCleanupInfo

ConstructL()

voidConstructL()[private]

CreateLinkedTypeface(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)

IMPORT_C TIntCreateLinkedTypeface(const TLinkedTypefaceSpecificationArgs &aLinkedTypefaceSpec,
TIntaSession,
TInt &aId
)

Parameters

const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec
TInt aSession
TInt & aId

CreateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)

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

Parameters

const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec
TInt aSession
TInt & aId

DecNumShaperCaches()

voidDecNumShaperCaches()

DefaultBitmapType()

TGlyphBitmapType DefaultBitmapType()const [inline]

Returns a default bitmap type.

TGlyphBitmapType

DeleteSessionCache(TInt)

IMPORT_C voidDeleteSessionCache(TIntaSessionHandle)

Parameters

TInt aSessionHandle

FindBitmapFontFileIndexByUid(TUid)

TInt FindBitmapFontFileIndexByUid(TUidaUid)[private]

Parameters

TUid aUid

FontHeightInPixels(TInt, TInt)

IMPORT_C TIntFontHeightInPixels(TIntaTypefaceIndex,
TIntaHeightIndex
)const

Parameters

TInt aTypefaceIndex
TInt aHeightIndex

FontHeightInTwips(TInt, TInt)

IMPORT_C TIntFontHeightInTwips(TIntaTypefaceIndex,
TIntaHeightIndex
)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 aTypefaceIndexA typeface index number, in the range: 0 to (NumTypefaces() - 1).
TInt aHeightIndexA font height index number.

FontLinkingInterface()

const TAny *FontLinkingInterface()const [private]

GenerateLinkedFontFileL(COpenFontLinkedTypefaceSpecification &, const TAny *, TBool)

voidGenerateLinkedFontFileL(COpenFontLinkedTypefaceSpecification &aSpec,
const TAny *aExtension,
TBoolaUpdate
)[private]

Parameters

COpenFontLinkedTypefaceSpecification & aSpec
const TAny * aExtension
TBool aUpdate

GetCanonicalIndex(TInt)

TInt GetCanonicalIndex(TIntaTypefaceIndex)const [private]

Parameters

TInt aTypefaceIndex

GetFontBitmapById(TUid)

CFontBitmap *GetFontBitmapById(TUidaUid)[private]

Parameters

TUid aUid

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

IMPORT_C TIntGetFontById(CFont *&aFont,
TUidaUid,
const TAlgStyle &aAlgStyle
)

Parameters

CFont *& aFont
TUid aUid
const TAlgStyle & aAlgStyle

GetFontFilePath(const TDesC &, TFileName &)

IMPORT_C TBoolGetFontFilePath(const TDesC &aFontName,
TFileName &aFilePath
)const

Parameters

const TDesC & aFontName
TFileName & aFilePath

GetLinkedTypefaceL(TLinkedTypefaceSpecificationArgs &)

IMPORT_C voidGetLinkedTypefaceL(TLinkedTypefaceSpecificationArgs &aLinkedTypefaceSpec)

Parameters

TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec

GetNearestBitmapFontInPixelsL(CFont *&, TFontSpec &, TInt)

voidGetNearestBitmapFontInPixelsL(CFont *&aFont,
TFontSpec &aFontSpec,
TIntaMaxHeight
)[private]

Parameters

CFont *& aFont
TFontSpec & aFontSpec
TInt aMaxHeight

GetNearestFontInPixels(CFont *&, const TFontSpec &)

IMPORT_C TIntGetNearestFontInPixels(CFont *&aFont,
const TFontSpec &aFontSpec
)

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

GetNearestFontInPixels(CFont *&, const TOpenFontSpec &)

IMPORT_C TIntGetNearestFontInPixels(CFont *&aFont,
const TOpenFontSpec &aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

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

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

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

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

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

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

GetNearestFontInTwips(CFont *&, const TFontSpec &)

IMPORT_C TIntGetNearestFontInTwips(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 *& aFontOn return, contains a pointer to the nearest font.
const TFontSpec & aFontSpecThe specification of the font to be matched.

GetNearestFontInTwips(CFont *&, const TOpenFontSpec &)

IMPORT_C TIntGetNearestFontInTwips(CFont *&aFont,
const TOpenFontSpec &aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

GetNearestFontToDesignHeightInPixels(CFont *&, const TFontSpec &)

IMPORT_C TIntGetNearestFontToDesignHeightInPixels(CFont *&aFont,
const TFontSpec &aFontSpec
)

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

GetNearestFontToDesignHeightInPixels(CFont *&, const TOpenFontSpec &)

IMPORT_C TIntGetNearestFontToDesignHeightInPixels(CFont *&aFont,
const TOpenFontSpec &aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)

IMPORT_C TIntGetNearestFontToDesignHeightInTwips(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 *& aFontOn return, contains a pointer to the nearest font.
const TFontSpec & aFontSpecThe specification of the font to be matched.

GetNearestFontToDesignHeightInTwips(CFont *&, const TOpenFontSpec &)

IMPORT_C TIntGetNearestFontToDesignHeightInTwips(CFont *&aFont,
const TOpenFontSpec &aFontSpec
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec

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

IMPORT_C TIntGetNearestFontToMaxHeightInPixels(CFont *&aFont,
const TFontSpec &aFontSpec,
TIntaMaxHeight
)

Parameters

CFont *& aFont
const TFontSpec & aFontSpec
TInt aMaxHeight

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

IMPORT_C TIntGetNearestFontToMaxHeightInPixels(CFont *&aFont,
const TOpenFontSpec &aFontSpec,
TIntaMaxHeight
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

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

IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&aFont,
const TFontSpec &aFontSpec,
TIntaMaxHeight
)[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 *& aFontOn return, contains a pointer to the nearest font.
const TFontSpec & aFontSpecThe specification of the font to be matched.
TInt aMaxHeightThe maximum height within which the font must fit.

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

IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&aFont,
const TOpenFontSpec &aFontSpec,
TIntaMaxHeight
)

Parameters

CFont *& aFont
const TOpenFontSpec & aFontSpec
TInt aMaxHeight

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

TInt GetNearestOpenFontInPixelsByFontName(COpenFont *&aNearestOpenFont,
TOpenFontSpec &aActualFontSpec,
const TOpenFontSpec &aDesiredFontSpec,
TIntaMaxHeight
)[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,
TIntaMaxHeight
)[private]

Parameters

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

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

voidGetNearestOpenFontInPixelsL(CFont *&aFont,
TOpenFontSpec &aActualFontSpec,
const TOpenFontSpec &aDesiredFontSpec,
TIntaMaxHeight
)[private]

Parameters

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

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

TInt GetNearestRealFontInPixels(CFont *&aFont,
const TOpenFontSpec &aFontSpec,
TIntaMaxHeight
)[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)

TTypefaceFontBitmapGetNearestTypefaceFontBitmap(const TFontSpec &aFontSpecInPixels,
TIntaMaxHeight
)[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 TBoolHaveTypefaceFamilyName(const TDesC &aName)

Parameters

const TDesC & aName

IncNumShaperCaches()

voidIncNumShaperCaches()

IncRefCountOfLoadedFont(const TParse &, TUid &)

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

Parameters

const TParse & aFileName
TUid & aFontUid

InstallRasterizerL(COpenFontRasterizer *)

IMPORT_C voidInstallRasterizerL(COpenFontRasterizer *aRasterizer)

Parameters

COpenFontRasterizer * aRasterizer

InstallShaperFactoryL(CShaperFactory *)

IMPORT_C voidInstallShaperFactoryL(CShaperFactory *aShaperFactory)

Parameters

CShaperFactory * aShaperFactory

InternalizeFontStoreFileL(CFontStoreFile *, TInt)

voidInternalizeFontStoreFileL(CFontStoreFile *aFontStoreFile,
TIntaFontVersion
)[private]

Parameters

CFontStoreFile * aFontStoreFile
TInt aFontVersion

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

TBool IsFontLoaded(CFont *&aFont,
const TAlgStyle &aAlgStyle,
const TFontSpec &aFontSpecInPixels,
TUidaUid,
TIntaMaxHeight = 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,
TIntaMaxHeight
)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 voidLoadFontsAtStartupL()

LoadFontsL(const TDesC &)

voidLoadFontsL(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 TIntNumTypefaces()const [virtual]

Gets the number of typefaces supported by the typeface store.

RemoveFile(TUid)

IMPORT_C voidRemoveFile(TUidaFileUid)

Parameters

TUid aFileUid

RemoveTypefacesFromSupportList(COpenFontFile *)

voidRemoveTypefacesFromSupportList(COpenFontFile *aOpenFontFile)[private]

Parameters

COpenFontFile * aOpenFontFile

SanityCheckFontFileL(TParse &)

voidSanityCheckFontFileL(TParse &aParse)[private]

Parameters

TParse & aParse

SanityCheckForTtfL(RFile &, TUint, TBool)

voidSanityCheckForTtfL(RFile &aFile,
TUintaFontFileSize,
TBoolaStrictChecking
)[private]

Parameters

RFile & aFile
TUint aFontFileSize
TBool aStrictChecking

SetDefaultBitmapType(TGlyphBitmapType)

voidSetDefaultBitmapType(TGlyphBitmapTypeaType)[inline]

Sets a default bitmap type.

TGlyphBitmapType

Parameters

TGlyphBitmapType aTypeA default bitmap type.

SetShaperCacheMemUsage(TInt)

voidSetShaperCacheMemUsage(TIntaUsage)

Parameters

TInt aUsage

ShaperFactoryList()

const CArrayPtrFlat< CShaperFactory > *ShaperFactoryList()const

TypefaceSupport(TTypefaceSupport &, TInt)

IMPORT_C voidTypefaceSupport(TTypefaceSupport &aTypefaceSupport,
TIntaTypefaceIndex
)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 & aTypefaceSupportOn return, if the function executed successfully, this object contains the typeface information.
TInt aTypefaceIndexA typeface index number, in the range: zero to (NumTypefaces() - 1).

TypefaceSupportLinked(TTypefaceSupport &, TInt)

voidTypefaceSupportLinked(TTypefaceSupport &aTypefaceSupport,
TIntaTypefaceIndex
)const [private]

Parameters

TTypefaceSupport & aTypefaceSupport
TInt aTypefaceIndex

UpdateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &)

IMPORT_C voidUpdateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &aLinkedTypefaceSpec)

Parameters

const TLinkedTypefaceSpecificationArgs & aLinkedTypefaceSpec

ValidateLinkedFontSpecificationL(COpenFontLinkedTypefaceSpecification &, TBool)

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

Parameters

COpenFontLinkedTypefaceSpecification & aSpec
TBool aOverwrite

VerticalPixelsToTwips(TInt)

TInt VerticalPixelsToTwips(TIntaPixelHeight)const [private]

Parameters

TInt aPixelHeight

VerticalTwipsToPixels(TInt)

TInt VerticalTwipsToPixels(TIntaTwipsHeight)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]