From 610ea7f4f503d690287c75fc5e8b003e1d7b5c96 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 7 Mar 2021 13:29:21 +0100 Subject: [PATCH] Fix display of emphasize in slanted text Fixes bug #12175. --- src/FontInfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FontInfo.h b/src/FontInfo.h index 42eea31e92..3feefca662 100644 --- a/src/FontInfo.h +++ b/src/FontInfo.h @@ -129,7 +129,8 @@ public: if (noun_ == FONT_ON) return SMALLCAPS_SHAPE; if (emph_ == FONT_ON) - return (shape_ == ITALIC_SHAPE) ? UP_SHAPE : ITALIC_SHAPE; + return (shape_ == ITALIC_SHAPE || shape_ == SLANTED_SHAPE) + ? UP_SHAPE : ITALIC_SHAPE; return shape_; } -- 2.39.5