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

Define what logical fonts mean for javafx

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7u6
    • javafx
    • None

      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 ?

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

              Created:
              Updated:
              Resolved:
              Imported: