#include <linkedfonts.h>
class CLinkedTypefaceGroup : public CBase |
Public Member Enumerations | |
---|---|
enum | TBaselineShift { EBaselineShift, ENoBaselineShift } |
enum | TScalingOption { EScalingNone, EScalingUp, EScalingDown, EScalingUpOrDown } |
Public Member Functions | |
---|---|
~CLinkedTypefaceGroup() | |
IMPORT_C TBaselineShift | BaselineShift() |
IMPORT_C TInt | BoldnessPercentage() |
IMPORT_C TInt | GroupId() |
IMPORT_C TInt | ItalicAngle() |
IMPORT_C CLinkedTypefaceGroup * | NewLC(TInt) |
IMPORT_C TScalingOption | ScalingOption() |
IMPORT_C void | SetBaselineShift(TBaselineShift) |
IMPORT_C void | SetBoldnessPercentage(TInt) |
IMPORT_C void | SetItalicAngle(TInt) |
IMPORT_C void | SetScalingOption(TScalingOption) |
This class contains parameters used to describe the groups that linked typeface elements are associated to. These "metrics" apply to all fonts that are specified to be within the group.
WARNING: Class for internal and partner use ONLY. Compatibility is not guaranteed in future releases.
IMPORT_C TBaselineShift | BaselineShift | ( | ) | const |
The baseline shift associated with the typefaces within this group.
Returns: TBaselineShift The baseline shift
IMPORT_C TInt | BoldnessPercentage | ( | ) | const |
Returns the current boldness percentage for this typeface group.
Returns: The current boldness percentage for this typeface group
IMPORT_C TInt | GroupId | ( | ) | const |
The group ID specified at construction.
Returns: TInt The group ID of this group
IMPORT_C TInt | ItalicAngle | ( | ) | const |
The angle (slant) of italic text
Returns: The angle (slant) of italic text
IMPORT_C CLinkedTypefaceGroup * | NewLC | ( | TInt | aGroupId | ) | [static] |
Constructs a new linked typeface group with the specified ID and places it on the CleanupStack.
By default the Antialiasing Threshold, Boldness Percentage and Italic Angle are set to -1. The rasterizer will apply its "best-guess" as to the value in this case. The default scaling option is EScalingNone; the default baseline shift is ENoBaselineShift.
Returns: CLinkedTypefaceGroup* A newly constructed group
IMPORT_C TScalingOption | ScalingOption | ( | ) | const |
The scaling option associated with the typefaces within this group.
See also: CLinkedTypefaceGroup::TScalingOption
Returns: TScalingOption Scaling options
IMPORT_C void | SetBaselineShift | ( | TBaselineShift | aShift | ) |
Sets whether the baseline of typefaces within this group is shifted.
See also: CLinkedTypefaceGroup::TBaselineShift
IMPORT_C void | SetBoldnessPercentage | ( | TInt | aPercentage | ) |
Sets the boldness percentage used by typefaces belonging to this group.
The percentage is relative to the font size specified. For example if a font with an em height of 18 has a boldness percentage of 5% the resulting emboldened text will be emboldened by 18 x (5 / 100) = 0.9 pixels.
Parameter | Description |
---|---|
aPercentage | The boldness percentage to be used by this group. |
IMPORT_C void | SetItalicAngle | ( | TInt | aAngle | ) |
Sets the angle (slant) of italic text
Parameter | Description |
---|---|
aAngle | The angle (slant) of italic text |
IMPORT_C void | SetScalingOption | ( | TScalingOption | aOption | ) |
Sets the scaling option associated with the typefaces within this group.
See also: CLinkedTypefaceGroup::TScalingOption