Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/core/SkTypeface.h

Issue 2095263003: typedef uint16_t SkGlyphID (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkTextBlob.h ('k') | include/core/SkTypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTypeface.h
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index e3a311da4337eae9429185104225db62bed07ccb..4f3879c6c295d2a46fe53972efd29df0361ffe64 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -188,7 +188,7 @@ public:
* from the beginning of chars. This value is valid, even if the
* glyphs parameter is NULL.
*/
- int charsToGlyphs(const void* chars, Encoding encoding, uint16_t glyphs[],
+ int charsToGlyphs(const void* chars, Encoding encoding, SkGlyphID glyphs[],
int glyphCount) const;
/**
@@ -262,7 +262,7 @@ public:
* array will be in an undefined state (possibly some values may have been
* written, but none of them should be interpreted as valid values).
*/
- bool getKerningPairAdjustments(const uint16_t glyphs[], int count,
+ bool getKerningPairAdjustments(const SkGlyphID glyphs[], int count,
int32_t adjustments[]) const;
struct LocalizedString {
@@ -364,12 +364,12 @@ protected:
virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const = 0;
- virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[],
+ virtual int onCharsToGlyphs(const void* chars, Encoding, SkGlyphID glyphs[],
int glyphCount) const = 0;
virtual int onCountGlyphs() const = 0;
virtual int onGetUPEM() const = 0;
- virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count,
+ virtual bool onGetKerningPairAdjustments(const SkGlyphID glyphs[], int count,
int32_t adjustments[]) const;
/** Returns the family name of the typeface as known by its font manager.
« no previous file with comments | « include/core/SkTextBlob.h ('k') | include/core/SkTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698