-
Bug
-
Resolution: Fixed
-
P3
-
1.2.3, 1.2.0, 1.2.2
-
kestrel
-
generic, x86
-
generic, windows_nt
Thist happens both on win32 and Solaris.
When a Font is created through an attribute Map (i.e. with FAMILY, SIZE, POSTURE and WEIGHT attributes), the POSTURE and WEIGHT attribute are ignored the second time a Font of the same family is created. For example, if the first time a Font of the "Lucida Sans Typewriter" family is created in bold italic, then all subsequent creation of "Lucida Sans Typewriter" Fonts will be bold italic even though the POSTURE and WEIGHT may be set to REGULAR.
Note that this behavior is not seen for logical fonts (serif, sanserif, etc...)
When a Font is created through an attribute Map (i.e. with FAMILY, SIZE, POSTURE and WEIGHT attributes), the POSTURE and WEIGHT attribute are ignored the second time a Font of the same family is created. For example, if the first time a Font of the "Lucida Sans Typewriter" family is created in bold italic, then all subsequent creation of "Lucida Sans Typewriter" Fonts will be bold italic even though the POSTURE and WEIGHT may be set to REGULAR.
Note that this behavior is not seen for logical fonts (serif, sanserif, etc...)
- duplicates
-
JDK-4275267 Cannot Change Font Style without Changing the Font Size
-
- Closed
-
-
JDK-4261014 Font constructor doesn't work properly with non standard fonts
-
- Closed
-
- relates to
-
JDK-4292477 On Canvas, Cannot Change Font Style without changing font size
-
- Resolved
-