OSDN Git Service

Fallback handle if vertical glyphs are missing.
authorclaireho <chinglanho@gmail.com>
Tue, 11 Oct 2011 20:28:10 +0000 (13:28 -0700)
committerclaireho <chinglanho@gmail.com>
Wed, 12 Oct 2011 00:17:36 +0000 (17:17 -0700)
commitd7a8fefd0e472b1a70e651ae5b43b94e9a4bd976
tree5925a21c3148dc01da87d36c7e6df92004cc68ad
parent6453761f63c04897066bb40bf7d9e0c8daac1a98
Fallback handle if vertical glyphs are missing.

Bug 5094208 : browser VerticalWritingMode support.
Some punctuation has to change its glyph in vertical writing mode.
For example, dash in vertical text is a vertical bar. In
current Android system fonts and fallback fonts, none of them have the
substitute tables for vertical writing mode.  We call a conversion
function that converts the punctuation to the Unicode Vertical Form
(0xFE10 - 0xFE19) or to the closest glyphs as alternative when
vertical substitute tables are absent in fonts. Otherwise, we use
Harfbuzz to do the vertical glyph shapping.

Change-Id: If1d31bb72aaaba45ed50bbb75d6246cfa30e3428
Source/WebCore/Android.mk
Source/WebCore/platform/graphics/android/GlyphMapAndroid.cpp
Source/WebCore/platform/graphics/android/VerticalTextMap.cpp [new file with mode: 0644]
Source/WebCore/platform/graphics/android/VerticalTextMap.h [new file with mode: 0644]