Integrated: 8284288: Use SVG images for FocusSpec.html and Modality.html

Alexey Ivanov aivanov at openjdk.java.net
Wed Apr 6 10:30:42 UTC 2022


On Mon, 4 Apr 2022 11:17:16 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Both `FocusSpec.html` and `Modality.html` use GIF images for diagrams. The images look jagged, especially on High DPI screens which are common now. The images in `Modality.html` use dithered colours which don't look sharp even on regular displays.
> 
> All the modern browsers support SVG which is a vector format and therefore it always looks sharp.
> 
> You can view how the files look after being processed by javadoc:
> 
> - **side-by-side** allows comparing the current and the new images:
>   - [FocusSpec.html](http://cr.openjdk.java.net/~aivanov/8284288/side-by-side/api/java.desktop/java/awt/doc-files/FocusSpec.html)
>   - [Modality.html](http://cr.openjdk.java.net/~aivanov/8284288/side-by-side/api/java.desktop/java/awt/doc-files/Modality.html)
> - **clean** is the final version:
>   - [FocusSpec.html](http://cr.openjdk.java.net/~aivanov/8284288/clean/api/java.desktop/java/awt/doc-files/FocusSpec.html)
>   - [Modality.html](http://cr.openjdk.java.net/~aivanov/8284288/clean/api/java.desktop/java/awt/doc-files/Modality.html)

This pull request has now been integrated.

Changeset: bbe894fc
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/bbe894fc815aae9f505b988faaef6b60c8cb8d11
Stats:     946 lines in 15 files changed: 935 ins; 0 del; 11 mod

8284288: Use SVG images for FocusSpec.html and Modality.html

Reviewed-by: prr, serb

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

PR: https://git.openjdk.java.net/jdk/pull/8091



More information about the client-libs-dev mailing list