disable font smoothing

This commit is contained in:
Vadim 2024-04-12 09:27:27 +02:00
parent 616f327f15
commit 351631bb8a
5 changed files with 13 additions and 8 deletions

View file

@ -54,7 +54,10 @@ jobs:
run: flutter analyze lib --fatal-infos
- name: Run tests
run: flutter test --dart-define cameraStubImage=assets/camera_stub_image.jpg
run: |
defaults -currentHost write -g AppleFontSmoothing -int 0
flutter test --dart-define cameraStubImage=assets/camera_stub_image.jpg
defaults -currentHost write -g AppleFontSmoothing
- name: Analyze project source with stub
if: steps.override-iap.conclusion != 'success'

View file

@ -45,10 +45,12 @@ jobs:
env:
UPDATE_GOLDENS: ${{inputs.update-goldens && '--update-goldens' || '' }}
run: |
defaults -currentHost write -g AppleFontSmoothing -int 0
goldens=$(find ./test -name "*_golden_test.dart" -print)
for f in $goldens; do
flutter test "$f" --dart-define cameraStubImage=assets/camera_stub_image.jpg "$UPDATE_GOLDENS"
done
defaults -currentHost write -g AppleFontSmoothing
- name: Commit changes
if: ${{ inputs.update-goldens }}

View file

@ -62,13 +62,13 @@ flutter:
uses-material-design: true
assets:
- assets/camera_stub_image.jpg
fonts:
- family: Roboto
fonts:
- asset: assets/fonts/Roboto-Regular.ttf
weight: 400
- asset: assets/fonts/Roboto-Medium.ttf
weight: 500
# fonts:
# - family: Roboto
# fonts:
# - asset: assets/fonts/Roboto-Regular.ttf
# weight: 400
# - asset: assets/fonts/Roboto-Medium.ttf
# weight: 500
flutter_intl:
enabled: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 465 KiB

After

Width:  |  Height:  |  Size: 488 KiB