-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
kestrel
-
sparc
-
solaris_2.6
> 1. Many of the fonts do not respond to style and size changes and many of the
> fonts do not register at all. For example, if you already have Arial and then
> you choose Arial Narrow and press Render, the string doesn't change. Do you
> think that this problem might be particular to the font? Some common fonts do
> work, like Helvetica. -Jennifer Ball
It looks like the mapping of font styles to font names is broken for some of the fonts. There is a 'Arial Narrow MT Bold Italic' font so when specifying
Font("Arial Narrow MT", Font.BOLD + Font.ITALIC, 12), I would expect to see Bold and Italic text, but the text is rendered plain. A getAllFonts() call shows this info :
Arial Narrow MT, family=Arial Narrow MT
Arial Narrow MT Bold, family=Arial Narrow MT
Arial Narrow MT Bold Italic, family=Arial Narrow MT
Arial Narrow MT Italic, family=Arial Narrow MT
So the bold + italic style is there for Arial Narrow MT. To reproduce compile and run the attached program.
Solaris 2.6, beta4-K build.
> fonts do not register at all. For example, if you already have Arial and then
> you choose Arial Narrow and press Render, the string doesn't change. Do you
> think that this problem might be particular to the font? Some common fonts do
> work, like Helvetica. -Jennifer Ball
It looks like the mapping of font styles to font names is broken for some of the fonts. There is a 'Arial Narrow MT Bold Italic' font so when specifying
Font("Arial Narrow MT", Font.BOLD + Font.ITALIC, 12), I would expect to see Bold and Italic text, but the text is rendered plain. A getAllFonts() call shows this info :
Arial Narrow MT, family=Arial Narrow MT
Arial Narrow MT Bold, family=Arial Narrow MT
Arial Narrow MT Bold Italic, family=Arial Narrow MT
Arial Narrow MT Italic, family=Arial Narrow MT
So the bold + italic style is there for Arial Narrow MT. To reproduce compile and run the attached program.
Solaris 2.6, beta4-K build.
- duplicates
-
JDK-4208398 Font Rendering on JDK 1.2 vs JDK 1.1.6 wider and shows wrong faces [regression]
-
- Closed
-