Summary
gpucontext v0.22.0 added PlatformProvider.FontSmoothing() — OS text anti-aliasing mode selection:
FontSmoothingNone — aliased/bitmap text
FontSmoothingGrayscale — grayscale AA
FontSmoothingSubpixel — LCD subpixel AA (ClearType)
This is distinct from SubpixelLayout (pixel arrangement). FontSmoothing tells HOW to anti-alias.
Current State
- Interface compliance: mock updated in app_test.go
SubpixelLayout already wired via ggcanvas
FontSmoothing not yet wired to text rendering pipeline
Tasks
References
- gpucontext v0.22.0:
PlatformProvider.FontSmoothing()
- Detection: Windows SPI, macOS defaults, Linux Xft.antialias + fontconfig
Summary
gpucontext v0.22.0 added
PlatformProvider.FontSmoothing()— OS text anti-aliasing mode selection:FontSmoothingNone— aliased/bitmap textFontSmoothingGrayscale— grayscale AAFontSmoothingSubpixel— LCD subpixel AA (ClearType)This is distinct from
SubpixelLayout(pixel arrangement).FontSmoothingtells HOW to anti-alias.Current State
SubpixelLayoutalready wired via ggcanvasFontSmoothingnot yet wired to text rendering pipelineTasks
FontSmoothing()from PlatformProvider to gg text renderingwidget.Contextfor custom text widgetsReferences
PlatformProvider.FontSmoothing()