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

Unified Diff: Source/platform/fonts/opentype/OpenTypeVerticalData.h

Issue 932033002: Re-enable vertical flow in SimplePath (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TestExpectations Created 5 years, 10 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 | « Source/platform/fonts/SimpleFontData.h ('k') | Source/platform/fonts/opentype/OpenTypeVerticalData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/opentype/OpenTypeVerticalData.h
diff --git a/Source/platform/fonts/opentype/OpenTypeVerticalData.h b/Source/platform/fonts/opentype/OpenTypeVerticalData.h
index 65b8307e95ac476bb8d416e60f9de81c4fcc1d79..6c08c7f15fad281d6b27e71c94264dcc5c6df92b 100644
--- a/Source/platform/fonts/opentype/OpenTypeVerticalData.h
+++ b/Source/platform/fonts/opentype/OpenTypeVerticalData.h
@@ -35,6 +35,7 @@
namespace blink {
class FontPlatformData;
+class GlyphPage;
class SimpleFontData;
class PLATFORM_EXPORT OpenTypeVerticalData : public RefCounted<OpenTypeVerticalData> {
@@ -52,12 +53,14 @@ public:
void setInFontCache(bool inFontCache) { m_inFontCache = inFontCache; }
void getVerticalTranslationsForGlyphs(const SimpleFontData*, const Glyph*, size_t, float* outXYArray) const;
+ void substituteWithVerticalGlyphs(const SimpleFontData*, GlyphPage*, unsigned offset, unsigned length) const;
private:
explicit OpenTypeVerticalData(const FontPlatformData&);
void loadMetrics(const FontPlatformData&);
+ void loadVerticalGlyphSubstitutions(const FontPlatformData&);
bool hasVORG() const { return !m_vertOriginY.isEmpty(); }
HashMap<Glyph, Glyph> m_verticalGlyphMap;
« no previous file with comments | « Source/platform/fonts/SimpleFontData.h ('k') | Source/platform/fonts/opentype/OpenTypeVerticalData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698