CPdrTypefaceStore Class Reference
class CPdrTypefaceStore : public CTypefaceStore
|
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
)
|
Constructor & Destructor Documentation
CPdrTypefaceStore(CStreamStore &, TInt, CPdrDevice *)
~CPdrTypefaceStore()
IMPORT_C
|
~CPdrTypefaceStore
|
(
|
)
|
|
Member Functions Documentation
ConstructL(TInt, TTypefaceFontsEntry *, TPageSpec::TPageOrientation)
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]
|
GetNearestFontHeightIndex(TInt, TInt)
TInt
|
GetNearestFontHeightIndex
|
(
|
TInt
|
aTypefaceIndex,
|
|
TInt
|
aHeightInTwips
|
|
)
|
const [private]
|
GetNearestFontInTwips(CFont *&, const TFontSpec &)
IMPORT_C
TInt
|
GetNearestFontInTwips
|
(
|
CFont
*&
|
aFont,
|
|
const
TFontSpec
&
|
aFontSpec
|
|
)
|
[virtual]
|
GetNearestFontStyle(TInt, TInt, const TFontStyle &)
GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)
IMPORT_C
TInt
|
GetNearestFontToDesignHeightInTwips
|
(
|
CFont
*&
|
aFont,
|
|
const
TFontSpec
&
|
aFontSpec
|
|
)
|
[virtual]
|
GetNearestFontToMaxHeightInTwips(CFont *&, const TFontSpec &, TInt)
IMPORT_C
TInt
|
GetNearestFontToMaxHeightInTwips
|
(
|
CFont
*&
|
aFont,
|
|
const
TFontSpec
&
|
aFontSpec,
|
|
TInt
|
aMaxHeight
|
|
)
|
[virtual]
|
IsFontLoaded(CFont *&, const TFontSpec &, TInt)
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 *)
NumTypefaces()
IMPORT_C
TInt
|
NumTypefaces
|
(
|
)
|
const [virtual]
|
Gets the number of typefaces supported by the typeface store.
SetPageOrientation(TPageSpec::TPageOrientation)
TranslatesL(TStreamId)
CPdrTranslates *
|
TranslatesL
|
(
|
TStreamId
|
aStreamId
|
)
|
const [private]
|
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]
|
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]
|
CArrayPtr< CTypefaceFonts > * iPortraitTypefaceFontsList
CArrayPtr
< CTypefaceFonts > *
|
iPortraitTypefaceFontsList
|
[private]
|
CArrayPtr< CPdrTranslates > * iTranslatesList
CArrayPtr
< CPdrTranslates > *
|
iTranslatesList
|
[private]
|
CArrayPtr< CTypefaceFonts > * iTypefaceFontsList
CArrayPtr
< CTypefaceFonts > *
|
iTypefaceFontsList
|
[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.