Magick++  6.9.3
TypeMetric.cpp
Go to the documentation of this file.
1 // This may look like C code, but it is really -*- C++ -*-
2 //
3 // Copyright Bob Friesenhahn, 2001
4 // Copyright Dirk Lemstra 2014
5 //
6 // TypeMetric implementation
7 //
8 
9 #define MAGICKCORE_IMPLEMENTATION 1
10 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1
11 
12 #include "Magick++/TypeMetric.h"
13 #include <string.h>
14 
15 
17 {
18  ResetMagickMemory(&_typeMetric,0,sizeof(_typeMetric));
19 }
20 
22 {
23 }
24 
25 double Magick::TypeMetric::ascent(void) const
26 {
27  return(_typeMetric.ascent);
28 }
29 
30 double Magick::TypeMetric::descent(void) const
31 {
32  return(_typeMetric.descent);
33 }
34 
36 {
37  return(_typeMetric.max_advance);
38 }
39 
41 {
42  return(_typeMetric.height);
43 }
44 
46 {
47  return(_typeMetric.width);
48 }
49 
51 {
52  return(_typeMetric.underline_position);
53 }
54 
56 {
57  return(_typeMetric.underline_thickness);
58 }
59 
double textWidth(void) const
Definition: TypeMetric.cpp:45
double maxHorizontalAdvance(void) const
Definition: TypeMetric.cpp:35
double textHeight(void) const
Definition: TypeMetric.cpp:40
double underlinePosition(void) const
Definition: TypeMetric.cpp:50
double underlineThickness(void) const
Definition: TypeMetric.cpp:55
double ascent(void) const
Definition: TypeMetric.cpp:25
double descent(void) const
Definition: TypeMetric.cpp:30