ColdWindScholar / MIO-KITCHEN-SOURCE

An Android Rom Tool in python
GNU Affero General Public License v3.0
227 stars 40 forks source link

UI font is specified by itself #8

Closed reindex-ot closed 1 month ago

reindex-ot commented 5 months ago

There is a problem that free fonts that have been installed are automatically specified. Japanese translation is provided, but the font is missing. UI

ookiineko commented 1 month ago

workarounded in #51

ookiineko commented 1 month ago

@ColdWindScholar pls reopen, its just a workaround, not a real fix

ookiineko commented 1 month ago

sorry for the confusion, it's indeed a bug

for reference, this turned out to be the cause: https://github.com/rdbende/Sun-Valley-ttk-theme/blob/12ee4ff/sv_ttk/sv.tcl#L13-L20

even if TkDefaultFont is Yu Gothic UI on Japanese locale systems already, sv_ttk is overriding it with its own set of font variants which hardcoded Segoe UI

finally the application couldn't find japanese characters in Segoe UI and fell back to use random installed japanese font (while it should use TkDefaultFont, the Yu Gothic

ookiineko commented 1 month ago

seems like we should just override the font family manually, at least sv_ttk upstream said this

upstream related issue: https://github.com/rdbende/Sun-Valley-ttk-theme/issues/66

so i guess it should be fixed in #53