Darwin font

This commit is contained in:
thomasv 2012-06-25 17:09:59 +02:00
parent 9f24e97598
commit 8288279fc3
1 changed files with 8 additions and 1 deletions

View File

@ -45,7 +45,14 @@ import bmp, mnemonic, pyqrnative
from decimal import Decimal
import platform
MONOSPACE_FONT = 'Lucida Console' if platform.system() == 'Windows' else 'monospace'
if platform.system() == 'Windows':
MONOSPACE_FONT = 'Lucida Console'
elif platform.system() == 'Darwin':
MONOSPACE_FONT = 'Monaco'
else:
MONOSPACE_FONT = 'monospace'
ALIAS_REGEXP = '^(|([\w\-\.]+)@)((\w[\w\-]+\.)+[\w\-]+)$'
def numbify(entry, is_int = False):