Files
FlatLaf/flatlaf-fonts/flatlaf-fonts-roboto-mono
Karl Tauber 056da35758
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17) (push) Has been cancelled
CI / build-on (21) (push) Has been cancelled
CI / build-on (25) (push) Has been cancelled
CI / build-on (8) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
Fonts / Fonts (inter) (push) Has been cancelled
Fonts / Fonts (jetbrains-mono) (push) Has been cancelled
Fonts / Fonts (roboto) (push) Has been cancelled
Fonts / Fonts (roboto-mono) (push) Has been cancelled
Native Libraries / Natives (macos-latest) (push) Has been cancelled
Native Libraries / Natives (ubuntu-24.04-arm) (push) Has been cancelled
Native Libraries / Natives (ubuntu-latest) (push) Has been cancelled
Native Libraries / Natives (windows-latest) (push) Has been cancelled
Gradle:
- always use Java toolchains
- default is Java 11 (but source/targetCompatibility is still 1.8)
- use system property `toolchain` (e.g. `-Dtoolchain=25`) to compile with other Java versions

preparation for Gradle 9.x, which requires Java 17+ to run
2025-10-28 13:06:40 +01:00
..
2025-10-28 13:06:40 +01:00
2025-09-10 14:48:27 +02:00

Roboto Mono font

This sub-project contains fonts from the Roboto Mono font family and bundles them into an easy-to-use and redistributable JAR.

Font home page: https://fonts.google.com/specimen/Roboto+Mono

GitHub project: https://github.com/googlefonts/RobotoMono

License: Apache License, Version 2.0

How to install?

Invoke following once (e.g. in your main() method; on AWT thread).

For lazy loading use:

FlatRobotoMonoFont.installLazy();

Or load immediately with:

FlatRobotoMonoFont.install();

How to use?

Use as application monospaced font (invoke before setting up FlatLaf):

FlatLaf.setPreferredMonospacedFontFamily( FlatRobotoMonoFont.FAMILY );

Create single fonts:

// basic styles
new Font( FlatRobotoMonoFont.FAMILY, Font.PLAIN, 12 );
new Font( FlatRobotoMonoFont.FAMILY, Font.ITALIC, 12 );
new Font( FlatRobotoMonoFont.FAMILY, Font.BOLD, 12 );
new Font( FlatRobotoMonoFont.FAMILY, Font.BOLD | Font.ITALIC, 12 );

If using lazy loading, invoke one of following before creating the font:

FontUtils.loadFontFamily( FlatRobotoMonoFont.FAMILY );

E.g.:

FontUtils.loadFontFamily( FlatRobotoMonoFont.FAMILY );
Font font = new Font( FlatRobotoMonoFont.FAMILY, Font.PLAIN, 12 );

Or use following:

Font font = FontUtils.getCompositeFont( FlatRobotoMonoFont.FAMILY, Font.PLAIN, 12 );

Download

FlatLaf Fonts binaries are available on Maven Central.

If you use Maven or Gradle, add a dependency with following coordinates to your build script:

groupId:     com.formdev
artifactId:  flatlaf-fonts-roboto-mono
version:     (see button below)

Otherwise, download flatlaf-fonts-roboto-mono-<version>.jar here:

Maven Central