CPdrTypefaceStore Class Reference

class CPdrTypefaceStore : public CTypefaceStore

Inherits from

Public Member Functions
~CPdrTypefaceStore ()
IMPORT_C TInt FontHeightInTwips ( TInt , TInt )
IMPORT_C TInt GetNearestFontInTwips ( CFont *&, const TFontSpec &)
IMPORT_C TInt GetNearestFontToDesignHeightInTwips ( CFont *&, const TFontSpec &)
IMPORT_C TInt GetNearestFontToMaxHeightInTwips ( CFont *&, const TFontSpec &, TInt )
IMPORT_C CPdrTypefaceStore * NewL ( CStreamStore &, TInt , TTypefaceFontsEntry *, TPageSpec::TPageOrientation , TInt , CPdrDevice *)
IMPORT_C TInt NumTypefaces ()
IMPORT_C void SetPageOrientation ( TPageSpec::TPageOrientation )
IMPORT_C void TypefaceSupport ( TTypefaceSupport &, TInt )
Private Member Functions
CPdrTypefaceStore ( CStreamStore &, TInt , CPdrDevice *)
void ConstructL ( TInt , TTypefaceFontsEntry *, TPageSpec::TPageOrientation )
CFontInfo * FontInfoL ( TStreamId )
TInt GetNearestFontHeightIndex ( TInt , TInt )
TFontStyle GetNearestFontStyle ( TInt , TInt , const TFontStyle &)
TBool IsFontLoaded ( CFont *&, const TFontSpec &, TInt )
CInfoFont * NewFontL ( TInt , const TFontSpec &, TInt , TInt , CPdrTranslates *, const TDesC8 &, TStreamId )
CPdrTranslates * TranslatesL ( TStreamId )
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::ConstructL()
CTypefaceStore::IncrementFontCount(const CFont *)
CTypefaceStore::ReleaseFont(CFont *)
CTypefaceStore::SuperSubHeight(TInt,TFontPrintPosition)
CTypefaceStore::~CTypefaceStore()
Public Attributes
CPdrDevice * iPdrDevice
Private Attributes
CArrayPtr < CTypefaceFonts > * iCurrentTypefaceFontsList
CArrayPtr < CFontInfo > * iFontInfoList
TInt iKPixelHeightInTwips
CArrayPtr < CTypefaceFonts > * iLandscapeTypefaceFontsList
CArrayPtr < CTypefaceFonts > * iPortraitTypefaceFontsList
CStreamStore * iStore
CArrayPtr < CPdrTranslates > * iTranslatesList
CArrayPtr < CTypefaceFonts > * iTypefaceFontsList
Inherited Attributes
CTypefaceStore::iFontAccess

Constructor & Destructor Documentation

CPdrTypefaceStore(CStreamStore &, TInt, CPdrDevice *)

CPdrTypefaceStore ( CStreamStore & aStore,
TInt aKPixelHeightInTwips,
CPdrDevice * aPdrDevice
) [private]

Parameters

CStreamStore & aStore
TInt aKPixelHeightInTwips
CPdrDevice * aPdrDevice

~CPdrTypefaceStore()

IMPORT_C ~CPdrTypefaceStore ( )

Member Functions Documentation

ConstructL(TInt, TTypefaceFontsEntry *, TPageSpec::TPageOrientation)

void ConstructL ( TInt aNumTypefacesFonts,
TTypefaceFontsEntry * aTypefaceFontsEntryList,
TPageSpec::TPageOrientation aPageOrientation
) [private]

Parameters

TInt aNumTypefacesFonts
TTypefaceFontsEntry * aTypefaceFontsEntryList
TPageSpec::TPageOrientation aPageOrientation

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.

FontInfoL(TStreamId)

CFontInfo * FontInfoL ( TStreamId aStreamId ) const [private]

Parameters

TStreamId aStreamId

GetNearestFontHeightIndex(TInt, TInt)

TInt GetNearestFontHeightIndex ( TInt aTypefaceIndex,
TInt aHeightInTwips
) const [private]

Parameters

TInt aTypefaceIndex
TInt aHeightInTwips

GetNearestFontInTwips(CFont *&, const TFontSpec &)

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

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

