Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkFontLCDConfig Class Reference

Public Types

enum  LCDOrientation { kHorizontal_LCDOrientation = 0, kVertical_LCDOrientation = 1 }
 LCDs either have their color elements arranged horizontally or vertically. More...
 
enum  LCDOrder { kRGB_LCDOrder = 0, kBGR_LCDOrder = 1, kNONE_LCDOrder = 2 }
 LCD color elements can vary in order. More...
 

Static Public Member Functions

static void SetSubpixelOrientation (LCDOrientation orientation)
 
static LCDOrientation GetSubpixelOrientation ()
 
static void SetSubpixelOrder (LCDOrder order)
 
static LCDOrder GetSubpixelOrder ()
 

Member Enumeration Documentation

LCD color elements can vary in order.

For subpixel text we need to know the order which the LCDs uses so that the color fringes are in the correct place.

Note, if you change this after startup, you'll need to flush the glyph cache because it'll have the wrong type of masks cached.

kNONE_LCDOrder means that the subpixel elements are not spatially separated in any usable fashion.

Deprecated:
use SkPixelGeometry instead.
Enumerator
kRGB_LCDOrder 

this is the default

LCDs either have their color elements arranged horizontally or vertically.

When rendering subpixel glyphs we need to know which way round they are.

Note, if you change this after startup, you'll need to flush the glyph cache because it'll have the wrong type of masks cached.

Deprecated:
use SkPixelGeometry instead.
Enumerator
kHorizontal_LCDOrientation 

this is the default

Member Function Documentation

static LCDOrder SkFontLCDConfig::GetSubpixelOrder ( )
static
Deprecated:
get from Device.
static LCDOrientation SkFontLCDConfig::GetSubpixelOrientation ( )
static
Deprecated:
get from Device.
static void SkFontLCDConfig::SetSubpixelOrder ( LCDOrder  order)
static
Deprecated:
set on Device creation.
static void SkFontLCDConfig::SetSubpixelOrientation ( LCDOrientation  orientation)
static
Deprecated:
set on Device creation.

The documentation for this class was generated from the following file: