Update shapes.py

Code from PyOCC expected non-implemented function.
This commit is contained in:
cactrot
2020-09-26 08:59:55 -04:00
committed by GitHub
parent 569f5b9938
commit 080004a33e

View File

@ -2391,7 +2391,7 @@ class Compound(Shape, Mixin3D):
mgr = Font_FontMgr.GetInstance_s()
if fontPath and not mgr.CheckFont(TCollection_AsciiString(fontPath).ToCString()).IsNull():
if fontPath and not mgr.CheckFont(TCollection_AsciiString(fontPath).ToCString()):
system_font = Font_SystemFont(TCollection_AsciiString(font))
system_font.SetFontPath(font_kind, TCollection_AsciiString(fontPath))