https://bugs.documentfoundation.org/show_bug.cgi?id=145322

--- Comment #7 from himajin100...@gmail.com ---
just a guess:

https://opengrok.libreoffice.org/xref/core/vcl/source/gdi/CommonSalLayout.cxx?r=5dc3bc1e#403

https://opengrok.libreoffice.org/xref/core/vcl/source/gdi/CommonSalLayout.cxx?r=5dc3bc1e#588

https://opengrok.libreoffice.org/xref/core/vcl/win/gdi/DWriteTextRenderer.cxx?r=677434a5#273

https://opengrok.libreoffice.org/xref/core/vcl/win/gdi/DWriteTextRenderer.cxx?r=677434a5#406

----
e.g.
for U+3042, vertical orientation is Upright, so GlyphItem::IsVertical returns
true.
https://www.unicode.org/Public/UNIDATA/VerticalOrientation.txt

I guess, if tb-rl is specified in Page style,

angle = rLayout.GetOrientation(); // angle is set to -900_deg10? I haven't
taken log yet.
if (isVertical) // true for this time
angle += 900_deg10; // angle is set to (-900 + 900) = 0 ?

-> drawn upright ?
--

I wonder what if we change to the following code 

// we don't rely on this value
//  Degree10 angle = rLayout.GetOrientation();

    if (!bIsVertical)
        angle = -900_deg10;

------------------

I haven't investigated much about side effect, though.
Some case may really use orientation. 
One of the cases I'm concerned about is these radio buttons

https://opengrok.libreoffice.org/xref/core/cui/source/tabpages/chardlg.cxx?r=d72511ed#2417

and similar rotations may appear in other applications like Draw and Impress.

I hope my worries here are just nonsense.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to