Fixed issue #41

This commit is contained in:
Roger Maitland 2022-10-30 16:57:25 -04:00
parent 4b85aaccd3
commit 787e00a679

View file

@ -5,6 +5,8 @@ TODO:
"""
from __future__ import annotations
import os
import sys
from math import pi, sqrt, inf, radians
import warnings
import logging
@ -3972,6 +3974,10 @@ class Compound(Shape, Mixin3D):
wire_angle,
)
if sys.platform.startswith("linux"):
os.environ["FONTCONFIG_FILE"] = "/etc/fonts/fonts.conf"
os.environ["FONTCONFIG_PATH"] = "/etc/fonts/"
font_kind = {
FontStyle.REGULAR: Font_FA_Regular,
FontStyle.BOLD: Font_FA_Bold,