How daysloving/nomeiryoui works
Project type and purpose
• This is a native Windows desktop application written in C++ (Visual Studio solution) that restores the ability to customize system UI fonts by reading and writing Windows registry entries. It also ships with multi-language support and offline HTML help files.
File structure
• Top-level directories:
• help/… – localized HTML/CHM help for multiple locales (en-US, ja-JP, etc.)
• lang/… – plain text “.lng” files for UI translations
• program/… – C++ source, headers, Visual Studio project files, resources
• util/… – batch scripts to save/restore registry and a small locale test binary
• Key patterns:
• program/TWR – a lightweight dialog framework (BaseDialog, ModelessDialog, TwrCore, etc.)
• program/iniReader.* – INI parser for configuration or language loading
• noMeiryoUI.*.vcproj/.sln – build and deployment scripts
• External dependencies: Windows Registry APIs, Win32 UI, resource compiler, CHM viewer.
README for additional insights
• Confirms registry-based font customization for Windows 8+ (with known Win11 limitations).
• Mentions backing up HKCU\Control Panel before changes (ties directly to util/SAVEreg.bat).
• Points to a GitHub wiki for extended documentation (out of band).
a. Main components
1. UI Layer
– Dialog classes (TwrWnd, TwrMenu, TwrCheckbox, TwrCombobox)
– Application bootstrap (AppliBase, DialogAppliBase)
2. Core Engine
– TwrCore: orchestrates registry read/write, applies font settings
– iniReader: loads configuration (possibly registry keys to set)
3. Configuration & Localization
– .lng files under lang/
4. Data Store
– Windows Registry (“HKCU\Control Panel\…\fonts” etc.)
5. Help System
– Localized HTML/HH files under help/…
– .hhc Table of Contents, .hhp project files
6. Utilities
– SAVEreg.bat / RESTOREreg.bat – backup/restore scripts
– localetest.exe – tool to verify locale strings
b. Relationships & data flow
– UI Layer ← reads → Localization (.lng, resources)
– UI Layer → invokes → Core Engine (TwrCore)
– Core Engine ↔ Windows Registry (apply or read font settings)
– UI Layer → launches → Help System (calls default CHM viewer)
– Utilities operate offline on Registry branch
c. Architectural patterns
– MVC-style separation: Dialog (View), TwrCore (Controller/Model)
– Plugin-like language files (extensible by adding new .lng)
– Resource-based UI (Win32 resource compiler)
d. Key technologies
– Win32 API (dialogs, menus, registry)
– Visual C++ / MFC-free lightweight wrapper (TWR)
– INI file parsing library (iniReader)
– HTML/CHM for help documentation