#include <SkScalerContext.h>
Public Types | |
enum | { kSubBits = 2, kSubMask = ((1 << kSubBits) - 1), kSubShift = 24, kCodeMask = ((1 << kSubShift) - 1), kSubShiftX = kSubBits, kSubShiftY = 0 } |
Public Member Functions | |
unsigned | rowBytes () const |
bool | isJustAdvance () const |
bool | isFullMetrics () const |
uint16_t | getGlyphID () const |
unsigned | getGlyphID (unsigned baseGlyphCount) const |
unsigned | getSubX () const |
SkFixed | getSubXFixed () const |
SkFixed | getSubYFixed () const |
size_t | computeImageSize () const |
void | zeroMetrics () |
void | toMask (SkMask *mask) const |
void | expandA8ToLCD () const |
Static Public Member Functions | |
static unsigned | ID2Code (uint32_t id) |
static unsigned | ID2SubX (uint32_t id) |
static unsigned | ID2SubY (uint32_t id) |
static unsigned | FixedToSub (SkFixed n) |
static SkFixed | SubToFixed (unsigned sub) |
static uint32_t | MakeID (unsigned code) |
static uint32_t | MakeID (unsigned code, SkFixed x, SkFixed y) |
Public Attributes | |
void * | fImage |
SkPath * | fPath |
SkFixed | fAdvanceX |
SkFixed | fAdvanceY |
uint32_t | fID |
uint16_t | fWidth |
uint16_t | fHeight |
int16_t | fTop |
int16_t | fLeft |
uint8_t | fMaskFormat |
int8_t | fRsbDelta |
int8_t | fLsbDelta |
Definition at line 34 of file SkScalerContext.h.
anonymous enum |
Definition at line 94 of file SkScalerContext.h.
size_t SkGlyph::computeImageSize | ( | ) | const |
void SkGlyph::expandA8ToLCD | ( | ) | const |
Given a glyph which is has a mask format of LCD or VerticalLCD, take the A8 plane in fImage and produce a valid LCD plane from it.
static unsigned SkGlyph::FixedToSub | ( | SkFixed | n | ) | [inline, static] |
Definition at line 116 of file SkScalerContext.h.
unsigned SkGlyph::getGlyphID | ( | unsigned | baseGlyphCount | ) | const [inline] |
Definition at line 68 of file SkScalerContext.h.
uint16_t SkGlyph::getGlyphID | ( | ) | const [inline] |
Definition at line 64 of file SkScalerContext.h.
unsigned SkGlyph::getSubX | ( | ) | const [inline] |
Definition at line 74 of file SkScalerContext.h.
SkFixed SkGlyph::getSubXFixed | ( | ) | const [inline] |
Definition at line 78 of file SkScalerContext.h.
SkFixed SkGlyph::getSubYFixed | ( | ) | const [inline] |
Definition at line 82 of file SkScalerContext.h.
static unsigned SkGlyph::ID2Code | ( | uint32_t | id | ) | [inline, static] |
Definition at line 104 of file SkScalerContext.h.
static unsigned SkGlyph::ID2SubX | ( | uint32_t | id | ) | [inline, static] |
Definition at line 108 of file SkScalerContext.h.
static unsigned SkGlyph::ID2SubY | ( | uint32_t | id | ) | [inline, static] |
Definition at line 112 of file SkScalerContext.h.
bool SkGlyph::isFullMetrics | ( | ) | const [inline] |
Definition at line 60 of file SkScalerContext.h.
bool SkGlyph::isJustAdvance | ( | ) | const [inline] |
Definition at line 56 of file SkScalerContext.h.
Definition at line 129 of file SkScalerContext.h.
static uint32_t SkGlyph::MakeID | ( | unsigned | code | ) | [inline, static] |
Definition at line 125 of file SkScalerContext.h.
unsigned SkGlyph::rowBytes | ( | ) | const [inline] |
Definition at line 46 of file SkScalerContext.h.
static SkFixed SkGlyph::SubToFixed | ( | unsigned | sub | ) | [inline, static] |
Definition at line 120 of file SkScalerContext.h.
void SkGlyph::toMask | ( | SkMask * | mask | ) | const |
void SkGlyph::zeroMetrics | ( | ) |
Call this to set all of the metrics fields to 0 (e.g. if the scaler encounters an error measuring a glyph). Note: this does not alter the fImage, fPath, fID, fMaskFormat fields.
Definition at line 37 of file SkScalerContext.h.
Definition at line 37 of file SkScalerContext.h.
uint16_t SkGlyph::fHeight |
Definition at line 40 of file SkScalerContext.h.
uint32_t SkGlyph::fID |
Definition at line 39 of file SkScalerContext.h.
void* SkGlyph::fImage |
Definition at line 35 of file SkScalerContext.h.
int16_t SkGlyph::fLeft |
Definition at line 41 of file SkScalerContext.h.
int8_t SkGlyph::fLsbDelta |
Definition at line 44 of file SkScalerContext.h.
uint8_t SkGlyph::fMaskFormat |
Definition at line 43 of file SkScalerContext.h.
Definition at line 36 of file SkScalerContext.h.
int8_t SkGlyph::fRsbDelta |
Definition at line 44 of file SkScalerContext.h.
int16_t SkGlyph::fTop |
Definition at line 41 of file SkScalerContext.h.
uint16_t SkGlyph::fWidth |
Definition at line 40 of file SkScalerContext.h.