All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VisualizationBase Class CATFont

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 sGetFont(char*)
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 void Get(char[100] oName,
char[300] oPath,
short& oFormat,
short& oPitch,
char[30] oCharacterSet,
short[5] 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 sGetFont
public static CATFont * sGetFont( const char* iFontName)
Get font pointer from font name (with suffix)
Parameters:
iFontName
the name of the font.
o sGetFontCount
public static int sGetFontCount()
Returns the number of available fonts.
o sGetFontOtherGeneralInformation
public static void sGetFontOtherGeneralInformation(int iIndex,
CATString& oLongTabName,
CATString& oShortTabName,
int& oBold,
int& oItalic,
CATString& oFamilyName,
int& oPitch,
float& oItalicAngle,
CATString& oWeight,
CATString& oFullName,
CATString& 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
sGetFontCount-1)
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 void sGetFontStyle(int iIndex,
int& oBold,
int& oItalic)
Returns the font style.
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: CATViz

Copyright © 2003, Dassault Systèmes. All rights reserved.