mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-16 00:37:11 -06:00
Fonts: support specifying preferred font family for easy using another font (e.g. Inter) for all components
This commit is contained in:
@@ -15,7 +15,8 @@ License:
|
||||
How to install?
|
||||
---------------
|
||||
|
||||
Invoke the `install()` method once in your `main()` method (on AWT thread):
|
||||
Invoke the `install()` method once (e.g. in your `main()` method; on AWT
|
||||
thread):
|
||||
|
||||
~~~java
|
||||
FlatJetBrainsMonoFont.install();
|
||||
@@ -25,6 +26,14 @@ FlatJetBrainsMonoFont.install();
|
||||
How to use?
|
||||
-----------
|
||||
|
||||
Use as default monospaced font:
|
||||
|
||||
~~~java
|
||||
FlatLaf.setPreferredMonospacedFontFamily( FlatJetBrainsMonoFont.FAMILY );
|
||||
~~~
|
||||
|
||||
Create fonts:
|
||||
|
||||
~~~java
|
||||
// basic styles
|
||||
new Font( FlatJetBrainsMonoFont.FAMILY, Font.PLAIN, 12 );
|
||||
@@ -37,6 +46,10 @@ new Font( FlatJetBrainsMonoFont.FAMILY, Font.BOLD | Font.ITALIC, 12 );
|
||||
Download
|
||||
--------
|
||||
|
||||
Not yet available.
|
||||
|
||||
<!--
|
||||
|
||||
FlatLaf Fonts binaries are available on **Maven Central**.
|
||||
|
||||
If you use Maven or Gradle, add a dependency with following coordinates to your
|
||||
@@ -49,3 +62,5 @@ build script:
|
||||
Otherwise download `flatlaf-fonts-jetbrains-mono-<version>.jar` here:
|
||||
|
||||
[](https://maven-badges.herokuapp.com/maven-central/com.formdev/flatlaf-fonts-jetbrains-mono)
|
||||
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user