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

Set font size in cap height

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • GUI: Font handling
    • None

    Description

      The current ways of specifying font size are quite problematic in UI assuming an exact text height: different fonts can have different height at one pixel size. Would be very nice if Qt had API to specify cap height instead and Qt would automatically find the right font sizes for all the fonts (including fallback fonts) used by the text rendered with such QFont set.

      Here's an interesting article which looks related to the problem: https://tonsky.me/blog/font-size/. The line height part is interesting as well as different fonts seem to be rendered having the center higher or lower which is apparently related to that and would be nice to get rid of, too.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ilya-fedin Ilya Fedin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes