Magick++  7.0.7
Convert, Edit, Or Compose Bitmap Images
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 
16 {
17  ResetMagickMemory(&_typeMetric,0,sizeof(_typeMetric));
18 }
19 
21 {
22 }
23 
24 double Magick::TypeMetric::ascent(void) const
25 {
26  return(_typeMetric.ascent);
27 }
28 
29 double Magick::TypeMetric::descent(void) const
30 {
31  return(_typeMetric.descent);
32 }
33 
35 {
36  return(_typeMetric.max_advance);
37 }
38 
40 {
41  return(_typeMetric.height);
42 }
43 
45 {
46  return(_typeMetric.width);
47 }
48 
50 {
51  return(_typeMetric.underline_position);
52 }
53 
55 {
56  return(_typeMetric.underline_thickness);
57 }
double descent(void) const
Definition: TypeMetric.cpp:29
double underlinePosition(void) const
Definition: TypeMetric.cpp:49
double underlineThickness(void) const
Definition: TypeMetric.cpp:54
double textWidth(void) const
Definition: TypeMetric.cpp:44
double ascent(void) const
Definition: TypeMetric.cpp:24
double textHeight(void) const
Definition: TypeMetric.cpp:39
double maxHorizontalAdvance(void) const
Definition: TypeMetric.cpp:34