diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-21 13:31:30 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-21 13:31:30 (GMT) |
commit | d9f5a39ef3c6f14c5b15d64049474a2b914a80d4 (patch) | |
tree | ee943da5c1332e667ac22f5c95f0ebe0b33f1ec2 /Mac/Modules/qd | |
parent | c0011894b2be2b2f69cf20d0d020b30f79fc4b48 (diff) | |
download | cpython-d9f5a39ef3c6f14c5b15d64049474a2b914a80d4.zip cpython-d9f5a39ef3c6f14c5b15d64049474a2b914a80d4.tar.gz cpython-d9f5a39ef3c6f14c5b15d64049474a2b914a80d4.tar.bz2 |
Manually added definitions for normal, bold, etc. These are in MacTypes (of all
places) which isn't worth bgenning.
Diffstat (limited to 'Mac/Modules/qd')
-rw-r--r-- | Mac/Modules/qd/qdscan.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Mac/Modules/qd/qdscan.py b/Mac/Modules/qd/qdscan.py index 81a5b1c..969baf3 100644 --- a/Mac/Modules/qd/qdscan.py +++ b/Mac/Modules/qd/qdscan.py @@ -62,7 +62,17 @@ class MyScanner(Scanner): def writeinitialdefs(self): - self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n") + self.defsfile.write(""" +def FOUR_CHAR_CODE(x): return x +normal = 0 +bold = 1 +italic = 2 +underline = 4 +outline = 8 +shadow = 0x10 +condense = 0x20 +extend = 0x40 +""") def makeblacklistnames(self): return [ |