Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-859

Batik CSS Scanner does not handle unicode-range correctly

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.6
    • None
    • CSS
    • Operating System: Windows XP
      Platform: PC

    Description

      Batik's org.apache.batik.css.parser.Scanner class's nextToken() method has a section to handle when a "U" character is followed by a "+" character, as is typically the case for unicode character ranges specified in CSS-2 style @font-face rules.

      For example, a simple unicode range might look like this:

      @font-face {
      src:url("myfont.ttf");
      unicode-range: U+0030-U+0039;
      }

      However, there can be multiple entries in the ranges separated by a comma, and each entry can be just a single character, or include wild cards too. It seems the Batik CSS Scanner does not take these multiple entries into consideration.

      @font-face {
      src:url("myfont.ttf");
      unicode-range: U+0030-U+0039,U+002E;
      }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            pfarland@adobe.com Peter Farland

            Dates

              Created:
              Updated:

              Slack

                Issue deployment