Azzam Posted July 2, 2025 Share Posted July 2, 2025 I’m working on a localization mod for Don't Starve Together in Arabic, but I'm facing a key issue: The game doesn't include a font that supports Arabic characters, and any Arabic text appears as question marks (???). I’ve already generated a custom font using BMFont with full Arabic glyph support (the .fnt and .tex files are ready), and I confirmed that the characters are in the file. I want help from someone who understands how to properly integrate a custom font into the game so that Arabic text renders correctly in menus and dialogs. If anyone has experience with custom font injection for unsupported languages (like the Russian translation mods), or modifying the UI to use non-default fonts, I'd really appreciate some guidance. I'm not asking for full translation help — I'm specifically focused on getting the font to render Arabic characters properly inside the game's UI. 1 Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/ Share on other sites More sharing options...
Butterzi Posted July 2, 2025 Share Posted July 2, 2025 Try saving your Lua file with UTF-8 with BOM encoding. It seems that DST only recognizes Unicode correctly with this encoding format. Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825292 Share on other sites More sharing options...
Butterzi Posted July 2, 2025 Share Posted July 2, 2025 26 minutes ago, Butterzi said: Try saving your Lua file with UTF-8 with BOM encoding. It seems that DST only recognizes Unicode correctly with this encoding format. My bad, you need to save the file as UTF-8 without BOM. I was mistaken earlier—sorry about that. Also, make sure to disable this option in-game for it to display correctly. Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825301 Share on other sites More sharing options...
Azzam Posted July 2, 2025 Author Share Posted July 2, 2025 20 hours ago, Butterzi said: My bad, you need to save the file as UTF-8 without BOM. I was mistaken earlier—sorry about that. Also, make sure to disable this option in-game for it to display correctly. I did everything you said also. Its the game font that doesn't support Arabic characters so i tried to add my own font but I’m encountering a crash every time the game tries to load my custom font. The log shows this critical error: Failed to load font: ../mods/ArabicLanguage/fonts/Rubik.fnt (Rubik) It seems the game can’t read the .fnt/.tex files. Could you help me troubleshoot why it’s failing? Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825436 Share on other sites More sharing options...
Rickzzs Posted July 3, 2025 Share Posted July 3, 2025 Have you followed any guide when creating the font? Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825472 Share on other sites More sharing options...
Azzam Posted July 3, 2025 Author Share Posted July 3, 2025 Where can i find that guide? 10 hours ago, Rickzzs said: Have you followed any guide when creating the font? Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825529 Share on other sites More sharing options...
Capybara007 Posted July 3, 2025 Share Posted July 3, 2025 i think this thing in the dst FAQ has something to do with it https://support.klei.com/hc/en-us/articles/4412324300052-DST-All-of-my-game-s-text-has-changed-to-question-marks-and-I-cannot-fix-it Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825532 Share on other sites More sharing options...
Rickzzs Posted July 3, 2025 Share Posted July 3, 2025 3 hours ago, Azzam said: Where can i find that guide? Then send your font here and I may see if it works. I know a guide but it is written in Chinese. And I wrote a guide also in Chinese. Here is mine. https://www.bilibili.com/opus/761688484261920819 Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825563 Share on other sites More sharing options...
Azzam Posted July 3, 2025 Author Share Posted July 3, 2025 1 hour ago, Rickzzs said: Then send your font here and I may see if it works. I know a guide but it is written in Chinese. And I wrote a guide also in Chinese. Here is mine. https://www.bilibili.com/opus/761688484261920819 Thanks for the link, if i could contact you on Discord or Telegram for more information that would be better. Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825581 Share on other sites More sharing options...
Rickzzs Posted July 3, 2025 Share Posted July 3, 2025 1 hour ago, Azzam said: Thanks for the link, if i could contact you on Discord or Telegram for more information that would be better. My discord is rickzzzzzzzs Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825599 Share on other sites More sharing options...
Azzam Posted July 4, 2025 Author Share Posted July 4, 2025 35 minutes ago, Rickzzs said: My discord is rickzzzzzzzs i've sent you a friend request Link to comment https://forums.kleientertainment.com/forums/topic/166802-arabic-characters-showing-as-%E2%80%94-need-help-registering-custom-font-in-dst/#findComment-1825610 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now