Skip to content

Introduce a Font class #11

Description

@rolve

To streamline working with fonts, we may want to add a Font class that contains all the properties that are otherwise set independently using setFontFamily, setFontSize, setBold and setItalic, like we have a Color class in addition to specifying RGB values as ints.

Besides usability gains, such a class could also have positive effects on performance, avoiding repeated internal creation of java.awt.Font objects.

It may make sense to move stringWidth from Gui to this Font class.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions