From 569f5b993803f686c46b6e5cb7a6898b4b0d50cc Mon Sep 17 00:00:00 2001 From: cactrot Date: Sat, 26 Sep 2020 08:26:49 -0400 Subject: [PATCH] Update shapes.py Fix type mismatch. --- cadquery/occ_impl/shapes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index 25b34e0c..e20443d5 100644 --- a/cadquery/occ_impl/shapes.py +++ b/cadquery/occ_impl/shapes.py @@ -2391,7 +2391,7 @@ class Compound(Shape, Mixin3D): mgr = Font_FontMgr.GetInstance_s() - if fontPath and not mgr.CheckFont(TCollection_AsciiString(fontPath)).IsNull(): + if fontPath and not mgr.CheckFont(TCollection_AsciiString(fontPath).ToCString()).IsNull(): system_font = Font_SystemFont(TCollection_AsciiString(font)) system_font.SetFontPath(font_kind, TCollection_AsciiString(fontPath))