VisualizationFoundation CATFont
Usage: you must use this class as is. You should never derive it.
public class CATFont
Class to manage font for geometric texts.
Role: Creation of 2D or 3D geometric texts.
Method Index
- o
Get(char[100],char[300],short&,short&,char[30],short[5])
- Returns the font informations.
- o
GetIndex()
- Returns the font index.
- o
sGetFont(char*,unsigned int)
- Get font pointer from font name (with suffix)
- o
sGetFontCount()
- Returns the number of available fonts.
- o
sGetFontOtherGeneralInformation(int,CATString&,CATString&,int&,int&,CATString&,int&,float&,CATString&,CATString&,CATString&)
- Returns general information on a outline font.
- o
sGetFontStyle(int,int&,int&)
- Returns the font style.
Methods
o Get
public Get( | | oName, |
| | oPath, |
| | oFormat, |
| | oPitch, |
| | oCharacterSet, |
| | oBox) |
-
Returns the font informations.
- Parameters:
-
- oName
- the name of the font.
- oPath
- the path of the font file.
- oFormat
- the format of the font (0: stroke font, 1: Type 1 font).
- oPitch
- the font pitch (-1: undefined, 0: fixed, 1:variable).
- oCharacterSet
- the character set of the font ("english", "west european", "japanese", "undistinguished" ...).
- oBox
- the bounding box of the font (box = top, cap, bottom, right, left).
o GetIndex
-
Returns the font index.
- Returns:
-
Legal values: the index is comprised between 0 and the value returned by
o sGetFont
public static sGetFont( | const | iFontName, |
| const | iVersion | = 0) |
-
Get font pointer from font name (with suffix)
- Parameters:
-
- iFontName
- the name of the font.
- iVersion
- text version
o sGetFontCount
public static sGetFontCount( | ) |
-
Returns the number of available fonts.
o sGetFontOtherGeneralInformation
public static sGetFontOtherGeneralInformation( | | iIndex, |
| | oLongTabName, |
| | oShortTabName, |
| | oBold, |
| | oItalic, |
| | oFamilyName, |
| | oPitch, |
| | oItalicAngle, |
| | oWeight, |
| | oFullName, |
| | oFontName) |
-
Returns general information on a outline font.
Do not use this method after release V5R15.
- Parameters:
-
- iIndex
- the index of the font.
the index is comprised between 0 and the value returned by
- oLongTabName
- the long name of the font.
- oShortTabName
- the short name of the font.
- oBold
- the font style (0: not bold, 1: bold).
- oItalic
- the font style (0: normal, 1: italic).
- oFamilyName
- the family name of the font.
- oPitch
- the font pitch (0: fixed, 1: variable).
- oItalicAngle
- the angle of italic style font.
- oWeight
- the font weight.
- oFullName
- the full name of the font.
- oFontName
- the name of the font.
o sGetFontStyle
public static sGetFontStyle( | | iIndex, |
| | oBold, |
| | oItalic) |
-
Returns the font style.
Limitation : It is not possible to retrieve bold and bold-italic status for Stroke fonts.
- Parameters:
-
- iIndex
- the index of the font.
- oBold
- indicates if the font is bold style (0: regular , 1: bold).
- oItalic
- indicates if the font is italic style (0: normal , 1: italic).
This object is included in the file: CATFont.h
If needed, your Imakefile.mk should include the module: CATVisFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.