Skip to content

[Modding] Font and Translation System#6643

Draft
Jepvid wants to merge 5 commits into
HarbourMasters:developfrom
Jepvid:CustomFontSupport
Draft

[Modding] Font and Translation System#6643
Jepvid wants to merge 5 commits into
HarbourMasters:developfrom
Jepvid:CustomFontSupport

Conversation

@Jepvid
Copy link
Copy Markdown
Contributor

@Jepvid Jepvid commented May 25, 2026

This is a bigger pr than what I am used to and will also admit that this have been AI assisted. That said I have done my best to sanity check everything and tested alot of edge cases.

This will implement a system to allow fonts to be used with SoH. Both .otf and .ttf files are supported.

It works by disabling text draw and use imgui to draw the font on top of the textbox. If no translation file is used then it will read and display the normal ingame messages

When a translation file is in use customfont.cpp takes over and inserts the new text rather than reading what the game is trying to display.

i have made a page explaning more for mod makers over at https://the-harbour-ashen.vercel.app/docs/ship-of-harkinian/mod-tutorials/custom-font

This only works on whats displayed in text boxes. File select screen and texture applied text are handled elsewhere.

Build Artifacts

@Jepvid Jepvid marked this pull request as draft May 25, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant