-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathlcd_layout.go
More file actions
26 lines (21 loc) · 1 KB
/
Copy pathlcd_layout.go
File metadata and controls
26 lines (21 loc) · 1 KB
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
package gg
import "github.com/gogpu/gg/text"
// LCDLayout describes a requested 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. Backends without exact per-channel compositing may honor any
// requested layout by rendering a portable grayscale glyph mask instead.
//
// 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 requests grayscale rendering. This is the default.
LCDLayoutNone = text.LCDLayoutNone
// LCDLayoutRGB requests horizontal RGB ordering (most monitors).
// Physical subpixels left-to-right: Red, Green, Blue.
LCDLayoutRGB = text.LCDLayoutRGB
// LCDLayoutBGR requests horizontal BGR ordering (rare, some monitors).
// Physical subpixels left-to-right: Blue, Green, Red.
LCDLayoutBGR = text.LCDLayoutBGR
)