FONTAINE 1.0
|
00001 // 00002 // The Fontaine Font Analysis Project 00003 // 00004 // Copyright (c) 2009 by Edward H. Trager 00005 // All Rights Reserved 00006 // 00007 // Released under the GNU GPL version 2.0 or later. 00008 // 00009 00010 00011 #include <string> 00012 #include <set> 00013 #include "Script.h" 00014 00015 enum fontStroke{ UNMODULATED, MODULATED }; 00016 enum fontWeight{ LIGHT, NORMAL_WEIGHT, BOLD }; 00017 enum fontStyle{ NORMAL, ITALIC, OBLIQUE }; 00018 00019 // 00020 // This class contains information 00021 // about a single font file: 00022 // 00023 class FontFile{ 00024 00025 private: 00026 00027 std::string _fileName; 00028 std::string _commonName; 00029 std::string _nativeName; 00030 00031 fontStroke _stroke; 00032 fontWeight _weight; 00033 fontStyle _style; 00034 00035 std::set<Script> _supportedScripts; 00036 00037 }; 00038