diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-02 06:48:39 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-02 06:48:39 +0200 |
commit | 26b1a9dd7434c2b81ee967e1958af65b47af3a5c (patch) | |
tree | cc7eb6cc0c197238e31aaf643d161be5a508002a | |
parent | 1cf757598fe46430f7f7f857f7c9bd9d5bb146d1 (diff) |
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
-rw-r--r-- | src/gmdocument.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { | |||
968 | ? 4 : 0) * gap_Text; | 968 | ? 4 : 0) * gap_Text; |
969 | } | 969 | } |
970 | if (!isMono) { | 970 | if (!isMono) { |
971 | #if 0 | ||
971 | /* Upper-level headings are typeset a bit tighter. */ | 972 | /* Upper-level headings are typeset a bit tighter. */ |
972 | if (type == heading1_GmLineType) { | 973 | if (type == heading1_GmLineType) { |
973 | rts.lineHeightReduction = 0.10f; | 974 | rts.lineHeightReduction = 0.10f; |
@@ -975,6 +976,7 @@ static void doLayout_GmDocument_(iGmDocument *d) { | |||
975 | else if (type == heading2_GmLineType) { | 976 | else if (type == heading2_GmLineType) { |
976 | rts.lineHeightReduction = 0.06f; | 977 | rts.lineHeightReduction = 0.06f; |
977 | } | 978 | } |
979 | #endif | ||
978 | /* Visited links are never bold. */ | 980 | /* Visited links are never bold. */ |
979 | if (run.linkId && !prefs->boldLinkVisited && | 981 | if (run.linkId && !prefs->boldLinkVisited && |
980 | linkFlags_GmDocument(d, run.linkId) & visited_GmLinkFlag) { | 982 | linkFlags_GmDocument(d, run.linkId) & visited_GmLinkFlag) { |