# tatsu-syo/nomeiryoui architecture

> Architecture diagram of the GitHub repository tatsu-syo/nomeiryoui, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tatsu-syo/nomeiryoui
- Repository: https://github.com/tatsu-syo/nomeiryoui

## Overview

No!! MeiryoUI is a Windows desktop utility for customizing system interface fonts. Users choose fonts and sizes for system UI elements, optionally load or save font settings, then apply the settings to Windows; the README confirms that applying changes modifies the registry. The application also provides Windows-version presets, localized UI, and country-specific font fallback. The main dialog and font selector are sampled, but several supporting implementations are not, so uncertain links are omitted or marked dashed.

Main entry points: [`program/noMeiryoUI.cpp`](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/noMeiryoUI.cpp) (Main Dialog), [`program/FontSel.cpp`](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/FontSel.cpp) (Font Selector), [`program/util.cpp`](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/util.cpp) (Font And DPI Utilities), [`program/TWR`](https://github.com/tatsu-syo/nomeiryoui/tree/master/program/TWR) (Dialog Framework)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Application UI"]
  node_main["Main Dialog<br/>[noMeiryoUI.cpp]"]
  node_dialog_framework["Dialog Framework"]
  node_menus["Application Menu<br/>[TwrMenu.cpp]"]
  node_localization["Localized Text<br/>[langresource.cpp]"]
end

subgraph group_fonts["Font Selection"]
  node_font_selector["Font Selector<br/>[FontSel.cpp]"]
  node_font_controls["Selector Controls"]
  node_font_catalog["Installed Fonts<br/>[FontSel.cpp]"]
  node_country_fallback["Country Font Fallback"]
end

subgraph group_settings["Settings And Presets"]
  node_settings_files["Font Settings Files<br/>[noMeiryoUI.cpp]"]
  node_ini_reader["INI Reader<br/>[iniReader.cpp]"]
  node_preset_data["OS Font Presets<br/>[util.cpp]"]
  node_utility_logic["Font And DPI Utilities<br/>[util.cpp]"]
end

subgraph group_platform["Windows Integration"]
  node_windows["Windows"]
  node_file_dialog["File Dialog<br/>[NCFileDialog.cpp]"]
end

node_user(("Desktop User"))

node_user -->|"opens and configures"| node_main
node_main -.->|"uses dialog base"| node_dialog_framework
node_main -->|"creates menu"| node_menus
node_main -->|"opens selector"| node_font_selector
node_font_selector -->|"creates controls"| node_font_controls
node_font_selector -->|"enumerates fonts"| node_font_catalog
node_font_selector -.->|"uses locale fallback"| node_country_fallback
node_main -->|"opens file dialog"| node_file_dialog
node_main -->|"loads and saves"| node_settings_files
node_main -.->|"loads OS presets"| node_preset_data
node_main -.->|"uses font utilities"| node_utility_logic
node_utility_logic -.->|"uses INI reader"| node_ini_reader
node_main -.->|"loads localized text"| node_localization
node_main -->|"reads system fonts"| node_windows
node_main -->|"applies system fonts"| node_windows
node_settings_files -.->|"settings alter registry"| node_windows

click node_main "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/noMeiryoUI.cpp"
click node_dialog_framework "https://github.com/tatsu-syo/nomeiryoui/tree/master/program/TWR"
click node_menus "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/TWR/TwrMenu.cpp"
click node_localization "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/langresource.cpp"
click node_font_selector "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/FontSel.cpp"
click node_font_controls "https://github.com/tatsu-syo/nomeiryoui/tree/master/program/TWR"
click node_font_catalog "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/FontSel.cpp"
click node_country_fallback "https://github.com/tatsu-syo/nomeiryoui/tree/master/program/country"
click node_settings_files "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/noMeiryoUI.cpp"
click node_ini_reader "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/iniReader.cpp"
click node_preset_data "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/util.cpp"
click node_utility_logic "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/util.cpp"
click node_file_dialog "https://github.com/tatsu-syo/nomeiryoui/blob/master/program/TWR/NCFileDialog.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_dialog_framework,node_menus,node_localization,node_user toneBlue
class node_font_selector,node_font_controls,node_font_catalog,node_country_fallback toneAmber
class node_settings_files,node_ini_reader,node_preset_data,node_utility_logic toneMint
class node_windows,node_file_dialog toneRose
```

## Components

### Application UI

- [Main Dialog](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/noMeiryoUI.cpp): `program/noMeiryoUI.cpp`
- [Dialog Framework](https://github.com/tatsu-syo/nomeiryoui/tree/master/program/TWR): `program/TWR`
- [Application Menu](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/TWR/TwrMenu.cpp): `program/TWR/TwrMenu.cpp`
- [Localized Text](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/langresource.cpp): `program/langresource.cpp`

### Font Selection

- [Font Selector](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/FontSel.cpp): `program/FontSel.cpp`
- [Selector Controls](https://github.com/tatsu-syo/nomeiryoui/tree/master/program/TWR): `program/TWR`
- [Installed Fonts](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/FontSel.cpp): `program/FontSel.cpp`
- [Country Font Fallback](https://github.com/tatsu-syo/nomeiryoui/tree/master/program/country): `program/country`

### Settings And Presets

- [Font Settings Files](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/noMeiryoUI.cpp): `program/noMeiryoUI.cpp`
- [INI Reader](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/iniReader.cpp): `program/iniReader.cpp`
- [OS Font Presets](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/util.cpp): `program/util.cpp`
- [Font And DPI Utilities](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/util.cpp): `program/util.cpp`

### Windows Integration

- **Windows**
- [File Dialog](https://github.com/tatsu-syo/nomeiryoui/blob/master/program/TWR/NCFileDialog.cpp): `program/TWR/NCFileDialog.cpp`

### Other components

- **Desktop User**

## Connections

- Desktop User → Main Dialog: opens and configures (evidence: `README.md`)
- Main Dialog → Dialog Framework: uses dialog base (evidence: `program/noMeiryoUI.cpp`)
- Main Dialog → Application Menu: creates menu (evidence: `program/noMeiryoUI.cpp`)
- Main Dialog → Font Selector: opens selector (evidence: `program/noMeiryoUI.cpp`)
- Font Selector → Selector Controls: creates controls (evidence: `program/FontSel.cpp`)
- Font Selector → Installed Fonts: enumerates fonts (evidence: `program/FontSel.cpp`)
- Font Selector → Country Font Fallback: uses locale fallback (evidence: `program/FontSel.cpp`)
- Main Dialog → File Dialog: opens file dialog (evidence: `program/noMeiryoUI.cpp`)
- Main Dialog → Font Settings Files: loads and saves (evidence: `program/noMeiryoUI.cpp`)
- Main Dialog → OS Font Presets: loads OS presets
- Main Dialog → Font And DPI Utilities: uses font utilities
- Font And DPI Utilities → INI Reader: uses INI reader
- Main Dialog → Localized Text: loads localized text
- Main Dialog → Windows: reads system fonts (evidence: `program/noMeiryoUI.cpp`)
- Main Dialog → Windows: applies system fonts (evidence: `program/noMeiryoUI.cpp`)
- Font Settings Files → Windows: settings alter registry (evidence: `README.md`)
