aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/QuartzTextStyleAttribute.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-09-24 22:10:59 +1000
committernyamatongwe <devnull@localhost>2011-09-24 22:10:59 +1000
commit13c4176ea8389b4fc11fed3e87f4e5439c57443f (patch)
treebecbb686e7e24d5a4006eea0cf3500cf943fd807 /cocoa/QuartzTextStyleAttribute.h
parent70c8f32c4482e04bacae5d4712a34a2df2ddf209 (diff)
parentd214500ee10fe9830cdc36d0b039d49ef86e26de (diff)
downloadscintilla-mirror-13c4176ea8389b4fc11fed3e87f4e5439c57443f.tar.gz
Merged fractional text positioning branch.
Diffstat (limited to 'cocoa/QuartzTextStyleAttribute.h')
-rw-r--r--cocoa/QuartzTextStyleAttribute.h3
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)
{