diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-01 12:45:35 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-01 12:45:35 +0000 |
commit | 84b437e6cecde391258c3a8b79159848fae5c55a (patch) | |
tree | 8deb22f4cfcf3e2aa6d9f01eee159a2080940b4c /include/core/SkPaint.h | |
parent | feee9e8413b947cf7de88ae2927d283f1c6f4459 (diff) |
update dox for LCD text
git-svn-id: http://skia.googlecode.com/svn/trunk@2001 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r-- | include/core/SkPaint.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index f1d56950b0..a1dc59c179 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -159,21 +159,24 @@ public: return SkToBool(this->getFlags() & kSubpixelText_Flag); } - /** Helper for setFlags(), setting or clearing the kSubpixelText_Flag - bit @param subpixelText true to set the subpixelText bit in the paint's flags, - false to clear it. - */ + /** + * Helper for setFlags(), setting or clearing the kSubpixelText_Flag. + * @param subpixelText true to set the subpixelText bit in the paint's + * flags, false to clear it. + */ void setSubpixelText(bool subpixelText); bool isLCDRenderText() const { return SkToBool(this->getFlags() & kLCDRenderText_Flag); } - /** Helper for setFlags(), setting or clearing the kLCDRenderText_Flag bit - @param subpixelRender true to set the subpixelRenderText bit in the paint's flags, - false to clear it. - */ - void setLCDRenderText(bool subpixelRender); + /** + * Helper for setFlags(), setting or clearing the kLCDRenderText_Flag. + * Note: antialiasing must also be on for lcd rendering + * @param lcdText true to set the LCDRenderText bit in the paint's flags, + * false to clear it. + */ + void setLCDRenderText(bool lcdText); bool isEmbeddedBitmapText() const { return SkToBool(this->getFlags() & kEmbeddedBitmapText_Flag); |