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

Unified Diff: Source/platform/fonts/shaping/HarfBuzzShaper.h

Issue 1149693002: Add Unicode Variation Selector support to harfBuzzGetGlyph (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add -expected back that was accidentally removed during rebase Created 5 years, 6 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
Index: Source/platform/fonts/shaping/HarfBuzzShaper.h
diff --git a/Source/platform/fonts/shaping/HarfBuzzShaper.h b/Source/platform/fonts/shaping/HarfBuzzShaper.h
index 5fe820b69aa49d82fb2d0463876e156fcbcd00cb..4f12c76ddf3774c9f996273ceaaa96237c5a6810 100644
--- a/Source/platform/fonts/shaping/HarfBuzzShaper.h
+++ b/Source/platform/fonts/shaping/HarfBuzzShaper.h
@@ -78,6 +78,16 @@ public:
return false;
}
+ uint16_t glyphForTesting(unsigned runIndex, size_t glyphIndex)
+ {
+ return m_harfBuzzRuns[runIndex]->glyphData(glyphIndex).glyph;
+ }
+
+ float advanceForTesting(unsigned runIndex, size_t glyphIndex)
+ {
+ return m_harfBuzzRuns[runIndex]->glyphData(glyphIndex).advance;
+ }
+
private:
struct HarfBuzzRunGlyphData {
uint16_t glyph;
« no previous file with comments | « Source/platform/fonts/shaping/HarfBuzzFace.cpp ('k') | Source/platform/fonts/shaping/HarfBuzzShaperTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698