jpcima / fmcomposer

Music and sound creation tool, featuring an FM synthesizer and a tracker-like interface
GNU General Public License v3.0
3 stars 0 forks source link

Fix font not showing on buttons, settings, etc. #1

Open rambit opened 4 years ago

rambit commented 4 years ago

I think it happens because lang/langs.ini is not included in the repo.

Changing the last parameter in lang.cpp to below line seems to fix it, but perhaps the real fix is to generate a new langs.ini if can figure out its structure.

return ini_lang.GetValue(section, key, key);

jpcima commented 4 years ago

An example of SimpleIni:

A random example from code:

texts[1].setString(lang("effects", "D_range"));

An ini file is expected to be in this form:

[effects]
D_range = something
rambit commented 4 years ago

The English language is built-in the code. An example is the Go to the website string used in the info dialog.