Commits

Ronald Oussoren committed d28998d

Add missing definitions to bridgesupport

Comments (0)

Files changed (2)

pyobjc-framework-CoreText/Lib/CoreText/PyObjC.bridgesupport

   <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=}' />
   </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'>

pyobjc-framework-CoreText/PyObjCTest/test_ctparagraphstyle.py

                 CTParagraphStyleSetting(
                     spec=kCTParagraphStyleSpecifierBaseWritingDirection,
                     valueSize=sizeof_CTWritingDirection,
-                    value=chr(kCTParagraphStyleSpecifierTailIndent)),
+                    value=chr(kCTParagraphStyleSpecifierTailIndent).encode('latin1')),
                 CTParagraphStyleSetting(
                     spec=kCTParagraphStyleSpecifierFirstLineHeadIndent,
                     valueSize=sizeof_CGFloat,