<div class="gmail_quote">On Fri, Feb 24, 2012 at 12:14 PM, Koji Ishii <span dir="ltr"><<a href="mailto:kojiishi@gluesoft.co.jp">kojiishi@gluesoft.co.jp</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was looking into bug 48459: "Glyphs in vertical text tests are rotated 90 degrees clockwise on Windows"<br>
<a href="https://bugs.webkit.org/show_bug.cgi?id=48459" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=48459</a><br>
<br>
and found that it has two issues:<br>
<br>
1. It does not support text-orientation[1] property as OS X does.<br>
<br>
2. It uses @-font, which lets Windows do a magic to rotate some code points and apply 'vert' automatically. But that means WebKit has no control over the glyph orientations, and therefore orientation of some code points don't match to the one on OS X.<br>
<br>
I think the correct fix for the bug is to port showGlyphsWithAdvances from FontMac.mm to FontCGWin.cpp.<br>
<br>
But I then encounter an issue that WebKitLibraries does not support CTFontGetVerticalTranslationsForGlyphs API.<br>
<br>
Since Windows doesn't have such API, possible options I can think of are:<br>
<br>
1. Bring the CTFontGetVerticalTranslationsForGlyphs API to WebKitLibraries.<br>
2. Use other libraries such as FreeType[2] to read related OpenType tables.<br>
3. Read raw tables using GetFontData Win32 API and parse vhea/vorg/vmtx tables etc.<br></blockquote><div><br></div><div>Option 3 seems most desirable since it doesn't introduce new dependencies. </div><div><br></div>
<div>- Ryosuke</div><div><br></div></div>