[0.17.24] some sybols not visible

This subforum contains all the issues which we already resolved.
FMRx
Inserter
Inserter
Posts: 23
Joined: Sat Feb 14, 2015 10:13 am
Contact:

[0.17.24] some sybols not visible

Post by FMRx »

after 0.17.24 patch some symbols drawn as [] in train menu ( like unknown in Windows )
at now i see 3 of them ">=" , "<=" and i forgot 3rd :)
Attachments
0.17.24_text_bug.png
0.17.24_text_bug.png (37.09 KiB) Viewed 3156 times
Shogal
Inserter
Inserter
Posts: 29
Joined: Tue Mar 05, 2019 1:46 am
Contact:

Re: [0.17.24] some sybols not visible

Post by Shogal »

I even know what causes this bug.

Current font list for Russian is:

Code: Select all

{
  "completed": 100,
  "language-name": "Русский",
  "font": {
    "default":
    [
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ],
    "default-bold":
    [
      "__core__/fonts/NotoSans-Bold.ttf",
      "__core__/fonts/Sunflower-Bold.ttf",
      "__core__/fonts/NotoSans-Bold.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Bold.ttf",
      "__core__/fonts/NotoSansArabic-Bold.ttf",
      "__core__/fonts/NotoSansHebrew-Bold.ttf"
    ],
    "default-mono":
    [
      "__core__/fonts/NotoMono-Regular.ttf",
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ],
    "default-semibold":
    [
      "__core__/fonts/NotoSans-SemiBold.ttf",
      "__core__/fonts/Sunflower-Bold.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-SemiBold.ttf",
      "__core__/fonts/NotoSansArabic-SemiBold.ttf",
      "__core__/fonts/NotoSansHebrew-SemiBold.ttf"
    ],
    "locale-pick":
    [
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ],
    "scenario-message-dialog":
    [
      "__core__/fonts/NotoMono-Regular.ttf",
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ]
  }
}
I checked these fonts and no one contains U+2260, U+2264, U+2264 characters (≠, ≤, ≥).

To fix this, for example, add English default fonts as fallback (to file data/core/locale/ru/info.json):

Code: Select all

{
  "completed": 100,
  "language-name": "Русский",
  "font": {
    "default":
    [
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/TitilliumWeb-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ],
    "default-bold":
    [
      "__core__/fonts/NotoSans-Bold.ttf",
      "__core__/fonts/TitilliumWeb-Bold.ttf",
      "__core__/fonts/Sunflower-Bold.ttf",
      "__core__/fonts/NotoSans-Bold.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Bold.ttf",
      "__core__/fonts/NotoSansArabic-Bold.ttf",
      "__core__/fonts/NotoSansHebrew-Bold.ttf"
    ],
    "default-mono":
    [
      "__core__/fonts/NotoMono-Regular.ttf",
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ],
    "default-semibold":
    [
      "__core__/fonts/NotoSans-SemiBold.ttf",
      "__core__/fonts/TitilliumWeb-SemiBold.ttf",
      "__core__/fonts/Sunflower-Bold.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-SemiBold.ttf",
      "__core__/fonts/NotoSansArabic-SemiBold.ttf",
      "__core__/fonts/NotoSansHebrew-SemiBold.ttf"
    ],
    "locale-pick":
    [
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ],
    "scenario-message-dialog":
    [
      "__core__/fonts/NotoMono-Regular.ttf",
      "__core__/fonts/NotoSans-Regular.ttf",
      "__core__/fonts/Sunflower-Medium.ttf",
      "__core__/fonts/DroidSansFallback.ttf",
      "__core__/fonts/NotoSansThai-Regular.ttf",
      "__core__/fonts/NotoSansArabic-Regular.ttf",
      "__core__/fonts/NotoSansHebrew-Regular.ttf"
    ]
  }
}
Also, previous font (Lato) was much better as its line height was similar to TitilliumWeb (which is used as English font), and it occupied less space. I don't know why developers removed it in 0.17.24, license allows to use it in commercial projects.
posila
Factorio Staff
Factorio Staff
Posts: 5371
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.24] some sybols not visible

Post by posila »

Thanks for the report.
Fixed for 0.17.25
Post Reply

Return to “Resolved Problems and Bugs”