Font modification tool for Warcraft III: Reforged.
- Choose a replacement font.
- If you have no idea, the bundled
sample-font.ttf
can be a good start. - Google Fonts and Font Squirrel are good places to find free fonts.
- Variable fonts are not supported. (Choose a “static instance” instead.)
- If you have no idea, the bundled
- Open the
War3R-FontMod
directory; then drag your font and drop it torun.bat
. A folderFonts
will be created in several seconds. - Move
Fonts
to Warcraft III installation directory,...\Warcraft III\_retail_\
(Retail) or,...\Warcraft III\_ptr_\
(PTR).
With GCC or Clang,
g++ src/phantom.cpp src/iostream.cpp -Isrc/ -std=c++17 -O2 -o phantom
Run (otfcc required)
otfccdump myfont.ttf -o myfont.otd
./phantom myfont.otd
otfccbuild myfont.otd -O2 -o out.ttf
for font in FRIZQT__ BLQ55Web BLQ85Web THOWR___ NimrodMT
do
cp out.ttf path/to/war3r/$font.ttf
done
otfcc is used to parse OpenType font files to JSON files and build them back to OpenType font files.
A modified nlohmann/json library is used to process JSON files.