summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2009-03-26 13:59:15 +0000
committerSilenio Quarti <silenio>2009-03-26 13:59:15 +0000
commit40b5d7f957fe454dda3cc72cef817e7a64eea1d9 (patch)
treef09e6b3298f18d2fecfb97269b8866ee67e27923 /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
parente619d691d044497570fcf3be984cbfd11be66986 (diff)
downloadeclipse.platform.swt-40b5d7f957fe454dda3cc72cef817e7a64eea1d9.tar.gz
eclipse.platform.swt-40b5d7f957fe454dda3cc72cef817e7a64eea1d9.tar.xz
eclipse.platform.swt-40b5d7f957fe454dda3cc72cef817e7a64eea1d9.zip
251608 - Artificial bold and italic style to font
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
index 77bb5b52c2..b236249b6c 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
@@ -325,6 +325,7 @@ public void addString(String string, float x, float y, Font font) {
attrStr.id = attrStr.initWithString(str).id;
attrStr.beginEditing();
attrStr.addAttribute(OS.NSFontAttributeName, font.handle, range);
+ font.addTraits(attrStr, range);
attrStr.endEditing();
textStorage.setAttributedString(attrStr);
attrStr.release();