Move language resource reading in another file.
This commit is contained in:
@@ -4,6 +4,7 @@ The sources for noMeiryoUI are distributed under the MIT open source license
|
||||
*/
|
||||
#include "FontSel.h"
|
||||
#include "util.h"
|
||||
#include "langresource.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
281
program/langresource.cpp
Normal file
281
program/langresource.cpp
Normal file
@@ -0,0 +1,281 @@
|
||||
/*
|
||||
noMeiryoUI (C) 2005,2012-2023 Tatsuhiko Shoji
|
||||
The sources for noMeiryoUI are distributed under the MIT open source license
|
||||
*/
|
||||
|
||||
#include "util.h"
|
||||
#include "langresource.h"
|
||||
|
||||
/**
|
||||
* <20><><EFBFBD>\<5C>[<5B>X<EFBFBD>̓ǂݍ<C782><DD8D>݂<EFBFBD><DD82>J<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD>B
|
||||
*
|
||||
* @param file <20><><EFBFBD>\<5C>[<5B>X<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD>
|
||||
*/
|
||||
void readResourceFile(TCHAR *file)
|
||||
{
|
||||
readResourceItem(file, _T("FONT_FACE"),
|
||||
_T("System")
|
||||
);
|
||||
readResourceItem(file, _T("TITLE"),
|
||||
_T("No!! Meiryo UI")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE"),
|
||||
_T("&File")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_LOAD"),
|
||||
_T("L&oad font settings...")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_SAVE"),
|
||||
_T("S&ave font settings...")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_SET_QUIT"),
|
||||
_T("&Set system fonts and quit")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_QUIT"),
|
||||
_T("E&xit")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_PRESET"),
|
||||
_T("&Preset")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_PRESET_8"),
|
||||
_T("Windows 8/8.1")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_PRESET_10"),
|
||||
_T("Windows 10")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_TOOLS"),
|
||||
_T("&Tools")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_TOOLS_THREAD"),
|
||||
_T("Set system fonts in separated thread")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_TOOLS_SEVEN"),
|
||||
_T("Calculate font size same as Windows 7")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_HELP"),
|
||||
_T("&Help")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_HELP_HELP"),
|
||||
_T("&Help")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_HELP_ABOUT"),
|
||||
_T("&About No!! Meiryo UI")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_ALL_FONT"),
|
||||
_T("All fonts")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_TITLE_BAR"),
|
||||
_T("Title bar")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_ICON"),
|
||||
_T("Icon")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_PALETTE"),
|
||||
_T("Palette title")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_HINT"),
|
||||
_T("Hint")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_MESSAGE"),
|
||||
_T("Message box")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_MENU"),
|
||||
_T("Menu")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SELECT"),
|
||||
_T("Select...")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SET_ALL"),
|
||||
_T("Set all")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SET"),
|
||||
_T("Set")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_EXIT"),
|
||||
_T("Exit")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_FONT_SEL"),
|
||||
_T("Font Selection")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_FONT_NAME"),
|
||||
_T("&Font name")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE"),
|
||||
_T("St&yle")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SIZE"),
|
||||
_T("&Size")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_UNDERLINE"),
|
||||
_T("&Under line")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STRIKE"),
|
||||
_T("S&trikethrough")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET"),
|
||||
_T("&Character set")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_OK"),
|
||||
_T("OK")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CANCEL"),
|
||||
_T("Cancel")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("DLG_CHARSET_ANSI"),
|
||||
_T("Ansi")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_BALTIC"),
|
||||
_T("Baltic")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_BIG5"),
|
||||
_T("Traditional Chinese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_DEFAULT"),
|
||||
_T("Default")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_EASTEUROPE"),
|
||||
_T("East Europe")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_GB2312"),
|
||||
_T("Simplified Chinese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_GREEK"),
|
||||
_T("Greek")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_HANGUL"),
|
||||
_T("Hangul")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_MAC"),
|
||||
_T("Mac")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_OEM"),
|
||||
_T("OEM")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_RUSSIAN"),
|
||||
_T("Russian")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_SHIFTJIS"),
|
||||
_T("Japanese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_SYMBOL"),
|
||||
_T("Symbol")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_TURKISH"),
|
||||
_T("Turkish")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_VIETNAMESE"),
|
||||
_T("Vietnamese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_JOHAB"),
|
||||
_T("Johab Korean")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_ARABIC"),
|
||||
_T("Arabic")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_HEBREW"),
|
||||
_T("Hebrew")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_THAI"),
|
||||
_T("Thai")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("DLG_STYLE_NORMAL"),
|
||||
_T("Regular")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_ITALIC"),
|
||||
_T("Italic")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_BOLD"),
|
||||
_T("Bold")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_BOLD_ITALIC"),
|
||||
_T("Bold Italic")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("MSG_SETTING_FILE"),
|
||||
_T("Font settings file(*.ini)")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_ALL_FILE"),
|
||||
_T("All file(*.*)")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_LOAD_FAIL"),
|
||||
_T("Font settings file load failed.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_SAVE_FAIL"),
|
||||
_T("Font settings file save failed.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_ERROR"),
|
||||
_T("Error")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_ABOUT"),
|
||||
_T("About No!! Meiryo UI")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_FONT"),
|
||||
_T("Please select font.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_STYLE"),
|
||||
_T("Please select style.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_SIZE"),
|
||||
_T("Please select size.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_CHARSET"),
|
||||
_T("Please select charset.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_TRANSLATE"),
|
||||
_T("Tatsuhiko Shoji(Tatsu)")
|
||||
);
|
||||
readResourceItem(file, _T("FONT_CHARSET"),
|
||||
_T("1")
|
||||
);
|
||||
|
||||
// 71
|
||||
readResourceItem(file, _T("DLG_APPLY"),
|
||||
_T("Apply")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_ALL_GROUP"),
|
||||
_T("All font setting")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_INDIVIDUAL_GROUP"),
|
||||
_T("Individual font setting")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("DLG_STYLE_MEDIUM"),
|
||||
_T("Medium")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_SEMI_BOLD"),
|
||||
_T("Semibold")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_BOOK"),
|
||||
_T("Book")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_OBLIQUE"),
|
||||
_T("Oblique")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_LIGHT"),
|
||||
_T("Light")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_EXTRA_LIGHT"),
|
||||
_T("ExtraLight")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_SEMI_LIGHT"),
|
||||
_T("SemiLight")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_SLANTED"),
|
||||
_T("Slanted")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHECK_BOLD"),
|
||||
_T("&Bold")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHECK_ITALIC"),
|
||||
_T("&Italic")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_WARNING"),
|
||||
_T("Warning")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_WIN11_22H2RESTRICTION"),
|
||||
_T("On Windows 11 2022 Update(22H2) due to Windows reason title bar font can't change.")
|
||||
);
|
||||
}
|
||||
|
||||
100
program/langresource.h
Normal file
100
program/langresource.h
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
noMeiryoUI (C) 2005,2012-2023 Tatsuhiko Shoji
|
||||
The sources for noMeiryoUI are distributed under the MIT open source license
|
||||
*/
|
||||
|
||||
#ifndef LANGRESOURCE_H
|
||||
#define LANGRESOURCE_H
|
||||
|
||||
#include <tchar.h>
|
||||
|
||||
#define FONT_FACE 0
|
||||
#define TITLE 1
|
||||
#define MENU_FILE 2
|
||||
#define MENU_FILE_LOAD 3
|
||||
#define MENU_FILE_SAVE 4
|
||||
#define MENU_FILE_SET_QUIT 5
|
||||
#define MENU_FILE_QUIT 6
|
||||
#define MENU_PRESET 7
|
||||
#define MENU_PRESET_8 8
|
||||
#define MENU_PRESET_10 9
|
||||
#define MENU_TOOLS 10
|
||||
#define MENU_TOOLS_THREAD 11
|
||||
#define MENU_TOOLS_SEVEN 12
|
||||
#define MENU_HELP 13
|
||||
#define MENU_HELP_HELP 14
|
||||
#define MENU_HELP_ABOUT 15
|
||||
#define DLG_ALL_FONT 16
|
||||
#define DLG_TITLE_BAR 17
|
||||
#define DLG_ICON 18
|
||||
#define DLG_PALETTE 19
|
||||
#define DLG_HINT 20
|
||||
#define DLG_MESSAGE 21
|
||||
#define DLG_MENU 22
|
||||
#define DLG_SELECT 23
|
||||
#define DLG_SET_ALL 24
|
||||
#define DLG_SET 25
|
||||
#define DLG_EXIT 26
|
||||
#define DLG_FONT_SEL 27
|
||||
#define DLG_FONT_NAME 28
|
||||
#define DLG_STYLE 29
|
||||
#define DLG_SIZE 30
|
||||
#define DLG_UNDERLINE 31
|
||||
#define DLG_STRIKE 32
|
||||
#define DLG_CHARSET 33
|
||||
#define DLG_OK 34
|
||||
#define DLG_CANCEL 35
|
||||
#define DLG_CHARSET_ANSI 36
|
||||
#define DLG_CHARSET_BALTIC 37
|
||||
#define DLG_CHARSET_BIG5 38
|
||||
#define DLG_CHARSET_DEFAULT 39
|
||||
#define DLG_CHARSET_EASTEUROPE 40
|
||||
#define DLG_CHARSET_GB2312 41
|
||||
#define DLG_CHARSET_GREEK 42
|
||||
#define DLG_CHARSET_HANGUL 43
|
||||
#define DLG_CHARSET_MAC 44
|
||||
#define DLG_CHARSET_OEM 45
|
||||
#define DLG_CHARSET_RUSSIAN 46
|
||||
#define DLG_CHARSET_SHIFTJIS 47
|
||||
#define DLG_CHARSET_SYMBOL 48
|
||||
#define DLG_CHARSET_TURKISH 49
|
||||
#define DLG_CHARSET_VIETNAMESE 50
|
||||
#define DLG_CHARSET_JOHAB 51
|
||||
#define DLG_CHARSET_ARABIC 52
|
||||
#define DLG_CHARSET_HEBREW 53
|
||||
#define DLG_CHARSET_THAI 54
|
||||
#define DLG_STYLE_NORMAL 55
|
||||
#define DLG_STYLE_ITALIC 56
|
||||
#define DLG_STYLE_BOLD 57
|
||||
#define DLG_STYLE_BOLD_ITALIC 58
|
||||
#define MSG_SETTING_FILE 59
|
||||
#define MSG_ALL_FILE 60
|
||||
#define MSG_LOAD_FAIL 61
|
||||
#define MSG_SAVE_FAIL 62
|
||||
#define MSG_ERROR 63
|
||||
#define MSG_ABOUT 64
|
||||
#define MSG_NO_FONT 65
|
||||
#define MSG_NO_STYLE 66
|
||||
#define MSG_NO_SIZE 67
|
||||
#define MSG_NO_CHARSET 68
|
||||
#define MSG_TRANSLATE 69
|
||||
#define FONT_CHARSET 70
|
||||
#define DLG_APPLY 71
|
||||
#define DLG_ALL_GROUP 72
|
||||
#define DLG_INDIVIDUAL_GROUP 73
|
||||
#define DLG_STYLE_MEDIUM 74
|
||||
#define DLG_STYLE_SEMI_BOLD 75
|
||||
#define DLG_STYLE_BOOK 76
|
||||
#define DLG_STYLE_OBLIQUE 77
|
||||
#define DLG_STYLE_LIGHT 78
|
||||
#define DLG_STYLE_EXTRA_LIGHT 79
|
||||
#define DLG_STYLE_SEMI_LIGHT 80
|
||||
#define DLG_STYLE_SLANTED 81
|
||||
#define DLG_CHECK_BOLD 82
|
||||
#define DLG_CHECK_ITALIC 83
|
||||
#define MSG_WARNING 84
|
||||
#define MSG_WIN11_22H2RESTRICTION 85
|
||||
|
||||
extern void readResourceFile(TCHAR *file);
|
||||
|
||||
#endif
|
||||
@@ -20,6 +20,7 @@ The sources for noMeiryoUI are distributed under the MIT open source license
|
||||
#include "FontSel.h"
|
||||
#include "NCFileDialog.h"
|
||||
#include "util.h"
|
||||
#include "langresource.h"
|
||||
|
||||
#include "country\default.h"
|
||||
#include "country\japan.h"
|
||||
|
||||
@@ -188,6 +188,7 @@
|
||||
<ClCompile Include="country\korea.cpp" />
|
||||
<ClCompile Include="FontSel.cpp" />
|
||||
<ClCompile Include="iniReader.cpp" />
|
||||
<ClCompile Include="langresource.cpp" />
|
||||
<ClCompile Include="noMeiryoUI.cpp" />
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_2008|Win32'">Create</PrecompiledHeader>
|
||||
@@ -212,6 +213,7 @@
|
||||
<ClInclude Include="country\korea.h" />
|
||||
<ClInclude Include="FontSel.h" />
|
||||
<ClInclude Include="iniReader.h" />
|
||||
<ClInclude Include="langresource.h" />
|
||||
<ClInclude Include="noMeiryoUI.h" />
|
||||
<ClInclude Include="Resource.h" />
|
||||
<ClInclude Include="stdafx.h" />
|
||||
|
||||
@@ -78,6 +78,9 @@
|
||||
<ClCompile Include="country\default.cpp">
|
||||
<Filter>ソース ファイル\country</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="langresource.cpp">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="FontSel.h">
|
||||
@@ -146,6 +149,9 @@
|
||||
<ClInclude Include="country\default.h">
|
||||
<Filter>ヘッダー ファイル\country</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="langresource.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="noMeiryoUI.ico">
|
||||
|
||||
273
program/util.cpp
273
program/util.cpp
@@ -213,279 +213,6 @@ void readResourceItem(TCHAR *file, TCHAR *key, TCHAR *fallback)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* リソースの読み込みを開始する。
|
||||
*
|
||||
* @param file リソースファイル名
|
||||
*/
|
||||
void readResourceFile(TCHAR *file)
|
||||
{
|
||||
readResourceItem(file, _T("FONT_FACE"),
|
||||
_T("System")
|
||||
);
|
||||
readResourceItem(file, _T("TITLE"),
|
||||
_T("No!! Meiryo UI")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE"),
|
||||
_T("&File")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_LOAD"),
|
||||
_T("L&oad font settings...")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_SAVE"),
|
||||
_T("S&ave font settings...")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_SET_QUIT"),
|
||||
_T("&Set system fonts and quit")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_FILE_QUIT"),
|
||||
_T("E&xit")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_PRESET"),
|
||||
_T("&Preset")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_PRESET_8"),
|
||||
_T("Windows 8/8.1")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_PRESET_10"),
|
||||
_T("Windows 10")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_TOOLS"),
|
||||
_T("&Tools")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_TOOLS_THREAD"),
|
||||
_T("Set system fonts in separated thread")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_TOOLS_SEVEN"),
|
||||
_T("Calculate font size same as Windows 7")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_HELP"),
|
||||
_T("&Help")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_HELP_HELP"),
|
||||
_T("&Help")
|
||||
);
|
||||
readResourceItem(file, _T("MENU_HELP_ABOUT"),
|
||||
_T("&About No!! Meiryo UI")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_ALL_FONT"),
|
||||
_T("All fonts")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_TITLE_BAR"),
|
||||
_T("Title bar")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_ICON"),
|
||||
_T("Icon")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_PALETTE"),
|
||||
_T("Palette title")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_HINT"),
|
||||
_T("Hint")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_MESSAGE"),
|
||||
_T("Message box")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_MENU"),
|
||||
_T("Menu")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SELECT"),
|
||||
_T("Select...")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SET_ALL"),
|
||||
_T("Set all")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SET"),
|
||||
_T("Set")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_EXIT"),
|
||||
_T("Exit")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_FONT_SEL"),
|
||||
_T("Font Selection")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_FONT_NAME"),
|
||||
_T("&Font name")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE"),
|
||||
_T("St&yle")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_SIZE"),
|
||||
_T("&Size")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_UNDERLINE"),
|
||||
_T("&Under line")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STRIKE"),
|
||||
_T("S&trikethrough")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET"),
|
||||
_T("&Character set")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_OK"),
|
||||
_T("OK")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CANCEL"),
|
||||
_T("Cancel")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("DLG_CHARSET_ANSI"),
|
||||
_T("Ansi")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_BALTIC"),
|
||||
_T("Baltic")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_BIG5"),
|
||||
_T("Traditional Chinese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_DEFAULT"),
|
||||
_T("Default")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_EASTEUROPE"),
|
||||
_T("East Europe")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_GB2312"),
|
||||
_T("Simplified Chinese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_GREEK"),
|
||||
_T("Greek")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_HANGUL"),
|
||||
_T("Hangul")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_MAC"),
|
||||
_T("Mac")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_OEM"),
|
||||
_T("OEM")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_RUSSIAN"),
|
||||
_T("Russian")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_SHIFTJIS"),
|
||||
_T("Japanese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_SYMBOL"),
|
||||
_T("Symbol")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_TURKISH"),
|
||||
_T("Turkish")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_VIETNAMESE"),
|
||||
_T("Vietnamese")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_JOHAB"),
|
||||
_T("Johab Korean")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_ARABIC"),
|
||||
_T("Arabic")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_HEBREW"),
|
||||
_T("Hebrew")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHARSET_THAI"),
|
||||
_T("Thai")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("DLG_STYLE_NORMAL"),
|
||||
_T("Regular")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_ITALIC"),
|
||||
_T("Italic")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_BOLD"),
|
||||
_T("Bold")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_BOLD_ITALIC"),
|
||||
_T("Bold Italic")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("MSG_SETTING_FILE"),
|
||||
_T("Font settings file(*.ini)")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_ALL_FILE"),
|
||||
_T("All file(*.*)")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_LOAD_FAIL"),
|
||||
_T("Font settings file load failed.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_SAVE_FAIL"),
|
||||
_T("Font settings file save failed.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_ERROR"),
|
||||
_T("Error")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_ABOUT"),
|
||||
_T("About No!! Meiryo UI")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_FONT"),
|
||||
_T("Please select font.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_STYLE"),
|
||||
_T("Please select style.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_SIZE"),
|
||||
_T("Please select size.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_NO_CHARSET"),
|
||||
_T("Please select charset.")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_TRANSLATE"),
|
||||
_T("Tatsuhiko Shoji(Tatsu)")
|
||||
);
|
||||
readResourceItem(file, _T("FONT_CHARSET"),
|
||||
_T("1")
|
||||
);
|
||||
|
||||
// 71
|
||||
readResourceItem(file, _T("DLG_APPLY"),
|
||||
_T("Apply")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_ALL_GROUP"),
|
||||
_T("All font setting")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_INDIVIDUAL_GROUP"),
|
||||
_T("Individual font setting")
|
||||
);
|
||||
|
||||
readResourceItem(file, _T("DLG_STYLE_MEDIUM"),
|
||||
_T("Medium")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_SEMI_BOLD"),
|
||||
_T("Semibold")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_BOOK"),
|
||||
_T("Book")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_OBLIQUE"),
|
||||
_T("Oblique")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_LIGHT"),
|
||||
_T("Light")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_EXTRA_LIGHT"),
|
||||
_T("ExtraLight")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_SEMI_LIGHT"),
|
||||
_T("SemiLight")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_STYLE_SLANTED"),
|
||||
_T("Slanted")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHECK_BOLD"),
|
||||
_T("&Bold")
|
||||
);
|
||||
readResourceItem(file, _T("DLG_CHECK_ITALIC"),
|
||||
_T("&Italic")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_WARNING"),
|
||||
_T("Warning")
|
||||
);
|
||||
readResourceItem(file, _T("MSG_WIN11_22H2RESTRICTION"),
|
||||
_T("On Windows 11 2022 Update(22H2) due to Windows reason title bar font can't change.")
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* リソースの読み込みを行う(フォント名用)。
|
||||
*
|
||||
|
||||
@@ -18,23 +18,6 @@ The sources for noMeiryoUI are distributed under the MIT open source license
|
||||
#define PRESET_SECTION "PRESET"
|
||||
#define APP_FONTSIZE 11
|
||||
|
||||
#define DLG_STYLE_NORMAL 55
|
||||
#define DLG_STYLE_ITALIC 56
|
||||
#define DLG_STYLE_BOLD 57
|
||||
#define DLG_STYLE_BOLD_ITALIC 58
|
||||
#define DLG_STYLE_MEDIUM 74
|
||||
#define DLG_STYLE_SEMI_BOLD 75
|
||||
#define DLG_STYLE_BOOK 76
|
||||
#define DLG_STYLE_OBLIQUE 77
|
||||
#define DLG_STYLE_LIGHT 78
|
||||
#define DLG_STYLE_EXTRA_LIGHT 79
|
||||
#define DLG_STYLE_SEMI_LIGHT 80
|
||||
#define DLG_STYLE_SLANTED 81
|
||||
#define DLG_CHECK_BOLD 82
|
||||
#define DLG_CHECK_ITALIC 83
|
||||
#define MSG_WARNING 84
|
||||
#define MSG_WIN11_22H2RESTRICTION 85
|
||||
|
||||
/**
|
||||
* @brief WindowMetric<69>萔
|
||||
*/
|
||||
@@ -101,7 +84,7 @@ extern int codePage;
|
||||
|
||||
int getFontPointInt(LOGFONT *font, HWND hWnd);
|
||||
double getFontPoint(LOGFONT *font, HWND hWnd);
|
||||
void readResourceFile(TCHAR *file);
|
||||
void readResourceItem(TCHAR *file, TCHAR *key, TCHAR *fallback);
|
||||
int readFontResource8(TCHAR *file);
|
||||
int readFontResource10(TCHAR *file);
|
||||
int readFontResource11(TCHAR* file);
|
||||
|
||||
Reference in New Issue
Block a user