My HTML JTextPane fonts appear to be one size too big under JDK 1.3.x when compared to JDK 1.4.x and later, why?
This was a long-standing problem prior to JDK 1.4 that was finally fixed (see Bug Parade 4285636 ). The tag: comes out one size too big under JDK 1.3.x compared to JDK 1.4.x and later or compared to standard browsers. To make your fonts come out consistently between JDK 1.3.x and JDK 1.4.x and later specify all your fonts in relative size: You can also use the HTML tags and . The same also applies to HTML in JLabel (see discussion under J2Label).
Related Questions
- My HTML JLabel fonts appear to be SansSerif, BOLD, 12, black under JDK 1.4 and later but Serif, PLAIN, 14, blue under JDK 1.3.x, why?
- My HTML JTextPane fonts appear to be one size too big under JDK 1.3.x when compared to JDK 1.4.x and later, why?
- My HTML JLabel fonts appear to be one size too big under JDK 1.3.x when compared to JDK 1.4.x and later, why?