acdream/tests/AcDream.App.Tests/UI/Layout/fixtures
Erik bcc34ee301 feat(chat): retail text style — two-plane glyph outlines, authored SpewBox/chat styles
Campaign CH round 4, user-gate items 1+2. Root cause: retail ships a
second (background) glyph atlas per font, dilated 2px on every side,
plus two border-pixel scalars (Font.NumHorizontalBorderPixels/
NumVerticalBorderPixels) that acdream's font reader never read — so
even the pre-existing outline parameter drew almost nothing once
enabled. Landed together (either half alone is a no-op or a
regression):

- UiDatFont carries BorderX/BorderY from the DAT font resource.
- UiRenderContext.DrawStringDat inflates the background blit's source
  and destination rect by that margin and restructures into retail's
  exact two-pass whole-string outline-then-fill model
  (UIElement_Text::DrawSelf), plus the 8-neighbour +-1px fallback for
  fonts with no background atlas. Corrects the stale "property 0xd"
  comment to the real ids, 0x21 (Outline) / 0x22 (OutlineColor).
- LayoutDesc property 0x21/0x22 import (ElementInfo.Outline/
  OutlineColor, LayoutImporter.ReadState, ElementReader.Merge/
  ApplyCanonicalLegacyProjection, DatWidgetFactory.BuildText) so every
  authored-outline element across the DAT set is correct at once.
- SpewBox: RetailFontId corrected from a round-3 heuristic
  (0x40000025) to the actually-authored 0x40000001 (18px bold serif),
  Outline=true set on the controller's UiText. Fill colour stays the
  user-gate-round-1-pinned yellow — font atlases are alpha-only
  (PFID_A8), so there is no baked shading that could explain the
  screenshot's gold as anything other than the outline itself.
- Chat transcript: default fill now seeds from its authored
  ARGB(255,204,204,204) instead of an unrelated color-table slot
  (ChatTranscriptRenderer.BuildLines takes the transcript's own
  DefaultColor as a parameter); the 34-entry LogTextType table is
  untouched, and every existing CH1 conformance test stays green
  unmodified.

Regenerated the committed chat_2100006f.json fixture from the real
installed DAT, confirming end to end (not by missing-field default)
that the transcript carries no outline.

Tests: font-reader border fields + inflation math pinned against the
real DAT font, two-pass draw ordering/tint/inflation via a new
TextRenderer.DebugSpriteSegmentVerts test seam, property 0x21/0x22
import at both the ElementReader.Merge and StateDesc-property layers,
SpewBox font/outline, and the chat default-shade seed with the color
table proven untouched.

Full Release suite: 12,610 passed / 4 skipped / 0 failed
(AcDream.slnx, complete solution).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 19:28:34 +02:00
..
character_2100002E.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
character_info_2100006E_10000183.json fix(ui): complete retail indicator detail panels 2026-07-17 11:36:43 +02:00
chat_2100006f.json feat(chat): retail text style — two-plane glyph outlines, authored SpewBox/chat styles 2026-08-10 19:28:34 +02:00
chat_floaty_2100005b.json fix(chat): CH6a/b rework — grip media, retail window-id model, floaty fixture 2026-08-10 13:09:32 +02:00
combat_21000073.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
component_category_21000033_10000466.json feat(ui): port retail component book rows 2026-07-15 17:38:24 +02:00
component_row_21000033_10000467.json feat(ui): port retail component book rows 2026-07-15 17:38:24 +02:00
dialogs_2100003C.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
effects_negative_2100001B.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
effects_positive_2100001B.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
effects_row_2100001B_10000128.json fix(ui): complete retail indicator detail panels 2026-07-17 11:36:43 +02:00
examine_2100006B_100005F2.json feat(ui): port retail appraisal panel 2026-07-23 11:34:08 +02:00
examine_component_2100006B_1000032E.json fix(ui): keep spell components in authored foreground 2026-07-24 08:08:29 +02:00
examine_row_2100006B_10000166.json feat(ui): port retail creature appraisal presentation 2026-07-23 12:55:24 +02:00
indicators_21000071.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
inventory_21000023.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
link_status_2100001D.json feat(ui): share indicator detail panels 2026-07-17 10:27:41 +02:00
mini_game_2100001E.json feat(ui): share indicator detail panels 2026-07-17 10:27:41 +02:00
paperdoll_21000024.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
powerbar_21000072.json feat(ui): port retail jump power bar 2026-07-13 10:22:12 +02:00
radar_21000074.json feat(ui): port retained widget foundations 2026-07-10 17:55:41 +02:00
smartbox_fps_2100000F.json fix #213: complete suicide and framerate presentation 2026-07-13 15:50:47 +02:00
spellbook_21000034.json fix(ui): restore retail spell tabs and spellbook 2026-07-15 15:54:11 +02:00
toolbar_21000016.json feat(ui): port retained widget foundations 2026-07-10 17:55:41 +02:00
vendor_21000012_100000B7.json feat(ui): Slice 5.4 — the authored vendor browse panel (LayoutDesc 0x21000012) 2026-08-07 17:00:21 +02:00
vitae_21000020.json feat(ui): share indicator detail panels 2026-07-17 10:27:41 +02:00
vitals_2100006C.json feat(ui): port retained widget foundations 2026-07-10 17:55:41 +02:00