https://github.com/mzdm/czech_fonts_validator
An experimental Flutter app which validates Czech fonts.
https://github.com/mzdm/czech_fonts_validator
flutter flutter-app web
Last synced: 3 months ago
JSON representation
An experimental Flutter app which validates Czech fonts.
- Host: GitHub
- URL: https://github.com/mzdm/czech_fonts_validator
- Owner: mzdm
- Created: 2021-01-28T11:05:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-24T11:56:32.000Z (over 4 years ago)
- Last Synced: 2025-01-02T02:43:17.097Z (5 months ago)
- Topics: flutter, flutter-app, web
- Language: Dart
- Homepage: https://gray-meadow-0950e7203.azurestaticapps.net/
- Size: 214 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# czech_fonts_validator
An **experimental** Flutter app which validates Czech fonts.
[Static Web App Preview](https://gray-meadow-0950e7203.azurestaticapps.net/)
### Usages
- [czech_fonts](https://github.com/mzdm/czech_fonts) JSON file with Czech fonts, generated by this app
- [google_language_fonts](https://pub.dev/packages/google_language_fonts) A Flutter package, use fonts with languages subsets### Run
It is recommended to run the app only on the **Web and/or Windows** to avoid inaccurate results in the confidence calculation (especially on mobile due to the small screen size).
```
flutter channel beta
flutter upgrade
flutter config --enable-web
flutter pub get
flutter run -d chrome --web-renderer=html
```### How it works
The app fetches all [Latin Extended](https://fonts.google.com/?subset=latin-ext) font names from Google Fonts from [this generated JSON file](https://github.com/mzdm/google-language-fonts-flutter/blob/master/generator/lang_font_subsets/fonts.json). Latin Extended fonts should include also letters from the Czech alphabet however there are still some fonts that don't support these letters.This app renders both Latin Extended and Czech test phrase and then calculates the relative difference in width & height sizes and calculates the so-called **confidence**.
Confidence HIGHEST means that the font most certainly supports all letters from the Czech alphabet. On the other side, LOWEST means that the font contains unsupported characters.
If you have any notes or an improvement feel free to post an [issue](https://github.com/mzdm/czech_fonts_validator/issues/new/choose) or straight up PR.