![](../../Home/Icons/Home.gif)
![](../icons/UpCNM.gif)
![](../icons/CNMContext.gif)
![](../../Home/Icons/Search.gif)
Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TFontScaleStyle
Inherited By:
None.
Purpose:
TFontWidthStyle derives from TFontScaleStyle and specifies the width or the compression and expansion (condensation) ratio of the font. The width value is normalized to range [-1, 1], which corresponds to the range [minValue, maxValue]. Font names often indicate the width of the font by including strings such as condensed or narrow 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.
- TFontWidthStyle ()
- TFontWidthStyle (GCoordinate)
- TFontWidthStyle (const TFontWidthStyle &)
Interface Category:
API.
Purpose:
- Default constructor.
- Creates a new TFontWidthStyle object and initializes the width to the specified GCoordinate's value.
- Copy constructor.
Calling Context:
- Called by the stream-in operators.
- Call this function directly.
- Called to copy an object.
Parameters:
- Takes no parameters.
- GCoordinate -The initial width for this object.
- const TFontWidthStyle & -The object to be copied.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
virtual ~ TFontWidthStyle ()
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: TFontWidthStyle::GetDefaultFontWidthStyle
static const TFontWidthStyle & GetDefaultFontWidthStyle ()
Interface Category:
API.
Purpose:
Returns an empty font width 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 font width 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.