CPdrTypefaceStore Class Reference

class CPdrTypefaceStore : public CTypefaceStore

Inherits from

Public Member Functions
~CPdrTypefaceStore()
IMPORT_C TIntFontHeightInTwips(TInt, TInt)
IMPORT_C TIntGetNearestFontInTwips(CFont *&, const TFontSpec &)
IMPORT_C TIntGetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)
IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&, const TFontSpec &, TInt)
IMPORT_C CPdrTypefaceStore *NewL(CStreamStore &, TInt, TTypefaceFontsEntry *, TPageSpec::TPageOrientation, TInt, CPdrDevice *)
IMPORT_C TIntNumTypefaces()
IMPORT_C voidSetPageOrientation(TPageSpec::TPageOrientation)
IMPORT_C voidTypefaceSupport(TTypefaceSupport &, TInt)
Private Member Functions
CPdrTypefaceStore(CStreamStore &, TInt, CPdrDevice *)
voidConstructL(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,
TIntaKPixelHeightInTwips,
CPdrDevice *aPdrDevice
)[private]

Parameters

CStreamStore & aStore
TInt aKPixelHeightInTwips
CPdrDevice * aPdrDevice

~CPdrTypefaceStore()

IMPORT_C~CPdrTypefaceStore()

Member Functions Documentation

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

voidConstructL(TIntaNumTypefacesFonts,
TTypefaceFontsEntry *aTypefaceFontsEntryList,
TPageSpec::TPageOrientationaPageOrientation
)[private]

Parameters

TInt aNumTypefacesFonts
TTypefaceFontsEntry * aTypefaceFontsEntryList
TPageSpec::TPageOrientation aPageOrientation

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.

FontInfoL(TStreamId)

CFontInfo *FontInfoL(TStreamIdaStreamId)const [private]

Parameters

TStreamId aStreamId

GetNearestFontHeightIndex(TInt, TInt)

TInt GetNearestFontHeightIndex(TIntaTypefaceIndex,
TIntaHeightInTwips
)const [private]

Parameters

TInt aTypefaceIndex
TInt aHeightInTwips

GetNearestFontInTwips(CFont *&, const TFontSpec &)

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

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

GetNearestFontStyle(TInt, TInt, const TFontStyle &)

TFontStyle GetNearestFontStyle(TIntaTypefaceIndex,
TIntaHeightIndex,
const TFontStyle &aFontStyle
)const [private]

Parameters

TInt aTypefaceIndex
TInt aHeightIndex
const TFontStyle & aFontStyle

GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)

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

Parameters

CFont *& aFont
const TFontSpec & aFontSpec

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

IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&aFont,
const TFontSpec &aFontSpec,
TIntaMaxHeight
)[virtual]

Parameters

CFont *& aFont
const TFontSpec & aFontSpec
TInt aMaxHeight

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

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

Parameters

CFont *& aFont
const TFontSpec & aFontSpecInTwips
TInt aHeightInPixels

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

CInfoFont *NewFontL(TIntaBaselineOffsetInPixels,
const TFontSpec &aFontSpecInTwips,
TIntaFontInfoHeightInTwips,
TIntaHeightInPixels,
CPdrTranslates *aTranslates,
const TDesC8 &aCommandString,
TStreamIdaFontInfoStreamId
)[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,
TIntaNumTypefacesFonts,
TTypefaceFontsEntry *aTypefaceFontsEntryList,
TPageSpec::TPageOrientationaPageOrientation,
TIntaKPixelHeightInTwips,
CPdrDevice *aPdrDevice
)[static]

Parameters

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

NumTypefaces()

IMPORT_C TIntNumTypefaces()const [virtual]

Gets the number of typefaces supported by the typeface store.

SetPageOrientation(TPageSpec::TPageOrientation)

IMPORT_C voidSetPageOrientation(TPageSpec::TPageOrientationaPageOrientation)

Parameters

TPageSpec::TPageOrientation aPageOrientation

TranslatesL(TStreamId)

CPdrTranslates *TranslatesL(TStreamIdaStreamId)const [private]

Parameters

TStreamId aStreamId

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

VerticalTwipsToPixels(TInt)

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