CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
FontDesignGroup.h
1 // FontDesignGroup.h: interface for the CFontDesignGroup class.
2 //
5 
6 #if !defined(LST_FONTDESIGNGROUP_H__INCLUDED_)
7 #define LST_FONTDESIGNGROUP_H__INCLUDED_
8 
9 #pragma once
10 
11 #include <fstream>
12 
13 namespace Larson {
14 
16 
22  {
23  public:
25 
26  void serialize(std::ofstream& stream);
27  void restore(std::ifstream& stream);
29  void setDesignGroup(unsigned char general, unsigned char sub, unsigned char specific);
31  void setDesignGroup(const CFontDesignGroup& desGroup);
32  void operator=(const CFontDesignGroup& desGroup);
33  void operator=(signed short sFamilyClass);
34 
36  // See IBM Font Class Parameters
37  // Format: 2-byte signed short
38  // Title: Font-family class and subclass. Also see section 3.4.
39  // Description: This parameter is a classification of font-family design.
40  // for SubClass details see http://www.microsoft.com/typography/otspec/ibmfc.htm
41  // Class ID = 0 No Classification
42  // Class ID = 1 Oldstyle Serifs
43  // Class ID = 2 Transitional Serifs
44  // Class ID = 3 Modern Serifs
45  // Class ID = 4 Clarendon Serifs
46  // Class ID = 5 Slab Serifs
47  // Class ID = 6 (reserved for future use)
48  // Class ID = 7 Freeform Serifs
49  // Class ID = 8 Sans Serif
50  // Class ID = 9 Ornamentals
51  // Class ID = 10 Scripts
52  // Class ID = 11 (reserved for future use)
53  // Class ID = 12 Symbolic
54  void setDesignGroup(signed short sFamilyClass);
55 
57  unsigned char m_class;
59  unsigned char m_subClass;
61  unsigned char m_specific;
62  };
63 }
64 
65 #endif // LST_FONTDESIGNGROUP_H__INCLUDED_
66 
unsigned char m_specific
ISO/IEC 9541 Specific Group.
Definition: FontDesignGroup.h:61
unsigned char m_class
ISO/IEC 9541 Class.
Definition: FontDesignGroup.h:57
void setDesignGroup(unsigned char general, unsigned char sub, unsigned char specific)
set DesignGroup by attributes
Definition: FontDesignGroup.cpp:28
unsigned char m_subClass
ISO/IEC 9541 SubClass.
Definition: FontDesignGroup.h:59
CFontDesignGroup – font design attributes.
Definition: FontDesignGroup.h:21