#include <textfuns.h>
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) |
Definition at line 124 of file textfuns.h.
|
default constructorGet the path associated with a given char
Definition at line 132 of file textfuns.cpp. 00133 { 00134 CharWidth = 0; 00135 FontAscent = 0; 00136 FontDescent = 0; 00137 FontEmWidth = 0; 00138 }
|
|
|
|
Scale the metrics by the x/y scale factors.
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 }
|
|
Definition at line 133 of file textfuns.h. |
|
Definition at line 134 of file textfuns.h. |
|
Definition at line 135 of file textfuns.h. |
|
Definition at line 136 of file textfuns.h. |