GetNearestFontStyle(TInt, TInt, const TFontStyle &)

TFontStyle GetNearestFontStyle ( TInt aTypefaceIndex,
TInt aHeightIndex,
const TFontStyle & aFontStyle
) const [private]

Parameters

TInt aTypefaceIndex
TInt aHeightIndex
const TFontStyle & aFontStyle

GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)

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

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

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

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

Parameters

CFont *& aFont
const TFontSpec & aFontSpec
TInt aMaxHeight

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

TBool IsFontLoaded ( CFont *& aFont,
const TFontSpec & aFontSpecInTwips,
TInt aHeightInPixels
) const [private]

Parameters

CFont *& aFont
const TFontSpec & aFontSpecInTwips
TInt aHeightInPixels

NewFontL(TInt, const TFontSpec &, TInt, TInt, CPdrTranslates *, const TDesC8 &, TStreamId)

CInfoFont * NewFontL ( TInt aBaselineOffsetInPixels,
const TFontSpec & aFontSpecInTwips,
TInt aFontInfoHeightInTwips,
TInt aHeightInPixels,
CPdrTranslates * aTranslates,
const TDesC8 & aCommandString,
TStreamId aFontInfoStreamId
) [private]

Parameters

TInt aBaselineOffsetInPixels
const TFontSpec & aFontSpecInTwips
TInt aFontInfoHeightInTwips
TInt aHeightInPixels
CPdrTranslates * aTranslates
const TDesC8 & aCommandString
TStreamId aFontInfoStreamId

NewL(CStreamStore &, TInt, TTypefaceFontsEntry *, TPageSpec::TPageOrientation, TInt, CPdrDevice *)

IMPORT_C CPdrTypefaceStore * NewL ( CStreamStore & aStore,
TInt aNumTypefacesFonts,
TTypefaceFontsEntry * aTypefaceFontsEntryList,
TPageSpec::TPageOrientation aPageOrientation,
TInt aKPixelHeightInTwips,
CPdrDevice * aPdrDevice
) [static]

Parameters

CStreamStore & aStore
TInt aNumTypefacesFonts
TTypefaceFontsEntry * aTypefaceFontsEntryList
TPageSpec::TPageOrientation aPageOrientation
TInt aKPixelHeightInTwips
CPdrDevice * aPdrDevice

NumTypefaces()

IMPORT_C TInt NumTypefaces ( ) const [virtual]

Gets the number of typefaces supported by the typeface store.

SetPageOrientation(TPageSpec::TPageOrientation)

IMPORT_C void SetPageOrientation ( TPageSpec::TPageOrientation aPageOrientation )

Parameters

TPageSpec::TPageOrientation aPageOrientation

TranslatesL(TStreamId)

CPdrTranslates * TranslatesL ( TStreamId aStreamId ) const [private]

Parameters

TStreamId aStreamId

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).

VerticalTwipsToPixels(TInt)

TInt VerticalTwipsToPixels ( TInt aTwipsHeight ) const [private]

Parameters

TInt aTwipsHeight

Member Data Documentation

CArrayPtr< CTypefaceFonts > * iCurrentTypefaceFontsList

CArrayPtr < CTypefaceFonts > * iCurrentTypefaceFontsList [private]

CArrayPtr< CFontInfo > * iFontInfoList

CArrayPtr < CFontInfo > * iFontInfoList [private]

TInt iKPixelHeightInTwips

TInt iKPixelHeightInTwips [private]

CArrayPtr< CTypefaceFonts > * iLandscapeTypefaceFontsList

CArrayPtr < CTypefaceFonts > * iLandscapeTypefaceFontsList [private]

CPdrDevice * iPdrDevice

CPdrDevice * iPdrDevice

CArrayPtr< CTypefaceFonts > * iPortraitTypefaceFontsList

CArrayPtr < CTypefaceFonts > * iPortraitTypefaceFontsList [private]

CStreamStore * iStore

CStreamStore * iStore [private]

CArrayPtr< CPdrTranslates > * iTranslatesList

CArrayPtr < CPdrTranslates > * iTranslatesList [private]

CArrayPtr< CTypefaceFonts > * iTypefaceFontsList

CArrayPtr < CTypefaceFonts > * iTypefaceFontsList [private]