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

QtSVG produces sub-optimal output w/SVG fonts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.6.2
    • SVG Support
    • None

      Currently QtSVG handles SVG fonts by converting the outlines to regular vector paths which are then rasterised. This produces output which is sub-optimal and inconsistent with other text in the application (freely scalable or otherwise).

      Ideally the following approach should be taken:
      1) If the systems native font rasterisation supports rendering arbitrary outlines and supports rendering freely scalable text then pass the SVG font outlines to the native rasteriser.
      2) Otherwise, if Qt is compiled with FreeType support pass the outlines to FreeType (with either NONE or SLIGHT hinting). It is important to respect the users preference for sub-pixel rendering.
      3) If neither are available fall back to path drawing (with sub-pixel rendering if possible – although this is currently not possible with Qt).

      I'll need to check if CoreText/ATSUI or Win32/DirectWrite supports rendering outlines (although plain Win32 does not support rendering freely scalable text, so is not really a contender).

      Corollary:
      I am the author of http://freddie.witherden.org/pages/font-rasterisation/

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

            matthias_rauter Matthias Rauter
            freddie Freddie Witherden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes