-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
7u40
-
Test case for Windows, but has been also reproduced on Mac with a different font name.
Look at the attached project.
The font family can be set in fontTest.css as "DejaVu Sans Condensed Bold", although the family is "DejaVu Sans Condensed".
When used in the test case, the font is not applied.
Now, if one load the font at start time (uncomment from FontTest.java the line) :
Font font = new Font("DejaVu Sans Condensed Bold", 12);
... the font is applied correctly !
The behvior should be consistent, and not depending on a font is loaded or not.
This is causing troubles for users (see linked Jira).
The font family can be set in fontTest.css as "DejaVu Sans Condensed Bold", although the family is "DejaVu Sans Condensed".
When used in the test case, the font is not applied.
Now, if one load the font at start time (uncomment from FontTest.java the line) :
Font font = new Font("DejaVu Sans Condensed Bold", 12);
... the font is applied correctly !
The behvior should be consistent, and not depending on a font is loaded or not.
This is causing troubles for users (see linked Jira).
- blocks
-
JDK-8116970 CSS Fonts do not take effect on close/open
- Closed