Class Target_sun_awt_FontConfiguration

java.lang.Object
io.quarkus.awt.runtime.Target_sun_awt_FontConfiguration

final class Target_sun_awt_FontConfiguration extends Object
  • Field Details

    • osVersion

      protected static String osVersion
    • osName

      protected static String osName
  • Constructor Details

    • Target_sun_awt_FontConfiguration

      Target_sun_awt_FontConfiguration()
  • Method Details

    • setOsNameAndVersion

      protected void setOsNameAndVersion()
      AWT source code does not take into account a situation where "java.home" does not exist. It looks for default fonts in conf/fonts and lib dirs. It is O.K. if there are none as then system fonts are used instead. If the directory structure as such does not exist, the code path fails though. We create a dummy "java.home" in "java.io.tmpdir" and we set it at a reasonable place via substitution.