From 80af41e43644f17b3d52e1d3c2b4d141298fdd05 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 4 Apr 2021 15:32:44 +0300 Subject: GmDocument: Broken bullet in Literata --- src/gmdocument.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/gmdocument.c b/src/gmdocument.c index c086898f..184951d3 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c @@ -580,6 +580,10 @@ static void doLayout_GmDocument_(iGmDocument *d) { if (type == bullet_GmLineType) { /* TODO: Literata bullet is broken? */ iGmRun bulRun = run; + if (prefs->font == literata_TextFont) { + /* Something wrong this the glyph in Literata, looks cropped. */ + bulRun.font = defaultContentSized_FontId; + } bulRun.color = tmQuote_ColorId; bulRun.visBounds.pos = addX_I2(pos, (indents[text_GmLineType] - 0.55f) * gap_Text); bulRun.visBounds.size = -- cgit v1.2.3