Skip to content

feat: SubpixelLayout on PlatformProvider (ADR-024, v0.18.0)#17

Merged
kolkov merged 1 commit into
mainfrom
feat/subpixel-layout-adr024
May 9, 2026
Merged

feat: SubpixelLayout on PlatformProvider (ADR-024, v0.18.0)#17
kolkov merged 1 commit into
mainfrom
feat/subpixel-layout-adr024

Conversation

@kolkov
Copy link
Copy Markdown
Contributor

@kolkov kolkov commented May 9, 2026

Summary

  • Add SubpixelLayout type (None/RGB/BGR/VRGB/VBGR) to gpucontext
  • Add SubpixelLayout() method to PlatformProvider interface
  • Enables LCD/ClearType font rendering auto-detection in gg
  • NullPlatformProvider returns SubpixelNone (grayscale AA)

Follows Qt6 QPlatformScreen::SubpixelAntialiasingType pattern. Researched Qt6, GTK4/Wayland, FreeType, DRM/KMS — subpixel is a display/OS property, not GPU.

Test plan

  • go test ./... — pass
  • golangci-lint run — 0 issues
  • CI

…(ADR-024, v0.18.0)

Add SubpixelLayout type (None/RGB/BGR/VRGB/VBGR) and SubpixelLayout()
method to PlatformProvider interface. Enables auto-detection of display
subpixel arrangement for ClearType-quality font rendering in gg.

Follows Qt6 QPlatformScreen pattern — subpixel is a display/OS property,
not GPU. Researched Qt6, GTK4/Wayland, FreeType, DRM/KMS.

NullPlatformProvider returns SubpixelNone (grayscale AA fallback).
@codecov
Copy link
Copy Markdown

codecov Bot commented May 9, 2026

Codecov Report

❌ Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
platform.go 0.00% 15 Missing ⚠️

📢 Thoughts on this report? Let us know!

@kolkov kolkov merged commit 618d898 into main May 9, 2026
9 of 10 checks passed
@kolkov kolkov deleted the feat/subpixel-layout-adr024 branch May 9, 2026 13:11
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.

1 participant