CharMetrics Class Reference

parameter passing of char metrics More...

#include <textfuns.h>

List of all members.

Public Member Functions

 CharMetrics ()
 default constructorGet the path associated with a given char
void Scale (double ScaleX, double ScaleY)
 Scale the metrics by the x/y scale factors.

Public Attributes

MILLIPOINT CharWidth
MILLIPOINT FontAscent
MILLIPOINT FontDescent
MILLIPOINT FontEmWidth

Private Member Functions

 CC_DECLARE_MEMDUMP (CharMetrics)


Detailed Description

parameter passing of char metrics

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
21/3/95

Definition at line 124 of file textfuns.h.


Constructor & Destructor Documentation

CharMetrics::CharMetrics  ) 
 

default constructorGet the path associated with a given char

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/1/96

Definition at line 132 of file textfuns.cpp.

00133 {
00134     CharWidth   = 0;
00135     FontAscent  = 0;
00136     FontDescent = 0;
00137     FontEmWidth = 0;
00138 }


Member Function Documentation

CharMetrics::CC_DECLARE_MEMDUMP CharMetrics   )  [private]
 

void CharMetrics::Scale double  ScaleX,
double  ScaleY
 

Scale the metrics by the x/y scale factors.

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
17/1/96
Parameters:
ScaleX - [INPUTS] ScaleY -

Definition at line 151 of file textfuns.cpp.

00152 {
00153     CharWidth   = (MILLIPOINT)(CharWidth   * ScaleX + 0.5);
00154     FontEmWidth = (MILLIPOINT)(FontEmWidth * ScaleX + 0.5);
00155     FontAscent  = (MILLIPOINT)(FontAscent  * ScaleY + 0.5);
00156     FontDescent = (MILLIPOINT)(FontDescent * ScaleY + 0.5);
00157 }


Member Data Documentation

MILLIPOINT CharMetrics::CharWidth
 

Definition at line 133 of file textfuns.h.

MILLIPOINT CharMetrics::FontAscent
 

Definition at line 134 of file textfuns.h.

MILLIPOINT CharMetrics::FontDescent
 

Definition at line 135 of file textfuns.h.

MILLIPOINT CharMetrics::FontEmWidth
 

Definition at line 136 of file textfuns.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:32 2007 for Camelot by  doxygen 1.4.4