Class: TFontSlantAngleStyle

Declaration: FontStyles.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TFontScaleStyle

Inherited By:

None.

Purpose:

TFontSlantAngleStyle derives from TFontScaleStyle and specifies the italic angle or obliqueness of the font. Angles are measured in the radiance from upright. The angle value is normalized to range [-1, 1], which corresponds to range [-pi, pi] of radiance. Font names often indicate the italic angle of the font by including strings such as oblique or italic in them.

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.

Member Function: TFontSlantAngleStyle::TFontSlantAngleStyle

  1. TFontSlantAngleStyle ()
  2. TFontSlantAngleStyle (GCoordinate angle)
  3. TFontSlantAngleStyle (const TFontSlantAngleStyle &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a new TFontSlantAngleStyle object and initializes the angle to the specified GCoordinate's value.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  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: TFontSlantAngleStyle::~TFontSlantAngleStyle

virtual ~ TFontSlantAngleStyle ()

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: TFontSlantAngleStyle::GetDefaultFontSlantAngleStyle

static const TFontSlantAngleStyle & GetDefaultFontSlantAngleStyle ()

Interface Category:

API.

Purpose:

GetDefaultFontSlantAngleStyle returns an empty slant angle style. 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 slant angle style.

Exceptions:

Throws TGraphicsInternalException when FontServer is not accessible, passes all other 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.