From 541d32fd135f72861ad2ded001a5e50bf48d07f2 Mon Sep 17 00:00:00 2001
From: leather147 <139921639+lumenpearson@users.noreply.github.com>
Date: Fri, 13 Nov 2026 20:09:16 +0300
Subject: [PATCH 1/2] Add Windows font lifetime regression coverage for tray
captions
The change adds a Windows-only xUnit project for the actual `ModernButtonUserControl`. The project targets .NET 8, enables Windows Forms, restricts builds to x64, and references the tray project.
The regression theory covers English and Russian captions across equal, repeated, and changed `Bold` assignments. The test creates the control on an STA thread without a visible window or tray entry point. The assertions verify the public state, label text, requested font style, and completion within 15 seconds.
The drawing check exercises the selected native-backed font through `GetHeight` and `DrawString`. The bitmap scan confirms that rendering changes pixels from the black background. The diagnostic output records framework, Windows Forms, drawing, and tray assembly identities. The assembly setting disables parallel test execution.
The implementation plan records the reproduction, correction, verification, native acceptance, and integration stages. The document keeps execution and acceptance checks pending, and identifies the font disposal mechanism as an unconfirmed hypothesis.
Changed files:
- "CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj" (+20/-0 lines).
- "CDPIUI.TrayIcon.Tests/ModernButtonFontLifetimeTests.cs" (+95/-0 lines).
- "docs/superpowers/plans/2026-11-13-tray-font-lifetime.md" (+60/-0 lines).
The file counts compare the staged tree with its first parent.
Staged-Tree: 859b3fa4ae12a488384f4cd73c5eef5720066989
---
.../CDPIUI.TrayIcon.Tests.csproj | 20 ++++
.../ModernButtonFontLifetimeTests.cs | 95 +++++++++++++++++++
.../plans/2026-11-13-tray-font-lifetime.md | 60 ++++++++++++
3 files changed, 175 insertions(+)
create mode 100644 CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj
create mode 100644 CDPIUI.TrayIcon.Tests/ModernButtonFontLifetimeTests.cs
create mode 100644 docs/superpowers/plans/2026-11-13-tray-font-lifetime.md
diff --git a/CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj b/CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj
new file mode 100644
index 00000000..409e2ec4
--- /dev/null
+++ b/CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj
@@ -0,0 +1,20 @@
+
+
+ net8.0-windows10.0.17763.0
+ true
+ x64
+ enable
+ enable
+ false
+ true
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CDPIUI.TrayIcon.Tests/ModernButtonFontLifetimeTests.cs b/CDPIUI.TrayIcon.Tests/ModernButtonFontLifetimeTests.cs
new file mode 100644
index 00000000..707cf1f0
--- /dev/null
+++ b/CDPIUI.TrayIcon.Tests/ModernButtonFontLifetimeTests.cs
@@ -0,0 +1,95 @@
+using System.Diagnostics;
+using System.Drawing;
+using System.Reflection;
+using System.Runtime.ExceptionServices;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+using CDPIUI.TrayIcon.Controls;
+using Xunit.Abstractions;
+
+[assembly: CollectionBehavior(DisableTestParallelization = true)]
+
+namespace CDPIUI.TrayIcon.Tests;
+
+public sealed class ModernButtonFontLifetimeTests(ITestOutputHelper output)
+{
+ [Theory]
+ [InlineData("Exit", false, false, false)]
+ [InlineData("Выход", false, false, false)]
+ [InlineData("Exit", true, true, true)]
+ [InlineData("Выход", true, true, true)]
+ [InlineData("Exit", true, false, false)]
+ [InlineData("Выход", true, false, false)]
+ [InlineData("Exit", false, true, false)]
+ [InlineData("Выход", false, true, false)]
+ [InlineData("Exit", true, false, true)]
+ [InlineData("Выход", true, false, true)]
+ public void BoldAssignmentsKeepTheActualCaptionDrawable(string caption, bool first, bool second, bool third)
+ {
+ output.WriteLine(RuntimeInformation.FrameworkDescription);
+ WriteAssemblyIdentity(typeof(Control).Assembly);
+ WriteAssemblyIdentity(typeof(Font).Assembly);
+ WriteAssemblyIdentity(typeof(ModernButtonUserControl).Assembly);
+
+ RunOnStaThread(() =>
+ {
+ // Construct only this control. Do not run the tray entry point or create a visible window.
+ using var button = new ModernButtonUserControl { DisplayText = caption };
+ var label = Assert.Single(button.Controls.OfType(), item => item.Text == caption);
+ AssertDrawable(label, caption, bold: false);
+
+ foreach (bool bold in new[] { first, second, third })
+ {
+ button.Bold = bold;
+ Assert.Equal(bold, button.Bold);
+ Assert.Equal(caption, button.DisplayText);
+ AssertDrawable(label, caption, bold);
+ }
+ });
+ }
+
+ private void WriteAssemblyIdentity(Assembly assembly)
+ {
+ var file = FileVersionInfo.GetVersionInfo(assembly.Location);
+ output.WriteLine($"{assembly.FullName}; file={file.FileVersion}; path={assembly.Location}");
+ }
+
+ private static void AssertDrawable(Label label, string caption, bool bold)
+ {
+ Assert.Equal(caption, label.Text);
+ Assert.Equal(bold, label.Font.Bold);
+ using var bitmap = new Bitmap(240, 48);
+ using var graphics = Graphics.FromImage(bitmap);
+ graphics.Clear(Color.Black);
+
+ // Font.Style and Font.Equals can use cached values after disposal. Exercise the native font.
+ Exception? error = Record.Exception(() =>
+ {
+ float height = label.Font.GetHeight(graphics);
+ Assert.True(float.IsFinite(height) && height > 0);
+ graphics.DrawString(caption, label.Font, Brushes.White, new PointF(2, 2));
+ });
+ Assert.Null(error);
+
+ bool hasText = false;
+ for (int y = 0; y < bitmap.Height && !hasText; y++)
+ for (int x = 0; x < bitmap.Width && !hasText; x++)
+ hasText = bitmap.GetPixel(x, y).ToArgb() != Color.Black.ToArgb();
+ Assert.True(hasText, "The selected caption font must render text into the private test bitmap.");
+ }
+
+ private static void RunOnStaThread(Action action)
+ {
+ Exception? error = null;
+ var thread = new Thread(() =>
+ {
+ try { action(); }
+ catch (Exception exception) { error = exception; }
+ }) { IsBackground = true };
+ thread.SetApartmentState(ApartmentState.STA);
+ thread.Start();
+ Assert.True(thread.Join(TimeSpan.FromSeconds(15)), "The control test must finish without a message loop.");
+ if (error is not null)
+ ExceptionDispatchInfo.Capture(error).Throw();
+ }
+}
diff --git a/docs/superpowers/plans/2026-11-13-tray-font-lifetime.md b/docs/superpowers/plans/2026-11-13-tray-font-lifetime.md
new file mode 100644
index 00000000..9688d0c3
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-13-tray-font-lifetime.md
@@ -0,0 +1,60 @@
+# Tray font lifetime implementation plan
+
+> **For agentic workers:** Use superpowers:executing-plans to implement this plan task by task. Preserve each failed result and verify the named revision before acceptance.
+
+**Goal:** Keep the tray caption font usable after equal and repeated Bold assignments.
+
+**Architecture:** Preserve the existing public control and its command events. Test the real Windows Forms control in a separate Windows test project; keep the existing cross-platform managed test project unchanged. Make the smallest correction supported by a real native-backed font reproduction.
+
+**Tech stack:** C#, .NET 8, Windows Forms, System.Drawing.Common 8.0.31 and existing centrally managed xUnit packages.
+
+**Spec:** [Issue #238](https://github.com/lumenpearson/cdpiui/issues/238).
+
+## Global constraints
+
+- Root owns `dev/tray-font-lifetime` in `C:/Users/lumen/.codex/worktrees/tray-font-lifetime/cdpiui`, created from exact `ffae24346fa80ed5a6fc4a5e2ae1de9c000aee21`.
+- This base is the reviewed, managed-tested RESW preparation. Its installed acceptance is stopped, not accepted. Current accepted main remains `fe29acfc4238228da3a6aebb98fff4345c3da106`.
+- Preserve all original worktrees, indexes, published frozen heads, failed native265, MSI inputs and the frozen JSON beta.
+- Source RESW retains its worktree and PR #237. Publish only the font delta in a stacked PR into `dev/resw-localization`; record the final product/test tree and main integration separately.
+- SDK and native-backed tests need a fresh serial resource grant. No visible window, desktop input, screenshot capture, product entry point, tray service, registry/settings write, host installation or external process termination is part of the regression test.
+- Record loaded .NET, Windows Forms and System.Drawing assembly identities. Use the existing task-local .NET 8.0.33 desktop runtime.
+
+## Review focus
+
+- The initial designer Regular font followed by `Bold = false` must remain drawable.
+- Repeated true/false assignments must preserve the requested style and a usable selected font.
+- Genuine style transitions must still work; avoid a test that rejects all assignments.
+- A cached Style or Equals result does not establish font health. Call native-backed height and drawing operations on the selected font.
+- Keep font ownership, caption text, glyph behavior and click ordering in scope. Do not conceal a failed paint or change tray commands.
+
+## Task 1: Reproduce the real control defect
+
+Files: new `CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj` and `ModernButtonFontLifetimeTests.cs`; this plan and the owning issue record.
+
+- [ ] Reference the actual tray project from a Windows-only xUnit project. Do not mock Font, Label, ModernButtonUserControl or their setters.
+- [ ] Run each case on an STA test thread. Construct the control, assign literal `Exit` or `Выход`, then apply the literal style sequence.
+- [ ] Cover false/false/false, true/true/true, true/false/false, false/true/false in both languages. Use true/false/true in both languages as a positive unequal-assignment control.
+- [ ] After each assignment, verify the requested style, call Font.GetHeight with a bitmap Graphics, draw the caption into that private bitmap and require non-background pixels. Never capture the desktop or create a visible window.
+- [ ] Under the reviewed RED grant, run the unchanged full managed baseline and these tests. Preserve actual assertion failures, positive controls, runtime identities, logs, TRX and process cleanup. Do not call a build failure RED.
+
+## Task 2: Correct and verify the font lifetime
+
+Files: `CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs`, the new tests, the Windows CI test command and relevant developer instructions.
+
+- [ ] Only after the observed RED, correct the equal-style path without changing public signatures, caption text, glyphs or command callbacks. Preserve the current nominal ownership of the designer/private caption font.
+- [ ] Check the new path against a shared reference to the unchanged selected font. An equal assignment must not dispose it or allocate a discarded live replacement.
+- [ ] Under a new serial grant, pass all new font cases, the full existing managed suite and a normal Release/x64 tray build. Reuse no historical count as a fresh result.
+- [ ] Add the Windows-only project to the Windows CI test and package-audit commands; preserve the current Linux-compatible suite.
+- [ ] Record independent complete-change review, final HEAD checks and exact CI MSI/payload provenance. Freeze the owned worktree during the next native cohort.
+
+## Task 3: Native and integrated acceptance
+
+- [ ] Source RESW prepares a new immutable package from the reviewed font HEAD and its exact MSI; do not resume native265.
+- [ ] Independently review the new package. Execute the declared EN/RU, readable tray captions, normal Quit and zero-process checks under a fresh exclusive grant. Capture GUI/tray PID and creation-time continuity around live language changes.
+- [ ] Preserve failed observations, final payload/input hashes, normal Sandbox disposal, host preservation and monitor cleanup. Obtain independent retained evidence review.
+- [ ] Integrate normally, identify actual final PR/main SHA and tree, and verify the tested product/test tree bridge plus required final HEAD and post-integration checks.
+- [ ] Complete issue238 acceptance/closure and actual Project Done only after its contract passes. Keep #236 broader adoption and #234 integration gates separate.
+
+## Initial state
+
+Project intake was read back under267 and released268: existing item304164716, In progress / P1 / UX / Low, G4, lumenpearson and type:bug plus area:ux/area:native-qa. Native265 remains a STOP with zero complete accepted cases. The Font equality/disposal mechanism is a source-supported hypothesis; no regression test or corrective product code has executed yet.
From cd5bcfd9a059f287b9cc851fb5a33845280c3cbe Mon Sep 17 00:00:00 2001
From: leather147 <139921639+lumenpearson@users.noreply.github.com>
Date: Fri, 13 Nov 2026 20:41:39 +0300
Subject: [PATCH 2/2] Preserve caption fonts during repeated Bold assignments
The `Bold` setter now compares the selected font style with the requested style before replacing the font. The equal-style path retains the existing `Font` instance and avoids disposing the instance preserved by the Windows Forms setter. Genuine style changes continue to create a replacement font and dispose the previous font.
The Windows CI job now runs the tray font regression project after the existing managed suite. The script stops immediately when the managed suite fails. The package audit now includes the tray test project with the x64 platform setting.
The English and Russian contributor guides document the Windows-only tray font test command. The governance inventory records the font-lifetime plan and its provenance.
The plan marks completed regression, correction, and local verification tasks. The document records eight real-control RED failures, two positive controls, and subsequent local GREEN results. The document also preserves runtime identities, artifact hashes, and explicit acceptance boundaries. Final committed-HEAD, native tray, RESW16, installer provenance, and integration checks remain pending.
Changed files:
- ".github/CONTRIBUTING.md" (+1/-0 lines).
- ".github/CONTRIBUTING.ru.md" (+1/-0 lines).
- ".github/workflows/ci.yml" (+6/-2 lines).
- "CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs" (+5/-1 lines).
- "docs/governance/document-inventory.json" (+10/-0 lines).
- "docs/superpowers/plans/2026-11-13-tray-font-lifetime.md" (+30/-10 lines).
The file counts compare the staged tree with its first parent.
Staged-Tree: a7da6a6f356156145a5d17540099d4fd3c9fb068
---
.github/CONTRIBUTING.md | 1 +
.github/CONTRIBUTING.ru.md | 1 +
.github/workflows/ci.yml | 8 +++-
.../Controls/ModernButtonUserControl.cs | 6 ++-
docs/governance/document-inventory.json | 10 +++++
.../plans/2026-11-13-tray-font-lifetime.md | 40 ++++++++++++++-----
6 files changed, 53 insertions(+), 13 deletions(-)
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 8b94bec1..9f7dca88 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -63,6 +63,7 @@ CAUTION: Do not start the GUI as administrator. Some GUI functions do not operat
| Task | Command |
|---|---|
| Run the unit tests | `dotnet test CDPIUI.Tests/CDPIUI.Tests.csproj` |
+| Run real Windows Forms caption-font tests on Windows | `dotnet test CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj -c Release -p:Platform=x64` |
| Run the unit tests on Linux or macOS | `dotnet test CDPIUI.Tests/CDPIUI.Tests.csproj -p:EnableWindowsTargeting=true` |
| Build the release layout | `pwsh .github/scripts/build_portable.ps1` |
| Compare the installer file list with the release layout | `pwsh .github/scripts/check_setup_files.ps1` |
diff --git a/.github/CONTRIBUTING.ru.md b/.github/CONTRIBUTING.ru.md
index 390cd6c7..d1aeafc8 100644
--- a/.github/CONTRIBUTING.ru.md
+++ b/.github/CONTRIBUTING.ru.md
@@ -63,6 +63,7 @@ GUI не запускает компоненты. GUI отправляет за
| Задача | Команда |
|---|---|
| Запустить модульные тесты | `dotnet test CDPIUI.Tests/CDPIUI.Tests.csproj` |
+| Проверить шрифты подписей на настоящих Windows Forms-контролах в Windows | `dotnet test CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj -c Release -p:Platform=x64` |
| Запустить модульные тесты в Linux или macOS | `dotnet test CDPIUI.Tests/CDPIUI.Tests.csproj -p:EnableWindowsTargeting=true` |
| Собрать раскладку релиза | `pwsh .github/scripts/build_portable.ps1` |
| Сравнить список файлов установщика с раскладкой релиза | `pwsh .github/scripts/check_setup_files.ps1` |
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e18107e1..40bc0fbd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -71,7 +71,10 @@ jobs:
dotnet build CDPIUI.TrayIcon/CDPIUI.TrayIcon.csproj -c Release -p:Platform=x64
- name: Test
- run: dotnet test CDPIUI.Tests/CDPIUI.Tests.csproj -c Release
+ run: |
+ dotnet test CDPIUI.Tests/CDPIUI.Tests.csproj -c Release
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
+ dotnet test CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj -c Release -p:Platform=x64
# Direct and transitive packages with a known vulnerability of moderate or higher severity fail the job.
- name: Check packages for known vulnerabilities
@@ -83,7 +86,8 @@ jobs:
@('CDPIUI.AddOns/CDPIUI.AddOns.csproj', ''),
@('CDPIUI.TrayIcon/CDPIUI.TrayIcon.csproj', '-p:Platform=x64'),
@('CDPIUI/CDPIUI.csproj', '-p:Platform=x64'),
- @('CDPIUI.Tests/CDPIUI.Tests.csproj', '')
+ @('CDPIUI.Tests/CDPIUI.Tests.csproj', ''),
+ @('CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj', '-p:Platform=x64')
)
foreach ($project in $projects) {
$extra = @($project[1] | Where-Object { $_ })
diff --git a/CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs b/CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs
index 5acaa9d7..ae92fffa 100644
--- a/CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs
+++ b/CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs
@@ -39,7 +39,11 @@ public bool Bold
_bold = value;
// The replaced font was created for this label alone, by the designer or here.
var oldFont = MainTextBox.Font;
- MainTextBox.Font = new Font(oldFont, _bold ? FontStyle.Bold : FontStyle.Regular);
+ FontStyle style = _bold ? FontStyle.Bold : FontStyle.Regular;
+ // Control.Font keeps the existing instance for an equal value. It must stay usable.
+ if (oldFont.Style == style)
+ return;
+ MainTextBox.Font = new Font(oldFont, style);
oldFont.Dispose();
}
}
diff --git a/docs/governance/document-inventory.json b/docs/governance/document-inventory.json
index 32370fbd..ad6c3c87 100644
--- a/docs/governance/document-inventory.json
+++ b/docs/governance/document-inventory.json
@@ -1625,6 +1625,16 @@
"policy": "ASD-STE100 principles for English",
"language": "en",
"changes": "Preserve accepted localization behavior while isolating the JSON experiment and restoring editable RESW sources."
+ },
+ {
+ "path": "docs/superpowers/plans/2026-11-13-tray-font-lifetime.md",
+ "firstIntroduction": "541d32fd135f72861ad2ded001a5e50bf48d07f2\tleather147\tAdd Windows font lifetime regression coverage for tray captions",
+ "first_commit": "541d32fd135f72861ad2ded001a5e50bf48d07f2",
+ "first_author": "leather147",
+ "upstream_path_present": false,
+ "policy": "ASD-STE100 principles for English",
+ "language": "en",
+ "changes": "Plan real Windows Forms font lifetime regression, retain exact RED evidence and separate visible native and integration acceptance."
}
],
"current_history_base": "7ead95f7756057f67cd113671a7f84cf422e8d32",
diff --git a/docs/superpowers/plans/2026-11-13-tray-font-lifetime.md b/docs/superpowers/plans/2026-11-13-tray-font-lifetime.md
index 9688d0c3..aed486a1 100644
--- a/docs/superpowers/plans/2026-11-13-tray-font-lifetime.md
+++ b/docs/superpowers/plans/2026-11-13-tray-font-lifetime.md
@@ -31,20 +31,20 @@
Files: new `CDPIUI.TrayIcon.Tests/CDPIUI.TrayIcon.Tests.csproj` and `ModernButtonFontLifetimeTests.cs`; this plan and the owning issue record.
-- [ ] Reference the actual tray project from a Windows-only xUnit project. Do not mock Font, Label, ModernButtonUserControl or their setters.
-- [ ] Run each case on an STA test thread. Construct the control, assign literal `Exit` or `Выход`, then apply the literal style sequence.
-- [ ] Cover false/false/false, true/true/true, true/false/false, false/true/false in both languages. Use true/false/true in both languages as a positive unequal-assignment control.
-- [ ] After each assignment, verify the requested style, call Font.GetHeight with a bitmap Graphics, draw the caption into that private bitmap and require non-background pixels. Never capture the desktop or create a visible window.
-- [ ] Under the reviewed RED grant, run the unchanged full managed baseline and these tests. Preserve actual assertion failures, positive controls, runtime identities, logs, TRX and process cleanup. Do not call a build failure RED.
+- [x] Reference the actual tray project from a Windows-only xUnit project. Do not mock Font, Label, ModernButtonUserControl or their setters.
+- [x] Run each case on an STA test thread. Construct the control, assign literal `Exit` or `Выход`, then apply the literal style sequence.
+- [x] Cover false/false/false, true/true/true, true/false/false, false/true/false in both languages. Use true/false/true in both languages as a positive unequal-assignment control.
+- [x] After each assignment, verify the requested style, call Font.GetHeight with a bitmap Graphics, draw the caption into that private bitmap and require non-background pixels. Never capture the desktop or create a visible window.
+- [x] Under the reviewed RED grant, run the unchanged full managed baseline and these tests. Preserve actual assertion failures, positive controls, runtime identities, logs, TRX and process cleanup. Do not call a build failure RED.
## Task 2: Correct and verify the font lifetime
Files: `CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs`, the new tests, the Windows CI test command and relevant developer instructions.
-- [ ] Only after the observed RED, correct the equal-style path without changing public signatures, caption text, glyphs or command callbacks. Preserve the current nominal ownership of the designer/private caption font.
-- [ ] Check the new path against a shared reference to the unchanged selected font. An equal assignment must not dispose it or allocate a discarded live replacement.
-- [ ] Under a new serial grant, pass all new font cases, the full existing managed suite and a normal Release/x64 tray build. Reuse no historical count as a fresh result.
-- [ ] Add the Windows-only project to the Windows CI test and package-audit commands; preserve the current Linux-compatible suite.
+- [x] Only after the observed RED, correct the equal-style path without changing public signatures, caption text, glyphs or command callbacks. Preserve the current nominal ownership of the designer/private caption font.
+- [x] Check the new path against a shared reference to the unchanged selected font. An equal assignment must not dispose it or allocate a discarded live replacement.
+- [x] Under a new serial grant, pass all new font cases, the full existing managed suite and a normal Release/x64 tray build. Reuse no historical count as a fresh result.
+- [x] Add the Windows-only project to the Windows CI test and package-audit commands; preserve the current Linux-compatible suite.
- [ ] Record independent complete-change review, final HEAD checks and exact CI MSI/payload provenance. Freeze the owned worktree during the next native cohort.
## Task 3: Native and integrated acceptance
@@ -57,4 +57,24 @@ Files: `CDPIUI.TrayIcon/Controls/ModernButtonUserControl.cs`, the new tests, the
## Initial state
-Project intake was read back under267 and released268: existing item304164716, In progress / P1 / UX / Low, G4, lumenpearson and type:bug plus area:ux/area:native-qa. Native265 remains a STOP with zero complete accepted cases. The Font equality/disposal mechanism is a source-supported hypothesis; no regression test or corrective product code has executed yet.
+Project intake was read back under267 and released268: existing item304164716, In progress / P1 / UX / Low, G4, lumenpearson and type:bug plus area:ux/area:native-qa. Native265 remains a STOP with zero complete accepted cases. Before execution, the Font equality/disposal mechanism was a source-supported hypothesis.
+
+## Actual RED evidence
+
+Test-only revision `541d32fd135f72861ad2ded001a5e50bf48d07f2` ran under fresh269 and qualified release270. The full unchanged managed suite passed2600/2600, zero failed or skipped, in49.16seconds including build. The real-control font suite executed10 cases: eight expected assertion failures and two unequal-style positive passes, zero execution errors or skipped cases. Each failure contains `ArgumentException` from the selected `Font.GetHeight(Graphics)`; this was not a compile or restore failure. Its command exited1; the wrapper exited0 only because it verified the declared RED and positive controls.
+
+Actual loaded runtime: .NET8.0.33, Windows Forms and System.Drawing.Common file version8.0.3326.52211, both loaded from the task-local WindowsDesktop8.0.33 framework. The NuGet8.0.31 file was a preparation pin, not the assembly selected by this test host. Its role must not be substituted for the actual loaded identity. Runtime path/version output and post-execution hashes are retained separately from the three prelaunch pins.
+
+Baseline TRX SHA256: `3e875a1ed8fd35c0cb7046853924f12d4b1f371b845e0e55762dde1ebf1e039d`. Font RED TRX: `9fd9ccbd5a9f96fd764b56b428bbdfc5433f64dfd041d98b1fc99a243227cb42`. The immutable local manifest pins108 retained files, including nine used compiled files archived before any GREEN overwrite; SHA256 `4df785b202b79bb1fbd12e106ccd377bc97b2120069307ceaf36cb0e5ecee4f6`. Root freshly qualified absence of27 recorded exact process identities and the SDK/test process-name set. Sampling can miss short-lived descendants; no global process-absence claim is made. Actual release270 SHA256: `bc23ed2817ea223fd98a5824a6019affb2a3c12b8c34b4b88ffa59a3e3031316`.
+
+The local font-use defect is reproduced. This result does not prove visible tray paint, the exact caught exception in native265, RESW16 acceptance or main integration.
+
+## Actual local GREEN evidence
+
+Root prepared the minimal guard only after RED: update the existing Bold field as before, then return when the selected font already has the requested style. That branch does not assign, allocate or dispose a font, so the selected font and any reference to it remain valid. Genuine style changes retain the existing replacement/disposal path. Captions, glyphs and click handlers are unchanged.
+
+The exact uncommitted six-file candidate was frozen on base541d with binary patch SHA256 `69a6415241ff4a7bea8cbf344d24d511d868b10e54275920466a9f1a238bef53`, complete physical source/runtime hashes and a Git-status hash. This permitted tests before committing corrective product code. Under fresh271, all10 font cases passed, the complete existing suite passed2600/2600 and normal Release/x64 Tray build exited0 with zero warnings/errors. Actual step durations were7.41,15.46 and1.60seconds. Loaded framework/Windows Forms/Drawing remained .NET8.0.33 / file8.0.3326.52211.
+
+Font GREEN TRX SHA256: `b0c698c4f7000dded1a468eb70b170eb8cd2ea03f33b5809ba7b5a48ef96e1e6`. Candidate managed TRX: `bd84fdb856fc6bb2ac4db51b973338d7b69a499457360992785f6b4cd0300d55`. The immutable local manifest pins54 retained files, including nine used compiled files; SHA256 `5c153edb1afcc30493dbf29214cb50cb3f695b35f5992c7738484afc707582e3`. Root verified all source/runtime inputs and the unchanged named patch, fresh absence of15 recorded exact process identities and the SDK/test-name set, then released272. Release SHA256: `cdcfc010637fc6fa84301d78bdc71af6a6eb48c05b7f1b074151e173b0718b8d`.
+
+These are local working-candidate results. They are not a final committed-HEAD CI result, visible native tray proof, RESW16 or main acceptance. Independent complete-change review, final HEAD checks, exact MSI provenance and the separate native/integration gates remain required. The existing cross-platform test project remains unchanged; Windows Forms tests run explicitly in the Windows CI library job and through the documented command.