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

Define what logical fonts mean for javafx

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
      None

      Description

      I was trying to understand what we are trying to accomplish with logical fonts in javafx.
      Initially I thought they were the jfx equivalent to generic font families used in CSS.
      But it didn't quite match, jfx provides:
      "System", "Serif", "SansSerif", "Monospaced"
      CSS:
      serif, sans-serif, monospace, cursive, fantasy

      Besides, I'm not sure how jfx would handle a font family list, for example:
      font-family: "Helvetica", "Arial", sans-serif;

      My next guess it that jfx logical fonts == AWT logical fonts.
      AWT:
      Dialog, DialogInput, Monospaced, Serif, SansSerif

      I think that is the case (jfx maps Dialog->SanSerif and DialogInput->Monospaced).

      As far as I tell, the logical font names are not mention in the javafx API (while AWT does).

      My questions are:
      -should logical fonts in jfx mapper to CSS names more closely ?
      -should (and how) this feature be described in the javadoc ?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              fheidric Felipe Heidrich (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: