You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Longhand method lets you specify font weight and style.builder.useFont(() -> App8.class.getResourceAsStream("/font-bold-italic.ttf"), "my-font-family", 700, FontStyle.ITALIC, true);
// Shorthand method assumes font is normal weight and style.builder.useFont(() -> App8.class.getResourceAsStream("/font.ttf"), "my-font-family");
Note: It is not recommended to use input streams if using SVG or Java 2D output. See #613.
P.S. If this answers your question, feel free to close this issue.
My application is a jar file, only use
getResourceAsStream()
to read font files, Is there a way for this?The text was updated successfully, but these errors were encountered: