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 run: flutter analyze lib --fatal-infos
- name: Run tests - 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 - name: Analyze project source with stub
if: steps.override-iap.conclusion != 'success' if: steps.override-iap.conclusion != 'success'

View file

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

View file

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