SkScalerContext Class Reference
#include <SkScalerContext.h>
List of all members.
Classes |
struct | Rec |
Public Types |
enum | Flags {
kFrameAndFill_Flag = 0x01,
kDevKernText_Flag = 0x02,
kGammaForBlack_Flag = 0x04,
kGammaForWhite_Flag = 0x08,
kHintingBit1_Flag = 0x10,
kHintingBit2_Flag = 0x20
} |
Public Member Functions |
| SkScalerContext (const SkDescriptor *desc) |
virtual | ~SkScalerContext () |
void | setBaseGlyphCount (unsigned baseGlyphCount) |
uint16_t | charToGlyphID (SkUnichar uni) |
unsigned | getGlyphCount () const |
void | getAdvance (SkGlyph *) |
void | getMetrics (SkGlyph *) |
void | getImage (const SkGlyph &) |
void | getPath (const SkGlyph &, SkPath *) |
void | getFontMetrics (SkPaint::FontMetrics *mX, SkPaint::FontMetrics *mY) |
Static Public Member Functions |
static void | MakeRec (const SkPaint &, const SkMatrix *, Rec *rec) |
static SkScalerContext * | Create (const SkDescriptor *) |
Protected Member Functions |
virtual unsigned | generateGlyphCount () const =0 |
virtual uint16_t | generateCharToGlyph (SkUnichar)=0 |
virtual void | generateAdvance (SkGlyph *)=0 |
virtual void | generateMetrics (SkGlyph *)=0 |
virtual void | generateImage (const SkGlyph &)=0 |
virtual void | generatePath (const SkGlyph &, SkPath *)=0 |
virtual void | generateFontMetrics (SkPaint::FontMetrics *mX, SkPaint::FontMetrics *mY)=0 |
Protected Attributes |
Rec | fRec |
unsigned | fBaseGlyphCount |
Detailed Description
Definition at line 146 of file SkScalerContext.h.
Member Enumeration Documentation
- Enumerator:
kFrameAndFill_Flag |
|
kDevKernText_Flag |
|
kGammaForBlack_Flag |
|
kGammaForWhite_Flag |
|
kHintingBit1_Flag |
|
kHintingBit2_Flag |
|
Definition at line 148 of file SkScalerContext.h.
Constructor & Destructor Documentation
SkScalerContext::SkScalerContext |
( |
const SkDescriptor * |
desc |
) |
|
virtual SkScalerContext::~SkScalerContext |
( |
|
) |
[virtual] |
Member Function Documentation
uint16_t SkScalerContext::charToGlyphID |
( |
SkUnichar |
uni |
) |
|
Return the corresponding glyph for the specified unichar. Since contexts may be chained (under the hood), the glyphID that is returned may in fact correspond to a different font/context. In that case, we use the base-glyph-count to know how to translate back into local glyph space.
virtual void SkScalerContext::generateAdvance |
( |
SkGlyph * |
|
) |
[protected, pure virtual] |
virtual uint16_t SkScalerContext::generateCharToGlyph |
( |
SkUnichar |
|
) |
[protected, pure virtual] |
virtual unsigned SkScalerContext::generateGlyphCount |
( |
|
) |
const [protected, pure virtual] |
virtual void SkScalerContext::generateImage |
( |
const SkGlyph & |
|
) |
[protected, pure virtual] |
virtual void SkScalerContext::generateMetrics |
( |
SkGlyph * |
|
) |
[protected, pure virtual] |
virtual void SkScalerContext::generatePath |
( |
const SkGlyph & |
, |
|
|
SkPath * |
| |
|
) |
| | [protected, pure virtual] |
void SkScalerContext::getAdvance |
( |
SkGlyph * |
|
) |
|
unsigned SkScalerContext::getGlyphCount |
( |
|
) |
const [inline] |
void SkScalerContext::getImage |
( |
const SkGlyph & |
|
) |
|
void SkScalerContext::getMetrics |
( |
SkGlyph * |
|
) |
|
static void SkScalerContext::MakeRec |
( |
const SkPaint & |
, |
|
|
const SkMatrix * |
, |
|
|
Rec * |
rec | |
|
) |
| | [inline, static] |
void SkScalerContext::setBaseGlyphCount |
( |
unsigned |
baseGlyphCount |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: