SDXFrameWork  0.13
SDXFrameWork
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
SystemFont.h
1 //Copyright © 2014 SDXFramework
2 //[License]GNU Affero General Public License, version 3
3 //[Contact]http://sourceforge.jp/projects/dxframework/
4 #pragma once
5 
9 namespace SDX
10 {
11  namespace SystemFont
12  {
13 #ifdef __WINDOWS__
14  static const char* Gothic = "C:/Windows/Fonts/msgothic.ttc";
15  static const char* Mincho = "C:/Windows/Fonts/msmincho.ttc";
16 
17  static const char* UI_Gothic = "C:/Windows/Fonts/msgothic.ttc";
18  static const char* Pゴシック = "C:/Windows/Fonts/msgothic.ttc";
19  static const char* P明朝 = "C:/Windows/Fonts/msmincho.ttc";
20  static const char* メイリオ = "C:/Windows/Fonts/meiryo.ttc";
21  static const char* Meiryo_UI = "C:/Windows/Fonts/meiryo.ttc";
22  //win8.1以降
23  //static const char* 游ゴシック = "C:/Windows/Fonts/";
24  //static const char* 游ゴシック_Light = "C:/Windows/Fonts/";
25  //static const char* 游ゴシック_Bold = "C:/Windows/Fonts/";
26  //static const char* 游明朝 = "C:/Windows/Fonts/";
27  //static const char* 游明朝_Demibold = "C:/Windows/Fonts/";
28 
29 #elif defined(__MACOSX__)
30  const char* Gothic = "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf";
31  const char* Mincho = "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf";
32 
33  const char* ヒラギノ角ゴPro_W3 = "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf";
34  const char* ヒラギノ角ゴProN_W3 = "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf";
35  const char* ヒラギノ角ゴPro_W6 = "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf";
36  const char* ヒラギノ角ゴProN_W6 = "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf";
37  const char* ヒラギノ角ゴStd_W8 = "/Library/Fonts/ヒラギノ角ゴ Std W8.otf";
38  const char* ヒラギノ角ゴStdN_W8 = "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf";
39  const char* ヒラギノ丸ゴPro_W4 = "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf";
40  const char* ヒラギノ丸ゴProN_W4 = "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf";
41  const char* ヒラギノ明朝Pro_W3 = "/Library/Fonts/ヒラギノ明朝 Pro W3.otf";
42  const char* ヒラギノ明朝ProN_W3 = "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf";
43  const char* ヒラギノ明朝Pro_W6 = "/Library/Fonts/ヒラギノ明朝 Pro W6.otf";
44  const char* ヒラギノ明朝ProN_W6 = "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf";
45  const char* 游明朝体 = "/Library/Fonts/Yu Mincho Demibold.otf";
46  const char* 游ゴシック体 = "/Library/Fonts/Yu Gothic Medium.otf";
47  const char* Osaka = "/Library/Fonts/Osaka.ttf";
48  const char* Osaka等幅 = "/Library/Fonts/OsakaMono.ttf";
49 #elif defined(__LINUX__)
50  static const char* Gothic = "/usr/share/fonts/";
51  static const char* Mincho = "/usr/share/fonts/";
52 
53  static const char* TakaoGothic;
54  static const char* TakaoExGothic;
55 
56  static const char* TakaoMincho;
57  static const char* TakaoPMincho;
58  static const char* TakaoEXMincho;
59 
60  static const char* Monospace;
61  static const char* sans;
62  static const char* serif;
63 #elif defined(__ANDROID__)
64  static const char* Gothic = "/system/fonts/TBGothicMed_213.ttf";
65  static const char* Mincho = "/system/fonts/TBGothicMed_213.ttf";
66 #elif defined(__IPHONEOS__)
67  static const char* Gothic;
68  static const char* Mincho;
69 #endif
70  }
71 }