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

V Stuart Foote <vstuart.fo...@utsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vstuart.fo...@utsa.edu

--- Comment #1 from V Stuart Foote <vstuart.fo...@utsa.edu> ---
Created attachment 125495
  --> https://bugs.documentfoundation.org/attachment.cgi?id=125495&action=edit
sample document showing miscalculated underlines when fallback glyphs are
present

On Windows 10 Pro 64-bit en-US with
Version: 5.1.3.2 (x64)
Build ID: 644e4637d1d8544fd9f56425bd6cec110e49301b
CPU Threads: 8; OS Version: Windows 6.19; UI Render: default; 
Locale: en-US (en_US)

also on
Version: 5.3.0.0.alpha0+ (x64)
Build ID: b2abb97a6545096d6952430f7ff37cadb1a23707
CPU Threads: 8; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2016-06-04_00:22:16
Locale: en-US (en_US)

Confirmed. However it is not confined to Droid Sans. Rather it occurs with any
fontface that does not include a glyph for codepoint U+25cf and so fallback
font substitution for the glyph occurs. When underlined only fallback glyphs
have issues with the length calculated incorrectly. It seems to be linked to
the number of characters in the underline that preceed the glyph.

Of LO bundled fonts, for simple demonstration Caladea does not cover U+25cf,
while Carlito does. Gentium fonts also do not. But occurs when underlining any
glyph with or without OpenGL rendering enabled.

STR
OpenWriter
Select Carlito font
enter "ab" and select
underline
position cursor between a & b
type "U+25cf"
position cursor after the f, and convert to glyph with <alt>+x
underline should be correct, ending at Pilcrow if displayed.

Repeat
Select Caldea font (or any font without coverage of the glyph).
enter "ab" and select
underline
position cursor between a & b
type "U+25cf"
position cursor after the f, and convert to glyph with <alt>+x
underline should be correct?

Result: underline extends beyond selected characters.

It occurs when the glyph is not covered and must be substituted, and for those
glyphs an underline is miscalculated and underlining extends past the selected
text. The length as miscalculated is affected by the number of characters
underlined that precede the fallback glyph.

Test document attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to