Kaydet (Commit) d183e4b5 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

Just apply Asian kerning to unmodified glyphs

IMHO the old code was doing the opposite of the comment. But the
comment makes more sense then the code, so adjust the code
accordingly.

OTOH just this code was added in commit f89d70de ("INTEGRATION:
CWS vcl27 (1.30.48); FILE MERGED 2004/09/09 12:33:53 hdu
1.30.48.1: #116489# only apply asian kerning on default-formatted
text"). Maybe still a bug? Can't check the bug tracker, as this is
pre-Apache, and so can't verify the old bug :-(

Change-Id: I550d1524d3e82f7e853820d3e5ddab8cc62228f9
Reviewed-on: https://gerrit.libreoffice.org/71441
Tested-by: Jenkins
Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
üst 0578353a
...@@ -208,12 +208,10 @@ void GenericSalLayout::AdjustLayout(ImplLayoutArgs& rArgs) ...@@ -208,12 +208,10 @@ void GenericSalLayout::AdjustLayout(ImplLayoutArgs& rArgs)
ApplyDXArray(rArgs); ApplyDXArray(rArgs);
else if (rArgs.mnLayoutWidth) else if (rArgs.mnLayoutWidth)
Justify(rArgs.mnLayoutWidth); Justify(rArgs.mnLayoutWidth);
// apply asian kerning if the glyphs are not already formatted // apply asian kerning if the glyphs are not already formatted
if ((rArgs.mnFlags & SalLayoutFlags::KerningAsian) else if ((rArgs.mnFlags & SalLayoutFlags::KerningAsian)
&& !(rArgs.mnFlags & SalLayoutFlags::Vertical)) && !(rArgs.mnFlags & SalLayoutFlags::Vertical))
if ((rArgs.mpDXArray != nullptr) || (rArgs.mnLayoutWidth != 0)) ApplyAsianKerning(rArgs.mrStr);
ApplyAsianKerning(rArgs.mrStr);
} }
void GenericSalLayout::DrawText(SalGraphics& rSalGraphics) const void GenericSalLayout::DrawText(SalGraphics& rSalGraphics) const
......
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