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?
This was a long-standing problem that was finally fixed in JDK 1.4 (see Bug Parade 4285636 ). The tag: comes out one size too big under JDK 1.3 and 1.3.1 compared to JDK 1.4 and later or compared to standard browsers. To make your fonts come out consistently between JDK 1.3.x and JDK 1.4 and later, specify all your fonts in relative size: The same also applies to HTML in JTextPane or JEditorPane. You can also use the HTML tags and to go up or down one size, respectively.
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?