[CoreText] Update bindings to Xcode 26.4 Release Candidate#24960
[CoreText] Update bindings to Xcode 26.4 Release Candidate#24960
Conversation
…FontGetUIFontType Add the following missing CoreText bindings: - kCTFontDescriptorLanguageAttribute: Field binding in CTFontDescriptorAttributeKey and corresponding Language property in CTFontDescriptorAttributes - CTFontGetUIFontType: P/Invoke and UIFontType property on CTFont Add SupportedOSPlatform availability attributes for all platforms on the new manually bound APIs. Add monotouch-tests exercising the new APIs: - FontTest.UIFontType_SystemFont: verifies system fonts report correct type - FontTest.UIFontType_RegularFont: verifies regular fonts report None - FontDescriptorTest.LanguageAttribute: verifies language round-trips Resolves all CoreText .todo entries across iOS, tvOS, macOS, and MacCatalyst. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/CoreText/CTFont.cs
Outdated
| [SupportedOSPlatform ("macos26.4")] | ||
| [SupportedOSPlatform ("tvos26.4")] | ||
| public CTFontUIFontType UIFontType { | ||
| get { return CTFontGetUIFontType (Handle); } |
There was a problem hiding this comment.
I haven't seen this in the copilot skill, using GetCheckedHandle () instead of Handle in manual bindings:
| get { return CTFontGetUIFontType (Handle); } | |
| get { return CTFontGetUIFontType (GetCheckedHandle ()); } |
GetCheckedHandle() throws ObjectDisposedException if the object has been disposed, preventing hard-to-debug native crashes. Added as a general rule in Common Pitfalls and fixed the P/Invoke example. Ref: #24960 (comment) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
✅ [CI Build #de0d397] Build passed (Build packages) ✅Pipeline on Agent |
✅ [PR Build #de0d397] Build passed (Detect API changes) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [CI Build #de0d397] Build passed (Build macOS tests) ✅Pipeline on Agent |
🔥 [CI Build #de0d397] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 1 tests failed, 155 tests passed. Failures❌ windows tests1 tests failed, 2 tests passed.Failed tests
Html Report (VSDrops) Download Successes✅ cecil: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
No description provided.