Bug 353730 - Characters extending above the font's ascent are not taken into account in the draw algorithm
Summary: Characters extending above the font's ascent are not taken into account in th...
Status: RESOLVED DUPLICATE of bug 335079
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.1.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-09 18:22 UTC by Louis Moureaux
Modified: 2016-03-24 16:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Moureaux 2015-10-09 18:22:10 UTC
When typing characters such as É, È or Ô (from range U+00C0 to U+00DD) that extend above the font ascent, the part above the current line is not drawn (until the previous line is redrawn). In a similar way, garbage remains when the character is deleted.

Steps to reproduce :
0) Use Oxygen font
1) Make sure the cursor is at least on the second line
2) Paste ÉÈÔ : the accents are not visible
3) Move the cursor up : the accents appear
4) Delete the characters : the accents remain
5) Move the cursor up : the accents disappear

I can't send a screenshot, because the whole window is redrawn when focused out.

This is closely related to #335079, which describes similar (though more serious) problems when the characters extend below the font's descent.
Comment 1 Dominik Haumann 2016-03-24 16:18:11 UTC
Known issue: since the painting is line-based fonts whose characters exceed the lower or upper bound of their own line height draw in the area of neighboring lines. When neighboring lines are drawn, these parts are lost. Mostly a problem in the fonts, but then again, would be nice, if Kate could handle it correctly.

*** This bug has been marked as a duplicate of bug 335079 ***