[0.13/0.14] Font path wrong in mods (example code provided)
Posted: Wed Aug 31, 2016 4:11 am
I'm trying to add a font in a mod, with this path specified in /locale/en/font.cfg:
However, Factorio treats it as a subfolder of the main install folder, rather than my mod folder, giving this error message as a result:
Hopefully this is relatively easy to fix.
Related:
* info from Rseding91 about custom fonts
* older report of this error in modding forums - same bug on Windows
Code: Select all
[font]
glyph=__Glyph__/fonts/glyph.ttf
-- I also tried:
[font]
glyph=fonts/glyph.ttf
This error goes unnoticed in the 'core' mod that's bundled with factorio, but makes it impossible for mods to add their own fonts.Apple Mac wrote: Error when opening /Users/*****/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data/core/__Glyph__/fonts/glyph.ttf for reading: No such file or directory
Hopefully this is relatively easy to fix.
Related:
* info from Rseding91 about custom fonts
* older report of this error in modding forums - same bug on Windows