Font - add getters for weight and posture

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: javafx
    • None

      I just wanted to implement a listeners that changes the font size in the TextField if certain conditions are met. Turns out this seams to be not doable if I would like to preserve the font weight and posture. Why ? Because:
      - I cannot change the the properties of a Font object,
      - I have the font method but to create a new Font object but there are not getters for weight and posture,
      - the class is final.

      Personally I view this as a design bug (btw. the whole Font class seams to be a bad example of OPP). Lets at least overcome this by adding those two getters.

            Assignee:
            Unassigned
            Reporter:
            Adam Walczak (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: