https://github.com/marchof/the-missing-javadoc-fonts
Bundle of the missing Dejavu fonts for JavaDoc
https://github.com/marchof/the-missing-javadoc-fonts
fonts java javadoc
Last synced: 3 months ago
JSON representation
Bundle of the missing Dejavu fonts for JavaDoc
- Host: GitHub
- URL: https://github.com/marchof/the-missing-javadoc-fonts
- Owner: marchof
- License: mit
- Created: 2022-08-15T22:19:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-16T10:26:20.000Z (almost 4 years ago)
- Last Synced: 2025-07-19T14:08:01.783Z (about 1 year ago)
- Topics: fonts, java, javadoc
- Language: CSS
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# The Missing JavaDoc Fonts
Since Java 8, API documentation generated with JDK's `javadoc` tool uses the [DejaVu](https://dejavu-fonts.github.io/) font family. Unfortunately this font is by default only available on some Linux distributions. Make your JavaDoc look like the original on all systems and browsers by adding the font resources from this package.
Since Java 22, the font is added by the `javadoc` tool, see [JDK-8324774](https://bugs.openjdk.org/browse/JDK-8324774).
## Installation
Download the latest [font package](https://github.com/marchof/the-missing-javadoc-font/releases/download/v1.0.0/javadoc-fonts.zip) and unzip it to the root folder of your JavaDoc. The font package adds the folder `resources/fonts`, containing a CSS file and the WOFF2 font files.
## How does this work?
JavaDoc's CSS file `stylesheet.css` already includes a font stylesheet:
@import url('resources/fonts/dejavu.css');
The missing stylesheet and the font files can be added with this package. The package is created from the [DejaVu](https://dejavu-fonts.github.io/) font project by converting the TrueType fonts into smaller WOFF2 font files. These font definitions add about 1.7 MB to your JavaDoc distribution.
## License
This generator is provided "as is" under the [MIT License](LICENSE.md), without warranty of any kind. The packaged fonts come with their own [DejaVu Fonts License](https://dejavu-fonts.github.io/License.html).