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.
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
)
|
Constructor & Destructor Documentation
CFontStore(RHeap *)
CFontStore
|
(
|
RHeap
*
|
aHeap
|
)
|
[private]
|
Member Functions Documentation
AddFileL(const TDesC &)
IMPORT_C
TUid
|
AddFileL
|
(
|
const
TDesC
&
|
aName
|
)
|
|
AddSanityCheckedFontL(const TParse &, TUid &)
void
|
AddSanityCheckedFontL
|
(
|
const
TParse
&
|
aFileName,
|
|
TUid
&
|
aUid
|
|
)
|
[private]
|
AddTypefacesToSupportList(COpenFontFile *)
CleanupRemoveFontFile(TAny *)
void
|
CleanupRemoveFontFile
|
(
|
TAny
*
|
aCleanupInfo
|
)
|
[private, static]
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
CreateLinkedTypeface(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)
CreateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &, TInt, TInt &)
DecNumShaperCaches()
void
|
DecNumShaperCaches
|
(
|
)
|
|
DeleteSessionCache(TInt)
IMPORT_C void
|
DeleteSessionCache
|
(
|
TInt
|
aSessionHandle
|
)
|
|
FindBitmapFontFileIndexByUid(TUid)
TInt
|
FindBitmapFontFileIndexByUid
|
(
|
TUid
|
aUid
|
)
|
[private]
|
FontHeightInPixels(TInt, TInt)
IMPORT_C
TInt
|
FontHeightInPixels
|
(
|
TInt
|
aTypefaceIndex,
|
|
TInt
|
aHeightIndex
|
|
)
|
const
|
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)
GetCanonicalIndex(TInt)
TInt
|
GetCanonicalIndex
|
(
|
TInt
|
aTypefaceIndex
|
)
|
const [private]
|
GetFontBitmapById(TUid)
CFontBitmap *
|
GetFontBitmapById
|
(
|
TUid
|
aUid
|
)
|
[private]
|
GetFontById(CFont *&, TUid, const TAlgStyle &)
GetFontFilePath(const TDesC &, TFileName &)
GetLinkedTypefaceL(TLinkedTypefaceSpecificationArgs &)
GetNearestBitmapFontInPixelsL(CFont *&, TFontSpec &, TInt)
void
|
GetNearestBitmapFontInPixelsL
|
(
|
CFont
*&
|
aFont,
|
|
TFontSpec
&
|
aFontSpec,
|
|
TInt
|
aMaxHeight
|
|
)
|
[private]
|
GetNearestFontInPixels(CFont *&, const TFontSpec &)
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
|
|
)
|
|
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
|
|
)
|
|
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 &)
GetNearestTypefaceFontBitmap(const TFontSpec &, TInt)
TTypefaceFontBitmap
|
GetNearestTypefaceFontBitmap
|
(
|
const
TFontSpec
&
|
aFontSpecInPixels,
|
|
TInt
|
aMaxHeight
|
|
)
|
[private]
|
GetNumShaperCaches()
TInt
|
GetNumShaperCaches
|
(
|
)
|
|
GetSessionCacheList()
COpenFontSessionCacheList *
|
GetSessionCacheList
|
(
|
)
|
|
GetShaperCacheMemUsage()
TInt
|
GetShaperCacheMemUsage
|
(
|
)
|
|
HaveTypefaceFamilyName(const TDesC &)
IMPORT_C
TBool
|
HaveTypefaceFamilyName
|
(
|
const
TDesC
&
|
aName
|
)
|
|
IncNumShaperCaches()
void
|
IncNumShaperCaches
|
(
|
)
|
|
IncRefCountOfLoadedFont(const TParse &, TUid &)
TBool
|
IncRefCountOfLoadedFont
|
(
|
const
TParse
&
|
aFileName,
|
|
TUid
&
|
aFontUid
|
|
)
|
[private]
|
InstallRasterizerL(COpenFontRasterizer *)
InstallShaperFactoryL(CShaperFactory *)
IMPORT_C void
|
InstallShaperFactoryL
|
(
|
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)
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]
|
LoadFileAsOpenFontL(const TParse &, TUid &)
TBool
|
LoadFileAsOpenFontL
|
(
|
const
TParse
&
|
aFileName,
|
|
TUid
&
|
aFontUid
|
|
)
|
[private]
|
LoadFontsAtStartupL()
IMPORT_C void
|
LoadFontsAtStartupL
|
(
|
)
|
|
LoadFontsL(const TDesC &)
void
|
LoadFontsL
|
(
|
const
TDesC
&
|
aFontsDir
|
)
|
[private]
|
NewFontL(const TFontSpec &, const TAlgStyle &, CFontBitmap *)
NewFontL(const TOpenFontSpec &, const TAlgStyle &, COpenFont *)
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
|
)
|
|
RemoveTypefacesFromSupportList(COpenFontFile *)
void
|
RemoveTypefacesFromSupportList
|
(
|
COpenFontFile
*
|
aOpenFontFile
|
)
|
[private]
|
SanityCheckFontFileL(TParse &)
void
|
SanityCheckFontFileL
|
(
|
TParse
&
|
aParse
|
)
|
[private]
|
SanityCheckForTtfL(RFile &, TUint, TBool)
void
|
SanityCheckForTtfL
|
(
|
RFile
&
|
aFile,
|
|
TUint
|
aFontFileSize,
|
|
TBool
|
aStrictChecking
|
|
)
|
[private]
|
SetDefaultBitmapType(TGlyphBitmapType)
SetShaperCacheMemUsage(TInt)
void
|
SetShaperCacheMemUsage
|
(
|
TInt
|
aUsage
|
)
|
|
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]
|
UpdateLinkedTypefaceL(const TLinkedTypefaceSpecificationArgs &)
ValidateLinkedFontSpecificationL(COpenFontLinkedTypefaceSpecification &, TBool)
VerticalPixelsToTwips(TInt)
TInt
|
VerticalPixelsToTwips
|
(
|
TInt
|
aPixelHeight
|
)
|
const [private]
|
VerticalTwipsToPixels(TInt)
TInt
|
VerticalTwipsToPixels
|
(
|
TInt
|
aTwipsHeight
|
)
|
const [private]
|
Member Data Documentation
TGlyphBitmapType
iDefaultBitmapType
CArrayPtrFlat< CFontBitmap > iFontBitmapList
CArrayPtrFlat< CFontStoreFile > iFontStoreFileList
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
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< COpenFontRasterizer > iOpenFontRasterizerList
COpenFontSessionCacheList * iOpenFontSessionCacheList
COpenFontSessionCacheList *
|
iOpenFontSessionCacheList
|
[private]
|
TInt
iOpenFontShaperCacheMemUsage
TInt
|
iOpenFontShaperCacheMemUsage
|
[private]
|
RPointerArray< CTypefaceSupportInfo > iOpenFontTypefaceSupportList
RPointerArray
< CTypefaceSupportInfo >
|
iOpenFontTypefaceSupportList
|
[private]
|
TInt
iOpenFontUid
TInt
|
iOpenFontUid
|
[private]
|
CArrayPtrFlat< CShaperFactory > iShaperFactoryList
CArrayFixFlat< TTypefaceFontBitmap > iTypefaceFontBitmapList
CArrayFixFlat
< TTypefaceFontBitmap >
|
iTypefaceFontBitmapList
|
[private]
|
CArrayPtrFlat< TTypeface > iTypefaceList
TUint32
iUniqueFontIdCount
TUint32
|
iUniqueFontIdCount
|
[private]
|
TAny * iUnused2
TAny
*
|
iUnused2
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.