nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
915 stars 275 forks source link

[IDEA] Enable administrator font configuration #4780

Open thisispaco opened 2 years ago

thisispaco commented 2 years ago

Expose UIConstants font parameters to the administrator configuration to be able to change font size and type.

// fonts public static final String MONOSPACED_FONT_NAME = SystemUtils.IS_OS_MAC ? "Courier" : "Monospaced"; public static final Font TEXTFIELD_PLAIN_FONT = new Font("Tahoma", Font.PLAIN, 11); public static final Font TEXTFIELD_BOLD_FONT = new Font("Tahoma", Font.BOLD, 11); public static final Font BANNER_FONT = new Font("Arial", Font.BOLD, 36); public static final Font DIALOG_FONT = new Font("Dialog", Font.PLAIN, 12); public static final Font MONOSPACED_FONT = new Font(MONOSPACED_FONT_NAME, Font.PLAIN, 12);

jonbartels commented 2 years ago

I cannot find links quickly but this may be relevant to some long standing historic issues for:

Letting the user change fonts may help mitigate those other issues.

tonygermano commented 2 years ago
  • Issues with MS fonts (like Tahoma) on Linux systems (easy workaround to install a font pack though)

It's actually not an easy workaround. Tahoma is not a free font and previous workarounds no longer work.

The problem with the Linux replacement font for Tahoma - or changing fonts in general - is that many labels and data grid columns are sized to fit the hard-coded font and are not adjustable. This leads to things being truncated and difficult to read.

tonygermano commented 2 years ago

Related to https://github.com/nextgenhealthcare/connect/issues/4527, https://github.com/nextgenhealthcare/connect/issues/4019, https://github.com/nextgenhealthcare/connect/issues/2129

Possible duplicate of https://github.com/nextgenhealthcare/connect/issues/3251 and https://github.com/nextgenhealthcare/connect/issues/2582, the second of which I already requested to be reopened

flugruger commented 2 years ago

Expose UIConstants font parameters to the administrator configuration to be able to change font size and type.

// fonts public static final String MONOSPACED_FONT_NAME = SystemUtils.IS_OS_MAC ? "Courier" : "Monospaced"; public static final Font TEXTFIELD_PLAIN_FONT = new Font("Tahoma", Font.PLAIN, 11); public static final Font TEXTFIELD_BOLD_FONT = new Font("Tahoma", Font.BOLD, 11); public static final Font BANNER_FONT = new Font("Arial", Font.BOLD, 36); public static final Font DIALOG_FONT = new Font("Dialog", Font.PLAIN, 12); public static final Font MONOSPACED_FONT = new Font(MONOSPACED_FONT_NAME, Font.PLAIN, 12);

I agree that the Administrator tool would be better if it supported font changes.

In the meantime, are these UIConstants somewhere I can manually edit?