COpenFontLinkedTypefaceElementSpec Class Reference

#include <openfontlinkedtypefaceelementspec.h>

Link against: fntstr.lib

class COpenFontLinkedTypefaceElementSpec : public CBase

Inherits from

  • COpenFontLinkedTypefaceElementSpec

    Detailed Description

    Class for specifying a single typeface element within a linked typeface specification. Its features determine how the typeface is rendered within the linked fonts that use it.

    This class is used to communicate between the server and the rasterizer.

    Another similar but separate class, CLinkedTypefaceElementSpec, will be used client side and to communicate between the server and the rasterizer.

    WARNING: Class for internal and partner use ONLY. Compatibility is not guaranteed in future releases.

    See also: CLinkedTypefaceElementSpec

    Constructor & Destructor Documentation

    ~COpenFontLinkedTypefaceElementSpec ( )

    IMPORT_C~COpenFontLinkedTypefaceElementSpec()

    Default destructor

    Member Function Documentation

    Canonical ( )

    IMPORT_C TBoolCanonical()const

    Returns the element canonical setting.

    Returns: The element canonical setting

    ElementName ( )

    IMPORT_C TPtrCElementName()const

    Returns the typeface that this element represents within the linked typeface.

    Returns: The element typeface name

    FileName ( )

    IMPORT_C TPtrCFileName()const

    Returns the path and filename of file containing the font this element represents.

    Returns: The full path and filename for the font this element represents.

    GroupId ( )

    IMPORT_C TIntGroupId()const

    Returns the group Id specified at construction.

    Returns: The group Id specified at construction

    NewLC ( const TDesC &, TInt )

    IMPORT_C COpenFontLinkedTypefaceElementSpec *NewLC(const TDesC &aTypefaceName,
    TIntaGroupId
    )[static]

    Create a new linked typeface element specification. The name specified must be an existing typeface that should be added to the linked typeface. The group ID links this typeface to a linked typeface group.

    See also: CLinkedTypefaceSpecification::Group()

    ParameterDescription
    aTypefaceNameThe typeface name for this element
    aGroupIdThe ID of the linked font group this element should belong to

    Returns: The newly created element spec

    SetCanonical ( TBool )

    IMPORT_C voidSetCanonical(TBoolaIsCanonical)

    Set whether the element is the canonical (metrics) font. This is the font that provides all the metrics for the linked typeface.

    ParameterDescription
    aIsCanonicalWhether this element is canonical or not

    SetFileNameL ( const TDesC & )

    IMPORT_C voidSetFileNameL(const TDesC &aFileName)

    Sets the path and filename of file containing the font this element represents.

    WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases.

    ParameterDescription
    aFileNamePath and filename of this element