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

Add support for text shadows

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • Some future release
    • GUI: Text handling
    • None

    Description

      Add support for text shadows, ideally based on the CSS level 3 'text-shadow' property.

      This website has examples of what can be accomplished:
      http://www.w3.org/Style/Examples/007/text-shadow

      Shadows would be a character property and specified by a list of a set of character properties (offset-x, offset-y, blur radius, and color). Multiple shadows may be specified/drawn per character (as per the 'text-shadow' specification).

      This change would involve extending QTextFormat and QTextCharFormat to record the shadow format for text characters. It would also involve several changes to the QTextDocument group of classes to record, store, and draw shadowed characters.

      Character properties are currently treated as attributes (i.e. a given property has a single value). Since 'text-shadow' may not follow this pattern (it would have a list of shadows), it would be acceptable to have a fixed maximum number of shadows, perhaps four (4), to facilitate the drawing letters as outlines.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            cmeyer Chris Meyer
            Votes:
            22 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes