Skip to content

[9.1] [Reports] Fix text kerning issues in PDF/PNG exports for dashboard and visualization reports (#235516)#236043

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-235516
Sep 23, 2025
Merged

[9.1] [Reports] Fix text kerning issues in PDF/PNG exports for dashboard and visualization reports (#235516)#236043
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-235516

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…d visualization reports (elastic#235516)

## Summary

Fix elastic#217287

This PR fixes the text kerning issues in dashboard/visualization PDF/PNG
exports, particularly noticeable on Linux OS.

Example before:
<img width="984" height="356" alt="Screenshot 2025-09-19 at 2 36 11 PM"
src="https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0"
/>

Example after:
<img width="981" height="351" alt="Screenshot 2025-09-19 at 2 36 41 PM"
src="https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a"
/>

## Reports

Dashboard to test:

[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)

Before:
- Dashboard:
[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)
- TSVB metric chart:
[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)
- Lens metric chart:
[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)
- Lens bar chart:
[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)

After:
- Dashboard:
[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)
- TSVB metric
chart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)
- Lens metric chart:
[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)
- Lens bar chart:
[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)

## Release Notes:

Fix for the text kerning issues in dashboard/visualization PDF/PNG
exports, particularly noticeable on Linux OS.

## Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit 20aa36d)
@kibanamachine kibanamachine merged commit dd44b41 into elastic:9.1 Sep 23, 2025
16 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @andrimal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants