-
Bug
-
Resolution: Fixed
-
P3
-
2.0, 1.2.1, 5.0
-
None
-
b33
-
generic, x86, sparc
-
generic, linux, solaris_8
The spec for java.awt.font.TextAttribute specifically allows interpolation
of values by Fonts. The questions are:
- Can completely ignoring an attribute considered as such interpolation?
- Can interpolation be performed on non-Font related attributes, such as
UNDERLINE or FOREGROUND?
- Are there any attributes that cannot be supported by Fonts? In other words,
such attributes must always be ignored by Graphics.drawString(String..)
and should be generally taken into account by Graphics.drawString(
AttributedCharacterIterator..).
Note that FOREGROUND might be one of them since Graphics.drawString(
String..) requires to use the curent color. This might be a bug though
- see 5102269.
- If a Font instance was created with attributes that it doesn't support,
can those attributes take effect under some circumstances? For example,
Graphics.drawString(String..) is specified to use the current font.
If the current font has UNDERLINE in getAttributes() but not in
getAvailableAttributes(), will Graphics.drawString(String..) underline
the text?
###@###.### 2004-09-14
of values by Fonts. The questions are:
- Can completely ignoring an attribute considered as such interpolation?
- Can interpolation be performed on non-Font related attributes, such as
UNDERLINE or FOREGROUND?
- Are there any attributes that cannot be supported by Fonts? In other words,
such attributes must always be ignored by Graphics.drawString(String..)
and should be generally taken into account by Graphics.drawString(
AttributedCharacterIterator..).
Note that FOREGROUND might be one of them since Graphics.drawString(
String..) requires to use the curent color. This might be a bug though
- see 5102269.
- If a Font instance was created with attributes that it doesn't support,
can those attributes take effect under some circumstances? For example,
Graphics.drawString(String..) is specified to use the current font.
If the current font has UNDERLINE in getAttributes() but not in
getAvailableAttributes(), will Graphics.drawString(String..) underline
the text?
###@###.### 2004-09-14
- duplicates
-
JDK-6184555 Font(Map)/getFont(Map): behavior with useless TextAttributes should be clarified
- Closed
-
JDK-4915562 Docs for TextAttribute has to be enhanced
- Closed
-
JDK-6243364 Documentation for TextAttribute refers to non-existent class NumericShaping
- Closed
- relates to
-
JDK-6183878 Font(Map) constructor ignores TextAttribute.FONT field
- Closed
-
JDK-6194615 JCK. TextAttribute.UNDERLINE: default value is unclear
- Closed
-
JDK-5102267 Misleading spec for Font.getFont(Map)
- Resolved
(1 relates to)