diff options
| author | nyamatongwe <unknown> | 2011-09-24 22:10:59 +1000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-09-24 22:10:59 +1000 |
| commit | 77d25bd25490fe412a213581e371c7c26eb23f7d (patch) | |
| tree | e91d99a2328e82067e9781599cb2e058a8400fa3 /cocoa/QuartzTextStyleAttribute.h | |
| parent | df08d45447c2b2386629d13004f4ab6006cab2d8 (diff) | |
| parent | 33e27dc25f933a92566d91a667ba4ee732ba6cfa (diff) | |
| download | scintilla-mirror-77d25bd25490fe412a213581e371c7c26eb23f7d.tar.gz | |
Merged fractional text positioning branch.
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) { |
