Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8318416

Superscript marks should use consistent font style

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 21
    • tools
    • None
    • b26
    • generic
    • generic

      We use superscript marks in JavaDoc to mark API elements as preview features or restricted methods. Currently, these superscript marks are not explicitly styled (except for font size), meaning they inherit style properties from their parent element. Since this is not the link but the container of the link, superscript links for code elements ofthen use a serif or sans-serif proportional font instead of the monospaced code font as the main link (see attached screenshot).

      It would be visually more consistent to use a consistent style for superscript marks. This should include font family and weight. It may also be a good idea to define a background color to visually detatch superscript marks from the surrounding text.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: