aboutsummaryrefslogtreecommitdiffstats
path: root/include/core/SkPaint.h
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2010-02-05 12:13:33 -0500
committerMike Reed <reed@google.com>2010-02-05 12:13:33 -0500
commit75c8af293816b94cd8fd9a3d9b3a4d6e052dedfe (patch)
tree44abc2fbbe48e10dc01ac531d14e0d39c0069bfa /include/core/SkPaint.h
parentf43ecde805dd6f15f555afcc523c1f36df0f4897 (diff)
downloadexternal_skia-75c8af293816b94cd8fd9a3d9b3a4d6e052dedfe.zip
external_skia-75c8af293816b94cd8fd9a3d9b3a4d6e052dedfe.tar.gz
external_skia-75c8af293816b94cd8fd9a3d9b3a4d6e052dedfe.tar.bz2
update from skia/trunk
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r--include/core/SkPaint.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 86f174a..5fef527 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -708,6 +708,15 @@ public:
int textToGlyphs(const void* text, size_t byteLength,
uint16_t glyphs[]) const;
+ /** Return true if all of the specified text has a corresponding non-zero
+ glyph ID. If any of the code-points in the text are not supported in
+ the typeface (i.e. the glyph ID would be zero), then return false.
+
+ If the text encoding for the paint is kGlyph_TextEncoding, then this
+ returns true if all of the specified glyph IDs are non-zero.
+ */
+ bool containsText(const void* text, size_t byteLength) const;
+
/** Convert the glyph array into Unichars. Unconvertable glyphs are mapped
to zero. Note: this does not look at the text-encoding setting in the
paint, only at the typeface.