Kaydet (Commit) d9ad59da authored tarafından Mark Hung's avatar Mark Hung

tdf#55361 fix result of showing RTL text in the animation.

Call drawTextArray with SalLayoutFlags::BiDiRTL if the
text direction of a TextLayout is RTL.

Change-Id: I1a3bfaee5521eea77b44350c21c104cbf72fac97
Reviewed-on: https://gerrit.libreoffice.org/61460
Tested-by: Jenkins
Reviewed-by: 's avatarMark Hung <marklh9@gmail.com>
üst 800c6052
......@@ -207,7 +207,8 @@ namespace dxcanvas
maLogicalAdvancements,
mpFont.get(),
mpFont->getFontMatrix(),
bAlphaSurface);
bAlphaSurface,
mnTextDirection != 0);
return true;
}
......
......@@ -68,7 +68,8 @@ namespace dxcanvas
const css::uno::Reference<
css::rendering::XCanvasFont >& rCanvasFont,
const css::geometry::Matrix2D& rFontMatrix,
bool bAlphaSurface )
bool bAlphaSurface,
bool bIsRTL)
{
HDC hdc = rGraphics->GetHDC();
......@@ -209,7 +210,8 @@ namespace dxcanvas
aText,
pDXArray.get(),
rText.StartPosition,
rText.Length );
rText.Length,
bIsRTL ? SalLayoutFlags::BiDiRtl : SalLayoutFlags::NONE);
}
else
{
......
......@@ -57,7 +57,8 @@ namespace dxcanvas
const css::uno::Reference<
css::rendering::XCanvasFont >& rCanvasFont,
const css::geometry::Matrix2D& rFontMatrix,
bool bAlphaSurface );
bool bAlphaSurface,
bool bIsRTL);
css::geometry::RealRectangle2D queryTextBounds(
const css::rendering::StringContext& rText,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment