Skip to content

Text on desktop Windows 10 looks rough(no antialiasing) #53308

Open

Description

@nerocui

Flutter channel: master
Flutter version: 1.16.3-pre.40
Windows 10 build: 19592
Monitor native resolution: 3840x2160
System resolution: 2560x1440
Scaling: 100%
Annotation-2020-03-25-141948.png

Left is flutter, right is UWP(expected text smoothing)

A more closed up screenshot comparison
flutter.png
flutter
uwp.png
uwp

Reproduction steps:
In powershell, run
$env:ENABLE_FLUTTER_DESKTOP="true"
In terminal, run
flutter config --enable-windows-desktop
flutter create <your-app-name>
flutter run -d windows
See the text on the screen for result

Activity

  1. timsneath commented on Mar 25, 2020

    @timsneath

    Can you give us the results of flutter doctor -v just for completeness? I haven't seen this on my machine... This is the five hour-old Windows Insider build, right? Have you seen this on older builds?

  2. nerocui commented on Mar 25, 2020

    @nerocui
    Author

    [✓] Flutter (Channel master, v1.16.3-pre.40, on Microsoft Windows [Version 10.0.19592.1001], locale en-US)
    • Flutter version 1.16.3-pre.40 at C:\src\flutter
    • Framework revision ec3653f (4 hours ago), 2020-03-25 11:57:05 -0700
    • Engine revision 9459670
    • Dart version 2.8.0 (build 2.8.0-dev.17.0 62f84880ef)

    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\Nero\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

    [✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.5.1)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.5.29920.165

    [✓] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

    [✓] VS Code (version 1.43.1)
    • VS Code at C:\Users\Nero\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.8.1

    [✓] Connected device (1 available)
    • Windows • Windows • windows-x64 • Microsoft Windows [Version 10.0.19592.1001]

    • No issues found!

  3. nerocui commented on Mar 25, 2020

    @nerocui
    Author

    @timsneath Yes it's a new windows insider build. I have not yet tried it on other builds. I can do it tho, testing in something like a vm.

  4. clarkezone commented on Mar 26, 2020

    @clarkezone
    Contributor

    Is the UWP using XAML for the text?

  5. nerocui commented on Mar 26, 2020

    @nerocui
    Author

    @clarkezone Yes it's a text block.

  6. clarkezone commented on Mar 26, 2020

    @clarkezone
    Contributor

    What font are you using in each case?

  7. nerocui commented on Mar 26, 2020

    @nerocui
    Author

    @clarkezone both default. I didn't change font family, font size or font weight.

  8. clarkezone commented on Mar 26, 2020

    @clarkezone
    Contributor

    Also how do they compare if you increase the scaling to 150%. We’ve implemented per monitor V2 DPI support in flutter on windows so on a high DPI display with scaling set at an appropriate value, the perceived quality should be better than when running at 100% as there are more pixels to antialias over.

  9. clarkezone commented on Mar 26, 2020

    @clarkezone
    Contributor

    @clarkezone both default. I didn't change font family, font size or font weight.

    It’s not an apples to apples comparison if you are using different fonts.

  10. nerocui commented on Mar 26, 2020

    @nerocui
    Author

    New screenshots, both using Lato font, 14 font size, 400 font weight. Taken on both 100% scaling and 150% scaling.
    samefontflutter.png
    Flutter at 100% scaling
    samefontuwp.png
    UWP at 100% scaling
    samefontflutter150.png
    Flutter at 150% scaling
    samefontuwp150.png
    UWP at 150% scaling

  11. timsneath commented on Mar 26, 2020

    @timsneath

    Looking at those two screenshots, I'm still seeing a difference in the font being rendered: only the Flutter screenshot is Lato. Compare the descenders on the lower case letter 'y' with the Google Fonts Lato page.

    Sorry to continue to push on this, but having a like-for-like comparison is important. It may simply be that what you're observing is the result of these font differences, or simply expected differences between different text shaping engines. (Windows itself isn't pixel-identical for font rendering across WinForms, WPF and UWP, for example, at least last time I worked on it.)

  12. 18 remaining items

  13. asmith20002 commented on Mar 27, 2022

    @asmith20002

    This issue is still there. Text on windows looks bad.

  14. emexal-company commented on May 19, 2022

    @emexal-company

    I 've just downloaded the application https://www.appflowy.io/, and I'm seeing the font rendering on Windows 10 is very bad. The application is almost unusable because of that.

  15. removed their assignment
    on Jun 24, 2022
  16. sirgru commented on Sep 14, 2022

    @sirgru

    This is extremely disappointing. Please look into #63043

  17. added
    team-windowsOwned by the Windows platform team
    and removed on Jun 6, 2024
  18. flutter-triage-bot commented on Jun 7, 2024

    @flutter-triage-bot

    The triaged-desktop label is irrelevant if there is no team-desktop label or fyi-desktop label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: desktopRunning on desktopa: typographyText rendering, possibly libtxtengineflutter/engine related. See also e: labels.platform-windowsBuilding on or for Windows specificallyteam-windowsOwned by the Windows platform teamtriaged-windowsTriaged by the Windows platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions