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

Android: font size compatibility

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: QPA
    • Labels:
      None
    • Platform/s:
      Android
    • Technical Risk:
      Normal
    • Commits:
      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

            Assignee:
            tvete Paul Olav Tvete
            Reporter:
            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