diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-10 10:00:42 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-10 10:00:42 +0200 |
commit | 41571b424d9358f01b0e9f00b2906e3640cf5814 (patch) | |
tree | 21ff8a495fa5f7f74aa26541cc02a2c388fdd2b1 | |
parent | 2002543dbedcc1666d02d11fbde55f794d692bb7 (diff) |
GmDocument: Further link spacing tuning
-rw-r--r-- | src/gmdocument.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 3e7da995..a91d6a52 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -482,6 +482,11 @@ static void doLayout_GmDocument_(iGmDocument *d) { | |||
482 | if (type == link_GmLineType && prevNonBlankType == link_GmLineType && followsBlank) { | 482 | if (type == link_GmLineType && prevNonBlankType == link_GmLineType && followsBlank) { |
483 | required = 1.25f * lineHeight_Text(paragraph_FontId); | 483 | required = 1.25f * lineHeight_Text(paragraph_FontId); |
484 | } | 484 | } |
485 | else if (type == link_GmLineType && prevType == link_GmLineType) { | ||
486 | /* Balance space between the link icons and the labels, both vertically | ||
487 | between icons and between the icon and the label. */ | ||
488 | required *= 0.75f; | ||
489 | } | ||
485 | if (type == quote_GmLineType && prevType == quote_GmLineType) { | 490 | if (type == quote_GmLineType && prevType == quote_GmLineType) { |
486 | /* No margin between consecutive quote lines. */ | 491 | /* No margin between consecutive quote lines. */ |
487 | required = 0; | 492 | required = 0; |