From 41571b424d9358f01b0e9f00b2906e3640cf5814 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 10 Mar 2021 10:00:42 +0200 Subject: GmDocument: Further link spacing tuning --- src/gmdocument.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gmdocument.c') 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) { if (type == link_GmLineType && prevNonBlankType == link_GmLineType && followsBlank) { required = 1.25f * lineHeight_Text(paragraph_FontId); } + else if (type == link_GmLineType && prevType == link_GmLineType) { + /* Balance space between the link icons and the labels, both vertically + between icons and between the icon and the label. */ + required *= 0.75f; + } if (type == quote_GmLineType && prevType == quote_GmLineType) { /* No margin between consecutive quote lines. */ required = 0; -- cgit v1.2.3