Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

When calling GC#setFont(), a copy of the given font is created. However, the font may be null, leading to an exception. In addition, a font should be retrieved from the font provider instead of creating a new font that is manually disposed later on.

This change ensures that null fonts are properly handled and that the stored font is retrieved from the provider.

Fixes #2350

When calling GC#setFont(), a copy of the given font is created. However,
the font may be null, leading to an exception. In addition, a font
should be retrieved from the font provider instead of creating a new
font that is manually disposed later on.

This change ensures that null fonts are properly handled and that the
stored font is retrieved from the provider.

Fixes eclipse-platform#2350
@github-actions
Copy link
Contributor

github-actions bot commented Jul 24, 2025

Test Results

   546 files  ±0     546 suites  ±0   29m 8s ⏱️ - 7m 32s
 4 412 tests ±0   4 395 ✅ +1   17 💤  - 1  0 ❌ ±0 
16 718 runs  ±0  16 591 ✅ +2  127 💤  - 2  0 ❌ ±0 

Results for commit f1eaf5c. ± Comparison against base commit a68fd8d.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare linked an issue Jul 24, 2025 that may be closed by this pull request
@HeikoKlare HeikoKlare marked this pull request as ready for review July 24, 2025 16:29
@HeikoKlare HeikoKlare merged commit 7b46268 into eclipse-platform:master Jul 24, 2025
21 of 22 checks passed
@HeikoKlare HeikoKlare deleted the issue-2350 branch July 24, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some icons are missing [Win32] Some icons are missing

1 participant