Class: TFontFamilyStyle

Declaration: FontStyles.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TFontStyle

Inherited By:

None.

Purpose:

TFontFamilyStyle derives from TFontStyle and specifies the font family.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive a class from this class for any specialization. The value returned from GetCategory should be preserved and the pure virtual function GetName must be overridden to return an unique name.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TFontFamilyStyle::TFontFamilyStyle

  1. TFontFamilyStyle ()
  2. TFontFamilyStyle (const TToken & familyIdentifier)
  3. TFontFamilyStyle (const TFontFamilyStyle &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a new TFontFamilyStyle object and initializes the family name to be that which is contained in the given identifying token.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and directly.
  2. Call this function directly.
  3. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::~TFontFamilyStyle

virtual ~ TFontFamilyStyle ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::operator=

TFontFamilyStyle & operator =(const TFontFamilyStyle &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::operator==

virtual bool operator ==(const TStyle &) const

Interface Category:

API.

Purpose:

Tests whether two objects are equal.

Calling Context:

Call this function by using the operator in an expression.

Parameters:

Return Value:

Returns true if the two objects are equal.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Returns the hash value of this object.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The hash value of this object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::GetDefaultFontFamilyStyle

static const TFontFamilyStyle & GetDefaultFontFamilyStyle ()

Interface Category:

API.

Purpose:

Returns an empty font family identifier. This empty TFontStyle object is used as a key for finding other TFontStyles objects in a TStyleSet by using the search functions of TStyleSet.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns an empty font family style object.

Exceptions:

Throws TGraphicsInternalException when FontServer is not accessible, passes all other exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontFamilyStyle::GetFamilyToken

virtual void GetFamilyToken (TToken &) const

Interface Category:

API.

Purpose:

Returns the font family as a token.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.