Skip to content

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

Merged
andrimal merged 12 commits intoelastic:mainfrom
andrimal:fix/217287
Sep 23, 2025
Merged

[Reports] Fix text kerning issues in PDF/PNG exports for dashboard and visualization reports#235516
andrimal merged 12 commits intoelastic:mainfrom
andrimal:fix/217287

Conversation

@andrimal
Copy link
Contributor

@andrimal andrimal commented Sep 18, 2025

Summary

Fix #217287

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

Example before:
Screenshot 2025-09-19 at 2 36 11 PM

Example after:
Screenshot 2025-09-19 at 2 36 41 PM

Reports

Dashboard to test:
dashboard_test_for_screenshot_kerning.ndjson.txt

Before:

After:

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 were updated or added to match the most common scenarios
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.
@andrimal andrimal added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.2.0 v8.18.8 v8.19.5 v9.0.8 v9.1.5 Feature:Reporting:Screenshot Reporting issues pertaining to PNG/PDF file export bug Fixes for quality problems that affect the customer experience labels Sep 18, 2025
@andrimal andrimal requested a review from markov00 September 19, 2025 15:31
@andrimal andrimal added release_note:fix and removed release_note:skip Skip the PR/issue when compiling release notes labels Sep 19, 2025
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@andrimal andrimal marked this pull request as ready for review September 22, 2025 15:31
@andrimal andrimal requested a review from a team as a code owner September 22, 2025 15:31
Copy link
Contributor

@markov00 markov00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, simple and working! Thanks Andreana

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

@andrimal andrimal merged commit 20aa36d into elastic:main Sep 23, 2025
13 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.0, 9.1

https://github.com/elastic/kibana/actions/runs/17939532765

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2025
…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
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.19
9.0
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 23, 2025
…ard and visualization reports (#235516) (#236043)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Reports] Fix text kerning issues in PDF/PNG exports for dashboard
and visualization reports
(#235516)](#235516)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Andreana
Malama","email":"andreana.malama@elastic.co"},"sourceCommit":{"committedDate":"2025-09-23T08:01:38Z","message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Reporting:Screenshot","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization
reports","number":235516,"url":"https://github.com/elastic/kibana/pull/235516","mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235516","number":235516,"mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Andreana Malama <andreana.malama@elastic.co>
kibanamachine added a commit that referenced this pull request Sep 23, 2025
…ard and visualization reports (#235516) (#236042)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Reports] Fix text kerning issues in PDF/PNG exports for dashboard
and visualization reports
(#235516)](#235516)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Andreana
Malama","email":"andreana.malama@elastic.co"},"sourceCommit":{"committedDate":"2025-09-23T08:01:38Z","message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Reporting:Screenshot","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization
reports","number":235516,"url":"https://github.com/elastic/kibana/pull/235516","mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235516","number":235516,"mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Andreana Malama <andreana.malama@elastic.co>
kibanamachine added a commit that referenced this pull request Sep 23, 2025
…oard and visualization reports (#235516) (#236041)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Reports] Fix text kerning issues in PDF/PNG exports for dashboard
and visualization reports
(#235516)](#235516)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Andreana
Malama","email":"andreana.malama@elastic.co"},"sourceCommit":{"committedDate":"2025-09-23T08:01:38Z","message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Reporting:Screenshot","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization
reports","number":235516,"url":"https://github.com/elastic/kibana/pull/235516","mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235516","number":235516,"mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Andreana Malama <andreana.malama@elastic.co>
kibanamachine added a commit that referenced this pull request Sep 23, 2025
…oard and visualization reports (#235516) (#236040)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Reports] Fix text kerning issues in PDF/PNG exports for dashboard
and visualization reports
(#235516)](#235516)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Andreana
Malama","email":"andreana.malama@elastic.co"},"sourceCommit":{"committedDate":"2025-09-23T08:01:38Z","message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Reporting:Screenshot","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization
reports","number":235516,"url":"https://github.com/elastic/kibana/pull/235516","mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235516","number":235516,"mergeCommit":{"message":"[Reports]
Fix text kerning issues in PDF/PNG exports for dashboard and
visualization reports (#235516)\n\n## Summary\n\nFix #217287 \n\nThis PR
fixes the text kerning issues in dashboard/visualization
PDF/PNG\nexports, particularly noticeable on Linux OS.\n\nExample
before: \n<img width=\"984\" height=\"356\" alt=\"Screenshot 2025-09-19
at 2 36
11 PM\"\nsrc=\"https://github.com/user-attachments/assets/9abd6dc2-7784-4962-b17b-debe7f4b75e0\"\n/>\n\nExample
after: \n<img width=\"981\" height=\"351\" alt=\"Screenshot 2025-09-19
at 2 36
41 PM\"\nsrc=\"https://github.com/user-attachments/assets/5acbad5a-86ef-4295-b715-1c81c1c91e7a\"\n/>\n\n##
Reports\n\nDashboard to test:
\n\n[dashboard_test_for_screenshot_kerning.ndjson.txt](https://github.com/user-attachments/files/22405598/dashboard_test_for_screenshot_kerning.ndjson.txt)\n\nBefore:
\n-
Dashboard:\n[dashboard_before.pdf](https://github.com/user-attachments/files/22405719/dashboard_before.pdf)\n-
TSVB metric
chart:\n[tsvb_before.pdf](https://github.com/user-attachments/files/22405716/tsvb_before.pdf)\n-
Lens metric
chart:\n[lens_metric_before.pdf](https://github.com/user-attachments/files/22405717/lens_metric_before.pdf)\n-
Lens bar
chart:\n[lens_bar_before.pdf](https://github.com/user-attachments/files/22425733/lens_bar_before.pdf)\n\n\nAfter:\n-
Dashboard:\n[dashboard_after.pdf](https://github.com/user-attachments/files/22405561/dashboard_after.pdf)\n-
TSVB
metric\nchart:[tsvb_after.pdf](https://github.com/user-attachments/files/22405555/tsvb_after.pdf)\n-
Lens metric
chart:\n[lens_metric_after.pdf](https://github.com/user-attachments/files/22405553/lens_metric_after.pdf)\n-
Lens bar
chart:\n[lens_bar_after.pdf](https://github.com/user-attachments/files/22425737/lens_bar_after.pdf)\n\n##
Release Notes: \n\nFix for the text kerning issues in
dashboard/visualization PDF/PNG\nexports, particularly noticeable on
Linux OS.\n\n## Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"20aa36d105f338487c3f9401ab77018e4ae4e34e"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Andreana Malama <andreana.malama@elastic.co>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Sep 24, 2025
…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.
niros1 pushed a commit that referenced this pull request Sep 30, 2025
…d visualization reports (#235516)

## Summary

Fix #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.
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience Feature:Reporting:Screenshot Reporting issues pertaining to PNG/PDF file export release_note:fix v8.18.8 v8.19.5 v9.0.8 v9.1.5 v9.2.0

5 participants