-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathlcd_layout.go
More file actions
27 lines (22 loc) · 1019 Bytes
/
lcd_layout.go
File metadata and controls
27 lines (22 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package gg
import "github.com/gogpu/gg/text"
// LCDLayout describes the physical subpixel arrangement on the display.
// Most LCD monitors use horizontal RGB stripe ordering, where each pixel
// consists of three vertical subpixel columns (red, green, blue) from
// left to right. ClearType-style rendering exploits this to triple the
// effective horizontal resolution for text.
//
// Re-exported from text.LCDLayout for convenience so users do not need
// to import the text subpackage for this common setting.
type LCDLayout = text.LCDLayout
const (
// LCDLayoutNone disables subpixel rendering (grayscale fallback).
// This is the default.
LCDLayoutNone = text.LCDLayoutNone
// LCDLayoutRGB is horizontal RGB ordering (most common: Windows, most monitors).
// Physical subpixels left-to-right: Red, Green, Blue.
LCDLayoutRGB = text.LCDLayoutRGB
// LCDLayoutBGR is horizontal BGR ordering (rare, some monitors).
// Physical subpixels left-to-right: Blue, Green, Red.
LCDLayoutBGR = text.LCDLayoutBGR
)