diff options
author | nyamatongwe <devnull@localhost> | 2011-09-09 16:59:38 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-09-09 16:59:38 +1000 |
commit | e00160f45844f28985e11540aa62a96a2fcb0146 (patch) | |
tree | 4f4c1f6692ed01d6f6c4f5361935a07328158131 /cocoa/QuartzTextStyleAttribute.h | |
parent | ec3e2ca261c8a98fd0786c151a737ad12ed637f4 (diff) | |
parent | 8ab9f0c333bb0c9ef944d91d940c516b65b0384e (diff) | |
download | scintilla-mirror-e00160f45844f28985e11540aa62a96a2fcb0146.tar.gz |
Merge with main repository.
Diffstat (limited to 'cocoa/QuartzTextStyleAttribute.h')
-rw-r--r-- | cocoa/QuartzTextStyleAttribute.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cocoa/QuartzTextStyleAttribute.h b/cocoa/QuartzTextStyleAttribute.h index 33c49281c..b9698645e 100644 --- a/cocoa/QuartzTextStyleAttribute.h +++ b/cocoa/QuartzTextStyleAttribute.h @@ -16,12 +16,13 @@ class QuartzFont { public: /** Create a font style from a name. */ - QuartzFont( const char* name, size_t length, float size, bool bold, bool italic ) + QuartzFont( const char* name, size_t length, float size, int weight, bool italic ) { assert( name != NULL && length > 0 && name[length] == '\0' ); CFStringRef fontName = CFStringCreateWithCString(kCFAllocatorDefault, name, kCFStringEncodingMacRoman); assert(fontName != NULL); + bool bold = weight > SC_WEIGHT_NORMAL; if (bold || italic) { |