From 26b1a9dd7434c2b81ee967e1958af65b47af3a5c Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 2 Nov 2021 06:48:39 +0200 Subject: GmDocument: Remove heading line overlap Spacing of heading lines was being reduced for a nicer appearance, but since backgrounds are erased behind text runs, it was causing issues with some fonts. Therefore this is disabled for now until I figure out how I want to fix the background issue. Maybe smarter clipping could be applied in the page renderer so that runs are only drawn once, and erasing the background becomes unnecessary? IssueID #364 --- src/gmdocument.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/gmdocument.c b/src/gmdocument.c index 8b24ce29..a459b42f 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c @@ -968,6 +968,7 @@ static void doLayout_GmDocument_(iGmDocument *d) { ? 4 : 0) * gap_Text; } if (!isMono) { +#if 0 /* Upper-level headings are typeset a bit tighter. */ if (type == heading1_GmLineType) { rts.lineHeightReduction = 0.10f; @@ -975,6 +976,7 @@ static void doLayout_GmDocument_(iGmDocument *d) { else if (type == heading2_GmLineType) { rts.lineHeightReduction = 0.06f; } +#endif /* Visited links are never bold. */ if (run.linkId && !prefs->boldLinkVisited && linkFlags_GmDocument(d, run.linkId) & visited_GmLinkFlag) { -- cgit v1.2.3