[PyObjC-svn] r2491 - in trunk/pyobjc/pyobjc-framework-CoreText: Lib/CoreText PyObjCTest
[email protected] Thu, 10 Jun 2010 18:54:34 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Thu Jun 10 18:54:33 2010
New Revision: 2491
Log:
Add missing definitions to bridgesupport
Modified:
trunk/pyobjc/pyobjc-framework-CoreText/Lib/CoreText/PyObjC.bridgesupport
trunk/pyobjc/pyobjc-framework-CoreText/PyObjCTest/test_ctparagraphstyle.py
Modified: trunk/pyobjc/pyobjc-framework-CoreText/Lib/CoreText/PyObjC.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-CoreText/Lib/CoreText/PyObjC.bridgesupport (original)
+++ trunk/pyobjc/pyobjc-framework-CoreText/Lib/CoreText/PyObjC.bridgesupport Thu Jun 10 18:54:33 2010
@@ -16,7 +16,15 @@
<cftype gettypeid_func='CTRunGetTypeID' name='CTRunRef' type='^{__CTRun=}' type64='^{__CTRun=}' />
<cftype gettypeid_func='CTTextTabGetTypeID' name='CTTextTabRef' type='^{__CTTextTab=}' type64='^{__CTTextTab=}' />
<cftype gettypeid_func='CTTypesetterGetTypeID' name='CTTypesetterRef' type='^{__CTTypesetter=}' type64='^{__CTTypesetter=}' />
+ <constant name='kCTStrokeWidthAttributeName' type='^{__CFString=}' />
+ <constant name='kCTTypesetterOptionForcedEmbeddingLevel' type='^{__CFString=}' />
+ <constant name='kCTStrokeColorAttributeName' type='^{__CFString=}' />
+ <constant name='kCTForegroundColorFromContextAttributeName' type='^{__CFString=}' />
<constant name='kCTFontAttributeName' type='^{__CFString=}' />
+ <constant name='kCTSuperscriptAttributeName' type='^{__CFString=}' />
+ <constant name='kCTUnderlineColorAttributeName' type='^{__CFString=}' />
+ <constant name='kCTCharacterShapeAttributeName' type='^{__CFString=}' />
+ <constant name='kCTFontURLAttribute' type='^{__CFString=}' />
<constant name='kCTFontURLAttribute' type='^{__CFString=}' />
<constant name='kCTFontFormatAttribute' type='^{__CFString=}' />
<constant name='kCTFontBaselineAdjustAttribute' type='^{__CFString=}' />
@@ -777,7 +785,7 @@
</function>
<function name='CTParagraphStyleCreate'>
<retval already_cfretained='true' type='^{__CTParagraphStyle=}' />
- <arg type='^{CTParagraphStyleSetting=II^v}' type64='^{CTParagraphStyleSetting=II^v}' type_modifier='n' />
+ <arg type='^{CTParagraphStyleSetting=II^v}' type64='^{CTParagraphStyleSetting=IQ^v}' type_modifier='n' c_array_length_in_arg='1' />
<arg type='l' type64='l' />
</function>
<function name='CTParagraphStyleCreateCopy'>
Modified: trunk/pyobjc/pyobjc-framework-CoreText/PyObjCTest/test_ctparagraphstyle.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-CoreText/PyObjCTest/test_ctparagraphstyle.py (original)
+++ trunk/pyobjc/pyobjc-framework-CoreText/PyObjCTest/test_ctparagraphstyle.py Thu Jun 10 18:54:33 2010
@@ -100,7 +100,7 @@
CTParagraphStyleSetting(
spec=kCTParagraphStyleSpecifierBaseWritingDirection,
valueSize=sizeof_CTWritingDirection,
- value=chr(kCTParagraphStyleSpecifierTailIndent)),
+ value=chr(kCTParagraphStyleSpecifierTailIndent).encode('latin1')),
CTParagraphStyleSetting(
spec=kCTParagraphStyleSpecifierFirstLineHeadIndent,
valueSize=sizeof_CGFloat,
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo