开发者

AWT text measuring implementations

开发者 https://www.devze.com 2023-01-05 01:10 出处:网络
The Java 6 (J2SE) implementation of AttributedString, TextLayout, and LineBre开发者_运维百科akMeasurer classes use anti-aliasing properties and fractional math for metrics calculations. This causes a

The Java 6 (J2SE) implementation of AttributedString, TextLayout, and LineBre开发者_运维百科akMeasurer classes use anti-aliasing properties and fractional math for metrics calculations. This causes a severe performance penalty.

What suggestions (for Cent OS Linux) do you have to increase performance? Such as:

  • A faster JVM (JDK 1.7, Oracle's JRockit, IBM)
  • A different AWT implementation (any?)

Thank you!


Does the java.awt.FontMetrics class give any better performance? It may still be used by the classes you've mentioned, but it's a pre-Java 6 implementation at least.

0

精彩评论

暂无评论...
验证码 换一张
取 消