Implement AWT Text Dimensions

The implementation of Java 6 (J2SE) classes AttributedString, TextLayoutand LineBreakMeasureruses smoothing properties and fractional mathematics to calculate metrics. This leads to a serious decrease in performance.

What suggestions (for Cent OS Linux) do you need to improve performance? For instance:

  • Faster JVM (JDK 1.7, Oracle JRockit, IBM)
  • Different AWT implementation (any?)

Thank!

+3
source share
1 answer

Is the class different java.awt.FontMetrics? It can still be used by the classes you mentioned, but at least it's a pre-Java implementation.

+1
source

Source: https://habr.com/ru/post/1751933/


All Articles