On Mon, 27 Jul 2026 16:04:41 GMT, Hannes Wallnöfer <[email protected]> wrote:

> Please review a change to reduce the size of web fonts included with API 
> documentation bundles while preserving support for character ranges used by 
> the vast majority bundles. The following steps are taken to reduce the size 
> of bundled web fonts from 4 MB before the change to roughly 930 kb.
> 
>  - Drop support for for WOFF format, since the newer WOFF2 format is widely 
> supported by modern web browsers. Since WOFF2 uses improved compression, this 
> removes more than 50% of the original file size.
>  - Limit web fonts to a subset of characters commonly used in API 
> documentation. This leaves out special characters such as dingbats, emojis, 
> shapes, tiles and pictograms that are better covered by system fonts. 
> 
> Generally, web browsers fall back to system fonts on a per-character basis, 
> so there is no loss of functionality as long as system fonts provide good 
> Unicode support. 
> 
> This change also removes the console warnings seen in Firefox and possibly 
> other browsers by recalculating the bounding boxes of converted web fonts.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: c4f43a18
Author:    Hannes Wallnöfer <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/c4f43a18188b1cae6930e798a4b601f42889055f
Stats:     51 lines in 27 files changed: 0 ins; 37 del; 14 mod

8387471: Reduce size of web fonts included in API documentation

Reviewed-by: liach, ayang, nbenalla

-------------

PR: https://git.openjdk.org/jdk/pull/32058

Reply via email to