Fonts: fixed gradle build error and javadoc warnings

This commit is contained in:
Karl Tauber
2022-11-21 12:55:55 +01:00
parent d491847754
commit adf7753617
6 changed files with 18 additions and 6 deletions

View File

@@ -38,6 +38,10 @@ dependencies {
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
}
flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}
java {
withSourcesJar()
withJavadocJar()

View File

@@ -143,8 +143,8 @@ public class FlatRobotoFont
* This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts.
* <p>
* <strong>Note</strong>: When using '{@code new Font(...)}', you need to first invoke
* {@link FontUtils#loadFontFamily(family)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(family, style, size)},
* {@link FontUtils#loadFontFamily(String)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(String, int, int)},
* this is done automatically.
*/
public static void installLazy() {