Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Nov 5, 2024
1 parent 1f57d3f commit 6f87314
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions gui/wxpython/psmap/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,23 +1045,9 @@ def makePSFont(self, textDict):
if "Bold" in fontstyle:
weight = wx.FONTWEIGHT_BOLD

try:
fn = wx.Font(
pointSize=fontsize,
family=family,
style=style,
weight=weight,
faceName=face,
)
except (ValueError, wx.PyAssertionError):
fn = wx.Font(
pointSize=fontsize,
family=wx.FONTFAMILY_DEFAULT,
style=wx.FONTSTYLE_NORMAL,
weight=wx.FONTWEIGHT_NORMAL,
)

return fn
return wx.Font(
pointSize=fontsize, family=family, style=style, weight=weight, faceName=face
)

def getTextExtent(self, textDict):
"""Estimates bounding rectangle of text"""
Expand Down

0 comments on commit 6f87314

Please sign in to comment.