Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 9610269

Browse files
author
Frederik De Bleser
committed
Use the default monospace font.
1 parent eaa1ab1 commit 9610269

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

nodebox/gui/mac/PyDETextView.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -678,12 +678,7 @@ def charIndexFromLineIndex(self, lineIndex):
678678
def numberOfLines(self):
679679
return len(self.lines)
680680

681-
_basicFont = NSFont.fontWithName_size_("Monaco", 10)
682-
if _basicFont is None:
683-
import sys
684-
from nodebox.gui.mac.util import errorAlert
685-
errorAlert("Monaco font not enabled", 'NodeBox needs the "Monaco" font to work properly. Please enable it in Font Book.')
686-
sys.exit(-1)
681+
_basicFont = NSFont.userFixedPitchFontOfSize_(11)
687682

688683
_BASICATTRS = {NSFontAttributeName: _basicFont,
689684
NSLigatureAttributeName: 0}

0 commit comments

Comments
 (0)