Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.4.35f1
2019.4.27f1
2020.2.0a1
2020.3.7f1
2021.1.5f1
2021.1.9f1
2021.2.0a14
Issue ID
1339803
Regression
Yes
GetPathsToOSFonts() and GetOSInstalledFontsNames() array lengths do not match
How to reproduce:
1. Open the attached "case_1339803.zip" project and Scene/SampleScene scene
2. Enter the Play mode
3. Observe the Console window
Expected result: GetPathsToOSFonts() Length and GetOSInstalledFontNames() Length is equal
Actual result: GetPathsToOSFonts() Length is 339 and GetOSInstalledFontNames() Length is 336
Reproducible with: 2018.4.35f1, 2019.4.6f1, 2019.4.27f1, 2020.1.0f1, 2020.2.0a1, 2020.2.0a19, 2020.3.7f1, 2020.3.11f1, 2021.1.5f1, 2021.1.9f1, 2021.2.0a14, 2021.2.0a18
Not reproducible with: 2018.4.34f1, 2019.4.7f1, 2019.4.26f1, 2020.1.1f1, 2020.1.17f1, 2020.2.0a20, 2020.3.6f1, 2021.1.0a1, 2021.1.4f1, 2021.2.0a1, 2021.2.0a13
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- Addressables Profiles and Analyze windows no minimum window size
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Resolution Note (2018.4.X):
This is not a regression in the sense that the GetOSInstalledFontNames() has never been able to correctly identify all OS installed fonts where it fails to differentiate between certain font family and style names. For instance, Arial and Arial Narrow or Arial Bold and Arial Narrow Bold.
Since this function is used by the legacy text system and Unity's internal font fallback, revising its implementation could potentially result in different fonts being picked which could become an issue for some users. As such and given this flawed logic has been in place for several years, it was left alone.
On the other hand, since the GetPathsToOSFonts() function is newer and not used by the legacy text system, it was recently revised to ensure that it does properly identify all system font family and style names.