Change font - yumunet/WoditorTranslationGallery GitHub Wiki
This page explains how to change the font of the UI.
Simply edit the FONT 9, "MS Shell Dlg"
part of the dialog box resource.
The 9
part refers to the font size, and the "MS Shell Dlg"
part refers to the font name.
However, because the dialog units change, the UI size also changes.
In version 3.500, font change feature was added, and font customization from resources became possible in version 3.600.
From this version onwards, changing the FONT
in the dialog box resource will only change the dialog units, and won't change the appearance of the font.
The default font for WOLF RPG Editor 3.5 and later is 11-point Meiryo UI. Meiryo UI is a font only for Japanese language environments, so it falls back to MS UI Gothic in other language environments. As a result, the default font is small and jagged, making it quite difficult to read.
Segoe UI font was added in version 3.6, but "中" (Medium) is 11-point, making it difficult to read, and "大" (Large) is 12-point, but scaling is set, making the UI larger.
The font settings in the editor options and the resource strings are as follows.
Font Setting | ID | String |
---|---|---|
Meiryo UI(太字) | 57608 | Meiryo UI<>SIZE=87<>BOLD=1<>H_OFFSET=-1<> |
Meiryo UI(大/UI崩れアリ) | 57614 | Meiryo UI<>SIZE=100<>BOLD=0<>H_OFFSET=-1<>WIDTH=108<> |
Meiryo UI(中)[標準] | 57605 | Meiryo UI<>SIZE=90<>BOLD=0<>H_OFFSET=-1<> |
Meiryo UI(小) | 57607 | Meiryo UI<>SIZE=80<>BOLD=0<>H_OFFSET=-1<> |
MS UIゴシック(太字) | 57610 | MS UI Gothic<>SIZE=90<>BOLD=1<>H_OFFSET=0<> |
MS UIゴシック(大/UI崩れアリ) | 57615 | MS UI Gothic<>SIZE=100<>BOLD=0<>H_OFFSET=0<>WIDTH=108<> |
MS UIゴシック(中) | 57606 | MS UI Gothic<>SIZE=90<>BOLD=0<>H_OFFSET=0<> |
MS UIゴシック(小) | 57609 | MS UI Gothic<>SIZE=80<>BOLD=0<>H_OFFSET=0<> |
Segoe UI(太字) | 57613 | Segoe UI<>SIZE=85<>BOLD=1<>H_OFFSET=-1<>WIDTH=110<>HEIGHT=106<> |
Segoe UI(大/UI崩れアリ) | 57638 | Segoe UI<>SIZE=100<>BOLD=0<>H_OFFSET=-1<>WIDTH=110<>HEIGHT=105<> |
Segoe UI(中) | 57611 | Segoe UI<>SIZE=85<>BOLD=0<>H_OFFSET=-1<>WIDTH=110<>HEIGHT=106<> |
Segoe UI(小) | 57612 | Segoe UI<>SIZE=70<>BOLD=0<>H_OFFSET=-1<> |
For example, this is a string of ID 57638.
Segoe UI<>SIZE=100<>BOLD=0<>H_OFFSET=-1<>WIDTH=110<>HEIGHT=105<>
- The font name is up to the first
<>
. -
<>
: Parameter delimiter -
SIZE
: Based on the standard font size (default is 13 pt, can be changed with theH_OFFSET
described later), set the percentage of that size. Decimals are rounded near 0.4. -
BOLD
: SetBOLD=1
to make the font bold. -
H_OFFSET
: Offset relative to the standard font size of 13 pt. IfH_OFFSET=-1
, the standard becomes 12 pt. -
WIDTH
: Percentage of the width of the controls and dialog boxes. -
HEIGHT
: Percentage of the height of the controls and dialog boxes.
The actual size was confirmed by sending a WM_GETFONT message using the Windows APIs. If you want to check with general software, I recommend Window Detective.
*Note that 10.4 is rounded up to 11, but 8.4 is rounded down to 8. I don't know the rules.
ID | SIZE |
H_OFFSET |
Calculation | Actual Size |
---|---|---|---|---|
57608 | 87 | -1 | (13 - 1) * (87 / 100) = 10.44 | 11 pt |
57614 | 100 | -1 | (13 - 1) * (100 / 100) = 12 | 12 pt |
57605 | 90 | -1 | (13 - 1) * (90 / 100) = 10.8 | 11 pt |
57607 | 80 | -1 | (13 - 1) * (80 / 100) = 9.6 | 10 pt |
57610 | 90 | 0 | 13 * (90 / 100) = 11.7 | 12 pt |
57615 | 100 | 0 | 13 * (100 / 100) = 13 | 13 pt |
57606 | 90 | 0 | 13 * (90 / 100) = 11.7 | 12 pt |
57609 | 80 | 0 | 13 * (80 / 100) = 10.4 | 11 pt |
57613 | 85 | -1 | (13 - 1) * (85 / 100) = 10.2 | 10 pt |
57638 | 100 | -1 | (13 - 1) * (100 / 100) = 12 | 12 pt |
57611 | 85 | -1 | (13 - 1) * (85 / 100) = 10.2 | 10 pt |
57612 | 70 | -1 | (13 - 1) * (70 / 100) = 8.4 | 8 pt |