PawelTroka / Computator.NET

Computator.NET is a special kind of numerical software that is fast and easy to use but not worse than others feature-wise. It's features include: - Real and complex functions charts - Real and complex calculator - Real functions numerical calculations including different methods - Over 107 Elementary functions - Over 141 Special functions - Over 21 Matrix functions and operations - Scripting language with power to easy computations including matrices - You can declare your own custom functions with scripting language
GNU General Public License v3.0
233 stars 51 forks source link

Application crash - Font does not support style 'Regular' in Windows Store v2.2.2 version #84

Closed PawelTroka closed 7 years ago

PawelTroka commented 7 years ago

We have some new errors reports in developer dashboard image

This is related to issue #82. However after investigation it turns out that fix introduced in #82 is not sufficient to prevent application from crashing during startup in some environments.

This whole issue in just appeared in 2.2.2 because of it's optimized build process for Windows Store (#75) where we convert app manually instead of using Desktop App Converter and we actually missed registry hive where application's fonts are installed. Below is view of registry hive from version 2.2.1 where it was still present. image

So now after #82 is done on master we would no longer have this issue in Settings but we will have it in other areas of application where we use new Font("Cambria", 15.75F, GraphicsUnit.Point) or new Font("Consolas", 12, GraphicsUnit.Point) because user might not have those fonts.

Fix is relatively simple -> we need registry hive with entries in REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts.

PawelTroka commented 7 years ago

Resolved with commit e34fad8