<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/javadoc-wtf-4mb-of-fonts-jdk-23--rshb6miiu" -->

---
title: JavaDoc WTF 4MB of Fonts JDK 23+ | daily.dev
description: Starting with JDK 23, the javadoc tool bundles default DejaVu web font files (about 4 MB) into generated API documentation by default, bloating output size....
canonical: https://daily.dev/posts/javadoc-wtf-4mb-of-fonts-jdk-23--rshb6miiu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JavaDoc WTF 4MB of Fonts JDK 23+ | daily.dev
og:description: Starting with JDK 23, the javadoc tool bundles default DejaVu web font files (about 4 MB) into generated API documentation by default, bloating output size....
og:url: https://daily.dev/posts/javadoc-wtf-4mb-of-fonts-jdk-23--rshb6miiu
og:image: https://api.daily.dev/og/posts/rsHb6miIu.png
og:image:alt: JavaDoc WTF 4MB of Fonts JDK 23+
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaDoc WTF 4MB of Fonts JDK 23+

**[davorhrg's public Squad](https://daily.dev/sources/davorhrg)** · [@davorhrg](https://daily.dev/davorhrg) · 1 min read · 0 upvotes · 0 comments

## Summary

Starting with JDK 23, the javadoc tool bundles default DejaVu web font files (about 4 MB) into generated API documentation by default, bloating output size. The maven-javadoc-plugin can pass the JDK's --no-fonts flag to disable this embedding and avoid the extra weight.

## Content

[https://dev.to/hrgdavor/javadoc-wtf-4mb-of-fonts-jdk-23-153a](https://dev.to/hrgdavor/javadoc-wtf-4mb-of-fonts-jdk-23-153a)

Starting in JDK 23, the JDK `javadoc` tool began embedding default DejaVu web font files (~4 MB) into generated API documentation. The `maven-javadoc-plugin` passes the JDK's `--no-fonts` flag to disable this.

## Similar posts on daily.dev

- [JDK 28: Rich JavaDoc Notes](https://daily.dev/posts/jdk-28-rich-javadoc-notes-reqcgp9wo) · Inside Java · 11 upvotes · 0 comments
- [Honey, I shrank the JARs - Mostly nerdless](https://daily.dev/posts/honey-i-shrank-the-jars---mostly-nerdless-ndnbulwiu) · Mostly Nerdless · 19 upvotes · 1 comments
- [Faster and Slimmer Vaadin 25](https://daily.dev/posts/faster-and-slimmer-vaadin-25-uj8fcy0hy) · Vaadin · 10 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#jdk](https://daily.dev/tags/jdk), [#maven](https://daily.dev/tags/maven)

[View this post on daily.dev](https://daily.dev/posts/javadoc-wtf-4mb-of-fonts-jdk-23--rshb6miiu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/javadoc-wtf-4mb-of-fonts-jdk-23--rshb6miiu","headline":"JavaDoc WTF 4MB of Fonts JDK 23+","text":"Starting with JDK 23, the javadoc tool bundles default DejaVu web font files (about 4 MB) into generated API documentation by default, bloating output size. The maven-javadoc-plugin can pass the JDK's --no-fonts flag to disable this embedding and avoid the extra weight.","url":"https://daily.dev/posts/javadoc-wtf-4mb-of-fonts-jdk-23--rshb6miiu","datePublished":"2026-08-29T13:56:12.056Z","dateModified":"2026-09-13T21:23:57.214Z","author":{"@type":"Person","name":"Davor Hrg","url":"https://daily.dev/davorhrg","image":"https://avatars.githubusercontent.com/u/2480762?v=4","description":"I despise corpo-bloat (.NET, Java EE, Spring, Hibernate,JBoss)","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":330}},"image":"https://media.daily.dev/image/upload/s--DomnmxeV--/f_auto/v1788011772/posts/rsHb6miIu?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/davorhrg","name":"davorhrg's public Squad"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"davorhrg's public Squad","item":"https://daily.dev/squads/davorhrg"},{"@type":"ListItem","position":3,"name":"JavaDoc WTF 4MB of Fonts JDK 23+"}]}
```

