Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8265761: Font with missed font family name is not properly printed on Windows #3631

Closed
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -66,6 +66,7 @@
private static volatile boolean testFinished;
private static final float FONT_SIZE = 32.0f;
private static final String TEXT = "ABCDEF";
private static final String FONT_FILE = "SampleFontMissedFontFamily.ttf";
private static Font customFont;

public static void main(String[] args) throws Exception {
@@ -178,7 +179,7 @@ public void windowClosing(WindowEvent e) {

try {
File dir = new File(System.getProperty("test.src", "."));
File customFontFile = new File(dir, "SampleBowMissedFamilyName.ttf");
File customFontFile = new File(dir, FONT_FILE);
customFont = Font.createFont(Font.TRUETYPE_FONT, customFontFile);
customFont = customFont.deriveFont(FONT_SIZE);
} catch(Exception e) {
Binary file not shown.
Binary file not shown.