tdf#105650 different strikethrough offset for vertical writing.
Change-Id: I7f1a8753bb00972865625628baeff76ff5dc4699 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115015 Tested-by: Jenkins Reviewed-by: Mark Hung <marklh9@gmail.com>
This commit is contained in:
@@ -170,7 +170,7 @@ void ImplFontMetricData::ImplInitTextLineSize( const OutputDevice* pDev )
|
||||
const vcl::Font& rFont ( pDev->GetFont() );
|
||||
bool bCJKVertical = MsLangId::isCJK(rFont.GetLanguage()) && rFont.IsVertical();
|
||||
tools::Long nUnderlineOffset = bCJKVertical ? mnDescent : (mnDescent/2 + 1);
|
||||
tools::Long nStrikeoutOffset = -((mnAscent - mnIntLeading) / 3);
|
||||
tools::Long nStrikeoutOffset = rFont.IsVertical() ? -((mnAscent - mnDescent) / 2) : -((mnAscent - mnIntLeading) / 3);
|
||||
|
||||
mnUnderlineSize = nLineHeight;
|
||||
mnUnderlineOffset = nUnderlineOffset - nLineHeight2;
|
||||
|
||||
Reference in New Issue
Block a user