CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
FontProperties.h
1 // FontProperties.h: interface for the CFontProperties class.
2 //
5 
6 #if !defined(LST_FONTPROPERTIES_H__INCLUDED_)
7 #define LST_FONTPROPERTIES_H__INCLUDED_
8 
9 #pragma once
10 
11 #include <string>
12 #include <vector>
13 
14 #include "FontDesignGroup.h"
15 
16 namespace Larson
17 {
20  {
21  public:
22 
23  enum Indicators {
24  indicatorFontIndex = 1,
25  indicatorStandardVersion = 2,
26  indicatorDesignSource = 3,
27  indicatorFontFamily = 4,
28  indicatorPosture = 5,
29  indicatorWeight = 6,
30  indicatorPropWidth = 7,
31  indicatorIncGlyphCollections = 8,
32  indicatorIncGlyphs = 9,
33  indicatorDesignSize = 10,
34  indicatorMinSize = 11,
35  indicatorMaxSize = 12,
36  indicatorDesignGroup = 13,
37  indicatorStructure = 14
38  };
39 
40  enum Posture {
41  postureNA,
42  postureUpright,
43  postureOblique,
44  postureBackSlantedOblique,
45  postureItalic,
46  postureBackSlantedItalic,
47  postureOther };
48 
49  enum Weight {
50  weightNA,
51  weightUltraLight,
52  weightExtraLight,
53  weightLight,
54  weightSemiLight,
55  weightMedium,
56  weightSemiBold,
57  weightBold,
58  weightExtraBold,
59  weightUltraBold
60  };
61 
62  enum ProportionateWidth {
63  propWidthNA,
64  propWidthUltraCondensed,
65  propWidthExtraCondensed,
66  propWidthCondensed,
67  propWidthSemiCondensed,
68  propWidthMedium,
69  propWidthSemiExpanded,
70  propWidthExpanded,
71  propWidthExtraExpanded,
72  propWidthUltraExpanded
73  };
74 
75  enum Structure {
76  structureUndefined,
77  structureSolid,
78  structureOutline
79  };
80 
81  CFontProperties();
82  void operator=(const CFontProperties& props);
83 
84  int fontIndex;
85  int standardVersion;
86  std::wstring designSource;
87  std::wstring fontFamily;
88  Posture posture;
89  Weight weight;
90  ProportionateWidth propWidth;
91  std::vector <long> glyphCollections;
92  std::vector <long> includedGlyphs;
93  double designSize;
94  double minSize;
95  double maxSize;
96  CFontDesignGroup designGroup;
97  Structure structure;
98  std::vector <long> priority;
99  };
100 };
101 
102 #endif // LST_FONTPROPERTIES_H__INCLUDED_
103 
CFontDesignGroup – font design attributes.
Definition: FontDesignGroup.h:21
CFontProperties – FontProperties attributes.
Definition: FontProperties.h:19