summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp
diff options
context:
space:
mode:
authorclaireho <chinglanho@gmail.com>2011-09-20 13:56:32 -0700
committerclaireho <chinglanho@gmail.com>2011-09-20 14:11:30 -0700
commit5403113c5aa5d55a05ea001f562829e907632178 (patch)
tree263c0b331c6cd80873cd3cd057fde6a44cc16ecb /Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp
parent2ab28e97ec8eac2a936562f659c055847724ffd7 (diff)
downloadexternal_webkit-5403113c5aa5d55a05ea001f562829e907632178.zip
external_webkit-5403113c5aa5d55a05ea001f562829e907632178.tar.gz
external_webkit-5403113c5aa5d55a05ea001f562829e907632178.tar.bz2
Support "Vertical Writing Mode".
Bug 5094208 - Browser does not handle Japanese text in vertical writing mode. This changeset syncs up with Chrome's implementation for vertical text rendering. It 1. Adds fontOrientation and textOrientation to FontPlatformData. 2. Re-layout the text in drawGlyphs for vertical writing mode. Change-Id: Icac88a464b4b25b05c758a4e24c1827e0a7a0c91
Diffstat (limited to 'Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp b/Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp
index 72fac68..4279ce8 100644
--- a/Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp
+++ b/Source/WebCore/platform/graphics/android/FontCustomPlatformData.cpp
@@ -45,7 +45,8 @@ FontCustomPlatformData::~FontCustomPlatformData()
// the unref is enough to release the font data...
}
-FontPlatformData FontCustomPlatformData::fontPlatformData(int size, bool bold, bool italic, FontOrientation, TextOrientation, FontWidthVariant, FontRenderingMode)
+FontPlatformData FontCustomPlatformData::fontPlatformData(int size, bool bold, bool italic,
+ FontOrientation fontOrientation, TextOrientation textOrientation, FontWidthVariant, FontRenderingMode)
{
// turn bold/italic into fakeBold/fakeItalic
if (m_typeface != NULL) {
@@ -54,7 +55,7 @@ FontPlatformData FontCustomPlatformData::fontPlatformData(int size, bool bold, b
if (m_typeface->isItalic() == italic)
italic = false;
}
- return FontPlatformData(m_typeface, size, bold, italic);
+ return FontPlatformData(m_typeface, size, bold, italic, fontOrientation, textOrientation);
}
FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer* buffer)