From 897d162544fef58333b70ba8ce3cb467432dbc75 Mon Sep 17 00:00:00 2001 From: Corran Webster Date: Mon, 8 Aug 2022 11:21:10 +0100 Subject: [PATCH] Take into account all font features when drawing SVG text. (#980) --- kiva/svg.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/kiva/svg.py b/kiva/svg.py index 2ca6c0478..0dc09332d 100644 --- a/kiva/svg.py +++ b/kiva/svg.py @@ -78,6 +78,13 @@ def default_filter(kw1): constants.JOIN_BEVEL: "bevel", constants.JOIN_MITER: "miter", } +font_style_map = { + constants.NORMAL: "normal", + constants.BOLD: "normal", + constants.ITALIC: "italic", + constants.BOLD_ITALIC: "italic", +} + xmltemplate = """