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

Asian Font corruption on hardware where max viewport size is smaller than max texture size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.6.1
    • Quick: SceneGraph
    • None
    • Qt 5.6.1 on i.MX6

    Description

      On i.MX6 we have seen font corruption when using CJK fonts and putting serveral strings using CJK on the screen while on the same time having latin1 strings on the screen. Over the time, the latin1 texts would degrade to pixel dirt (see attached screenshot)

      Problem is that in the i.MX6's driver, the max size of the viewport is a bit smaller than the max size of a texture.

      The glyph cache will use the texture size for caching, but when applying the viewport, it will get clamped to smaller size.

      We solved this by making QSGDefaultDistanceFieldGlyphCache::maxTextureSize return the minimum of max texture size and max viewport size

      Issue was seen with Google's NotoCJK font and an inhouse font.

      Sorry, due to infrastructure issues I cannot provide a fix using Gerrit.

      Attachments

        For Gerrit Dashboard: QTBUG-56086
        # Subject Branch Project Status CR V

        Activity

          People

            sletta Gunnar Sletta
            jensgeorg Jens Georg
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change