Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32096

Android: font size compatibility

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P1: Critical
    • 5.2.0
    • None
    • QPA
    • None
    • Android
    • ffa4de4bec01335eb63016f0e89b568fb7416ea8

    Description

      We set logicalDPI based on DisplayMetrics.scaledDensity which we get from Android (as described in QTBUG-29674). This affects how fonts with a certain point size will be displayed. Currently we have chosen a scaling factor that makes unmodified desktop apps look sensible.

      On iOS, on the other hand, Apple specifies a logical DPI of 72, which means that a font that looks sensible on the desktop will be very small on an iOS device. This means that apps need to use different point sizes on iOS and Android.

      We probably need to re-evaluate this decision. At least we need a convenient and well-documented way to create apps that work on both iOS and Android.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tvete Paul Olav Tvete
            tvete Paul Olav Tvete
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes