peachsim 0.1.1744 → 0.1.1801

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (690) hide show
  1. package/README.md +28 -28
  2. package/cli/account-gate.ts +97 -0
  3. package/cli/app-catalog.ts +24 -0
  4. package/cli/app-stubs.ts +7 -0
  5. package/cli/auth.ts +48 -18
  6. package/cli/bin.ts +35 -2
  7. package/cli/bridge-flow-runner.ts +174 -6
  8. package/cli/cloud-dispatch.ts +0 -3
  9. package/cli/command-registry.ts +2 -6
  10. package/cli/commands/auth.ts +68 -3
  11. package/cli/commands/compat.ts +1116 -0
  12. package/cli/commands/control.ts +90 -13
  13. package/cli/commands/coverage.ts +85 -116
  14. package/cli/commands/detox.ts +20 -20
  15. package/cli/commands/device.ts +31 -27
  16. package/cli/commands/doctor.ts +76 -1032
  17. package/cli/commands/flow.ts +80 -41
  18. package/cli/commands/guest-host.ts +2 -2
  19. package/cli/commands/inspect/core.ts +8 -7
  20. package/cli/commands/inspect/settling.ts +60 -25
  21. package/cli/commands/inspect/wait-ready.ts +6 -4
  22. package/cli/commands/inspect/wait-selector.ts +32 -18
  23. package/cli/commands/inspect.ts +8 -6
  24. package/cli/commands/kotlin.ts +15 -6
  25. package/cli/commands/logout.ts +4 -2
  26. package/cli/commands/maestro-compare.ts +19 -37
  27. package/cli/commands/maestro-generate.ts +4 -4
  28. package/cli/commands/maestro.ts +56 -37
  29. package/cli/commands/package.ts +136 -57
  30. package/cli/commands/preview.ts +10 -1
  31. package/cli/commands/{film.ts → record-three.ts} +33 -28
  32. package/cli/commands/record.ts +41 -39
  33. package/cli/commands/screenshots.ts +4 -0
  34. package/cli/commands/setup.ts +38 -1
  35. package/cli/commands/shell-url.ts +49 -24
  36. package/cli/commands/swift.ts +29 -11
  37. package/cli/commands/test.ts +43 -13
  38. package/cli/commands/upload.ts +12 -9
  39. package/cli/drivers/playwright-core-pin.ts +2 -2
  40. package/cli/flow-export.ts +1 -1
  41. package/cli/flow-file.ts +1 -1
  42. package/cli/internal-child.ts +3 -8
  43. package/cli/maestro-compare.ts +73 -7
  44. package/cli/maestro-js.ts +1 -1
  45. package/cli/maestro-report.ts +1 -1
  46. package/cli/maestro-workspace.ts +66 -4
  47. package/cli/main.ts +22 -55
  48. package/cli/native-input.ts +13 -20
  49. package/cli/outbound-endpoints.ts +40 -7
  50. package/cli/output-redaction.ts +8 -3
  51. package/cli/packaged-app-launcher.ts +40 -28
  52. package/cli/prompt.ts +20 -0
  53. package/cli/recording-access.ts +7 -7
  54. package/cli/run-registry.ts +1 -1
  55. package/cli/scene-video.ts +0 -4
  56. package/cli/ws-bridge.ts +7 -4
  57. package/detox/index.ts +293 -50
  58. package/detox/jest-preset.cjs +6 -0
  59. package/detox/launch-permissions.ts +1 -21
  60. package/dist-lib/agent-daemon-client.cjs +1 -1
  61. package/dist-lib/agent-events.cjs +1 -1
  62. package/dist-lib/attached-projects.cjs +1 -1
  63. package/dist-lib/auth/shared-session.cjs +1 -1
  64. package/dist-lib/backend-origin.cjs +1 -1
  65. package/dist-lib/beta.cjs +1 -1
  66. package/dist-lib/beta.mjs +1 -1
  67. package/dist-lib/bridge-constants.cjs +1 -1
  68. package/dist-lib/bridge-contract-input.cjs +1 -1
  69. package/dist-lib/bridge-contract-input.mjs +1 -1
  70. package/dist-lib/bridge-contract.cjs +2 -8
  71. package/dist-lib/bridge-contract.mjs +2 -7
  72. package/dist-lib/bundle-channel.cjs +45273 -38265
  73. package/dist-lib/capture-contract.cjs +37 -14
  74. package/dist-lib/capture-contract.mjs +36 -13
  75. package/dist-lib/cloud-contract.cjs +1 -1
  76. package/dist-lib/cloud-contract.mjs +1 -1
  77. package/dist-lib/cloud-test-args.cjs +1 -1
  78. package/dist-lib/cloud-test-args.mjs +1 -1
  79. package/dist-lib/cloud.cjs +2 -2
  80. package/dist-lib/cloud.mjs +2 -2
  81. package/dist-lib/config.cjs +1 -1
  82. package/dist-lib/config.mjs +1 -1
  83. package/dist-lib/detox/index.cjs +562 -126
  84. package/dist-lib/detox/jest-preset.cjs +6 -0
  85. package/dist-lib/dev-bundle-resolution.cjs +18 -13
  86. package/dist-lib/expo-swift-bundle.cjs +28566 -23874
  87. package/dist-lib/expo-swift-metadata.cjs +104 -2
  88. package/dist-lib/expo-swift-metadata.mjs +104 -2
  89. package/dist-lib/home-paths.cjs +8 -5
  90. package/dist-lib/host/bridge-host.cjs +36618 -29846
  91. package/dist-lib/host/fetch-proxy-handler.cjs +23 -20
  92. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  93. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  94. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  95. package/dist-lib/host/websocket-proxy.cjs +5 -2
  96. package/dist-lib/index.cjs +1921 -1549
  97. package/dist-lib/jump-to-source-babel.cjs +1 -1
  98. package/dist-lib/jump-to-source-native.cjs +1 -1
  99. package/dist-lib/kotlin-host.cjs +1 -1
  100. package/dist-lib/menu.cjs +21 -7
  101. package/dist-lib/menu.mjs +21 -7
  102. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  103. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  104. package/dist-lib/metro-production-bundle.cjs +1 -1
  105. package/dist-lib/metro-production-bundle.mjs +1 -1
  106. package/dist-lib/metro.cjs +1877 -1584
  107. package/dist-lib/native-app-identity-project.cjs +1274 -951
  108. package/dist-lib/native-app-identity-project.mjs +1414 -963
  109. package/dist-lib/native-app-identity.cjs +64 -58
  110. package/dist-lib/native-app-identity.mjs +64 -58
  111. package/dist-lib/native-firebase-metadata.cjs +1 -1
  112. package/dist-lib/native-firebase-metadata.mjs +1 -1
  113. package/dist-lib/plist.cjs +1 -1
  114. package/dist-lib/plist.mjs +1 -1
  115. package/dist-lib/profiles.cjs +1 -1
  116. package/dist-lib/public-brand.cjs +1 -1
  117. package/dist-lib/public-origins-lib-esm.json +79 -33
  118. package/dist-lib/public-origins-lib-static.json +1 -1
  119. package/dist-lib/public-origins-lib.json +484 -280
  120. package/dist-lib/react-native-host-modules.cjs +3 -1
  121. package/dist-lib/react-native-host-modules.mjs +3 -1
  122. package/dist-lib/reap-browser.cjs +23 -26
  123. package/dist-lib/scripts/dev-server-scanner.cjs +13 -10
  124. package/dist-lib/sdk.cjs +69 -36
  125. package/dist-lib/sdk.mjs +69 -36
  126. package/dist-lib/skills.cjs +33781 -27141
  127. package/dist-lib/swift-compile.cjs +3759 -2520
  128. package/dist-lib/swift-compile.mjs +3680 -2441
  129. package/dist-lib/swift-package.cjs +33 -1
  130. package/dist-lib/swift-package.mjs +31 -1
  131. package/dist-lib/swift-submit.cjs +1 -1
  132. package/dist-lib/swift-submit.mjs +1 -1
  133. package/dist-lib/swift-toolchain.cjs +102 -5
  134. package/dist-lib/swift.cjs +1 -1
  135. package/dist-lib/vite-swift.cjs +16480 -14579
  136. package/dist-lib/vite.cjs +269 -295
  137. package/dist-lib/worklet-executable.cjs +1 -1
  138. package/dist-lib/worklet-executable.mjs +1 -1
  139. package/dist-types/packages/peach-compat/src/secure-item-store.d.ts +38 -0
  140. package/dist-types/packages/peach-compat/src/stubs/ring-mode-state.d.ts +4 -0
  141. package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +21 -12
  142. package/dist-types/packages/peach-engine/src/billing/plans.d.ts +1 -2
  143. package/dist-types/packages/peach-engine/src/capture/browser-composite-provider.d.ts +2 -0
  144. package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +1 -1
  145. package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +10 -10
  146. package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
  147. package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +6 -2
  148. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -0
  149. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +3 -2
  150. package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +5 -0
  151. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +3 -0
  152. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
  153. package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +3 -0
  154. package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +18 -1
  155. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
  156. package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +71 -0
  157. package/dist-types/packages/peach-engine/src/engine/node.d.ts +31 -3
  158. package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +0 -1
  159. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +7 -2
  160. package/dist-types/packages/peach-engine/src/engine/portals.d.ts +2 -4
  161. package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +5 -0
  162. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +7 -1
  163. package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -3
  164. package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -0
  165. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +10 -0
  166. package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +30 -0
  167. package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +55 -0
  168. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +2 -1
  169. package/dist-types/packages/peach-engine/src/engine/types.d.ts +85 -26
  170. package/dist-types/packages/peach-engine/src/graphite-stats-fields.d.ts +28 -0
  171. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -0
  172. package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +3 -4
  173. package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +1 -1
  174. package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +2 -0
  175. package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +2 -0
  176. package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +15 -0
  177. package/dist-types/packages/peach-engine/src/ios/shell-controller-types.d.ts +1 -0
  178. package/dist-types/packages/peach-engine/src/metro-asset-path.d.ts +2 -0
  179. package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
  180. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  181. package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -0
  182. package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
  183. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +31 -12
  184. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-presentation.d.ts +23 -0
  185. package/dist-types/packages/peach-engine/src/render-worker/expo-widgetContract.d.ts +6 -0
  186. package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +15 -0
  187. package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -1
  188. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +12 -2
  189. package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +12 -0
  190. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +30 -0
  191. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +4 -1
  192. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -9
  193. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +3 -1
  194. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +24 -0
  195. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -4
  196. package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +4 -0
  197. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +3 -2
  198. package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +1 -0
  199. package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
  200. package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -0
  201. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +10 -1
  202. package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +5 -0
  203. package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +2 -1
  204. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +4 -0
  205. package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -1
  206. package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
  207. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -1
  208. package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +5 -1
  209. package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +2 -0
  210. package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -1
  211. package/dist-types/packages/peach-kit/src/capabilities.d.ts +23 -1
  212. package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
  213. package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +2 -0
  214. package/dist-types/packages/peach-kit/src/ui/keyboard-toolbar.d.ts +5 -0
  215. package/install.sh +20 -1
  216. package/package.json +6 -5
  217. package/runtime-companion.json +1 -1
  218. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h +629 -0
  219. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionDeprecated.h +90 -0
  220. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h +256 -0
  221. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h +1006 -0
  222. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.apinotes +246 -0
  223. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +5 -0
  224. package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Modules/module.modulemap +5 -0
  225. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h +52 -0
  226. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSession.h +11 -0
  227. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVBase.h +264 -0
  228. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +88 -0
  229. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h +1360 -0
  230. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h +167 -0
  231. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +13 -0
  232. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h +508 -0
  233. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +1 -1
  234. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +31 -0
  235. package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +18 -0
  236. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureDeviceDirectionCoordinator.h +113 -0
  237. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEvent.h +82 -0
  238. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventInteraction.h +114 -0
  239. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventSound.h +50 -0
  240. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVError.h +51 -0
  241. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInputPickerInteraction.h +93 -0
  242. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInterstitialTimeRange.h +39 -0
  243. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes +112 -0
  244. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h +110 -0
  245. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h +79 -0
  246. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h +54 -0
  247. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVLegibleMediaOptionsMenuController.h +193 -0
  248. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h +271 -0
  249. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h +135 -0
  250. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h +66 -0
  251. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackRouteSelecting.h +46 -0
  252. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeed.h +71 -0
  253. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackUserInterfaceControllable.h +551 -0
  254. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h +42 -0
  255. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h +704 -0
  256. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVRoutePickerView.h +186 -0
  257. package/sdk/ios/System/Library/Frameworks/AVKit.framework/Modules/module.modulemap +5 -0
  258. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +1 -1
  259. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +1 -1
  260. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +1 -1
  261. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +1 -1
  262. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/AudioSessionTypes.h +104 -0
  263. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h +1621 -0
  264. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes +42 -0
  265. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h +9 -0
  266. package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Modules/module.modulemap +6 -0
  267. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +1 -1
  268. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +1 -1
  269. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +1 -1
  270. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +1 -1
  271. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +1 -1
  272. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +1 -1
  273. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +1 -1
  274. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +1 -1
  275. package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +1 -1
  276. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +1 -1
  277. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +1 -1
  278. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +1 -1
  279. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +1 -1
  280. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +1 -1
  281. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h +195 -0
  282. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h +220 -0
  283. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h +501 -0
  284. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +3 -18
  285. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +1 -1
  286. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +2 -2
  287. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +1 -1
  288. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +2 -2
  289. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +1 -1
  290. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +1 -1
  291. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +1 -1
  292. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +2 -2
  293. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +1 -1
  294. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +1 -1
  295. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h +443 -0
  296. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +8 -0
  297. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSync.h +996 -0
  298. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +9 -0
  299. package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
  300. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +1 -1
  301. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +2 -2
  302. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +1 -1
  303. package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +1 -1
  304. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +1 -1
  305. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +1 -1
  306. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h +1811 -0
  307. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h +360 -0
  308. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +574 -17
  309. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h +109 -0
  310. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h +336 -0
  311. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h +203 -0
  312. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h +264 -0
  313. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h +531 -0
  314. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h +496 -0
  315. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h +326 -0
  316. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h +547 -0
  317. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h +213 -0
  318. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h +496 -0
  319. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h +158 -0
  320. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h +286 -0
  321. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +80 -1
  322. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h +1833 -0
  323. package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h +482 -0
  324. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DDDevicePickerViewController.h +41 -0
  325. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUI.h +9 -0
  326. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUIDefines.h +14 -0
  327. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/DeviceDiscoveryUI.swiftcrossimport/SwiftUI.swiftoverlay +4 -0
  328. package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/module.modulemap +9 -0
  329. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +1 -1
  330. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +49 -1
  331. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +2 -0
  332. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +15 -0
  333. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +30 -0
  334. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +3 -3
  335. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +1 -1
  336. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +6 -6
  337. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +4 -4
  338. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +6 -6
  339. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +2 -2
  340. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +1 -1
  341. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +3 -3
  342. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +2 -2
  343. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +4 -4
  344. package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +3 -3
  345. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +1 -1
  346. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +1 -1
  347. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +1 -1
  348. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
  349. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +6 -6
  350. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +1 -1
  351. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +5 -5
  352. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +1 -1
  353. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +1 -1
  354. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +1 -1
  355. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +14 -14
  356. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +1 -1
  357. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +1 -1
  358. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +1 -1
  359. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +1 -1
  360. package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +20 -20
  361. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +1 -1
  362. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +2 -0
  363. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +2 -0
  364. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +2 -0
  365. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2 -0
  366. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +2 -0
  367. package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +6 -0
  368. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h +195 -0
  369. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h +245 -0
  370. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h +178 -0
  371. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSExport.h +151 -0
  372. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSManagedValue.h +81 -0
  373. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSObjectRef.h +755 -0
  374. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRef.h +148 -0
  375. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRefCF.h +60 -0
  376. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSTypedArray.h +180 -0
  377. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValue.h +824 -0
  378. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h +555 -0
  379. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSVirtualMachine.h +92 -0
  380. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h +37 -0
  381. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScriptCore.h +38 -0
  382. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h +36 -0
  383. package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Modules/module.modulemap +8 -0
  384. package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTType.h +19 -0
  385. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCAdvertiserAssistant.h +76 -0
  386. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCBrowserViewController.h +88 -0
  387. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCError.h +34 -0
  388. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceAdvertiser.h +84 -0
  389. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceBrowser.h +94 -0
  390. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCPeerID.h +37 -0
  391. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCSession.h +215 -0
  392. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.apinotes +5 -0
  393. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.h +15 -0
  394. package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Modules/module.modulemap +7 -0
  395. package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +1 -1
  396. package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +1 -1
  397. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +1 -1
  398. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +1 -1
  399. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +1 -1
  400. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +1 -1
  401. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +1 -1
  402. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +1 -1
  403. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +1 -1
  404. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +1 -1
  405. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +1 -1
  406. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
  407. package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +1 -1
  408. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +6 -6
  409. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +1 -1
  410. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +1 -1
  411. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +1 -1
  412. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +2 -2
  413. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +1 -1
  414. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +2 -2
  415. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +1 -1
  416. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +1 -1
  417. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +1 -1
  418. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +4 -4
  419. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +1 -1
  420. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +2 -2
  421. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +1 -1
  422. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +1 -1
  423. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +1 -1
  424. package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +3 -3
  425. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +14 -0
  426. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +172 -27
  427. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +59 -0
  428. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +13 -0
  429. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +63 -0
  430. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +10 -0
  431. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h +142 -0
  432. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +20 -20
  433. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +103 -0
  434. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +6 -0
  435. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +131 -0
  436. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +8 -3
  437. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +80 -0
  438. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +191 -0
  439. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +259 -0
  440. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +9 -3
  441. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +5 -3
  442. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +6 -3
  443. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +37 -0
  444. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4248 -0
  445. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +66 -102
  446. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +55 -0
  447. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +62 -0
  448. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +283 -0
  449. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +27 -0
  450. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +86 -0
  451. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +68 -0
  452. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -0
  453. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
  454. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +3 -0
  455. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +2 -0
  456. package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +135 -0
  457. package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +8 -0
  458. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTAdditions.h +167 -0
  459. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTCoreTypes.h +1332 -0
  460. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes +53 -0
  461. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +18 -0
  462. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Modules/module.modulemap +6 -0
  463. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h +19 -0
  464. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h +29 -0
  465. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +27 -0
  466. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +69 -0
  467. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h +23 -0
  468. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +44 -0
  469. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttributedMessageContext.h +24 -0
  470. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +82 -0
  471. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +152 -0
  472. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +34 -0
  473. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +41 -0
  474. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h +27 -0
  475. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +90 -0
  476. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +45 -0
  477. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +64 -0
  478. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +107 -0
  479. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes +17 -0
  480. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h +23 -0
  481. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Modules/module.modulemap +6 -0
  482. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCDefines.h +14 -0
  483. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCError.h +38 -0
  484. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +200 -0
  485. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionFile.h +30 -0
  486. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionUserInfoTransfer.h +22 -0
  487. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.apinotes +19 -0
  488. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.h +15 -0
  489. package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Modules/module.modulemap +5 -0
  490. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h +120 -0
  491. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +77 -0
  492. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +54 -0
  493. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +37 -0
  494. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +47 -0
  495. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +87 -0
  496. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +71 -0
  497. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +47 -0
  498. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +57 -0
  499. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDataDetectorTypes.h +60 -0
  500. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +67 -0
  501. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownloadDelegate.h +146 -0
  502. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKError.h +71 -0
  503. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +52 -0
  504. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +41 -0
  505. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +63 -0
  506. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFoundation.h +72 -0
  507. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +62 -0
  508. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +108 -0
  509. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironment.h +50 -0
  510. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironmentDelegate.h +69 -0
  511. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +80 -0
  512. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +45 -0
  513. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +118 -0
  514. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h +219 -0
  515. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +60 -0
  516. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +47 -0
  517. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +49 -0
  518. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +117 -0
  519. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItem.h +39 -0
  520. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItemIdentifiers.h +38 -0
  521. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +43 -0
  522. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +39 -0
  523. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +64 -0
  524. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandler.h +52 -0
  525. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandlerWithReply.h +95 -0
  526. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +57 -0
  527. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +59 -0
  528. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h +316 -0
  529. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeHandler.h +61 -0
  530. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeTask.h +75 -0
  531. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +162 -0
  532. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +76 -0
  533. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +237 -0
  534. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionAction.h +164 -0
  535. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionCommand.h +106 -0
  536. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +790 -0
  537. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +255 -0
  538. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +89 -0
  539. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerDelegate.h +207 -0
  540. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataRecord.h +90 -0
  541. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataType.h +43 -0
  542. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +175 -0
  543. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMessagePort.h +99 -0
  544. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionPermission.h +95 -0
  545. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTab.h +396 -0
  546. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTabConfiguration.h +94 -0
  547. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindow.h +170 -0
  548. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindowConfiguration.h +87 -0
  549. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +800 -0
  550. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +275 -0
  551. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +150 -0
  552. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +90 -0
  553. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +137 -0
  554. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +72 -0
  555. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes +204 -0
  556. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h +93 -0
  557. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKitLegacy.h +3 -0
  558. package/sdk/ios/System/Library/Frameworks/WebKit.framework/Modules/module.modulemap +5 -0
  559. package/sdk/ios/System/Library/Frameworks/WiFiAware.framework/Modules/WiFiAware.swiftmodule/arm64-apple-ios-simulator.swiftinterface +605 -0
  560. package/sdk/ios/System/Library/Frameworks/_DeviceDiscoveryUI_SwiftUI.framework/Modules/_DeviceDiscoveryUI_SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +79 -0
  561. package/sdk/ios/usr/include/MacTypes.h +8 -0
  562. package/sdk/ios/usr/include/objc/NSObjCRuntime.h +5 -0
  563. package/sdk/ios/wasm/include/fcntl.h +1 -0
  564. package/sdk/ios/wasm/include/pthread.h +2 -0
  565. package/sdk/ios/wasm/include/stdlib.h +1 -0
  566. package/sdk/native-hashes.json +11 -1
  567. package/skills/contrast/SKILL.md +4 -9
  568. package/skills/peach-perf/SKILL.md +3 -1
  569. package/skills/peach-perf/references/profiling.md +1 -1
  570. package/skills/peach-test/SKILL.md +20 -17
  571. package/skills/peach-test/references/detox.md +7 -7
  572. package/skills/peach-test/references/maestro.md +20 -18
  573. package/src/admitted-mac-build.ts +7 -0
  574. package/src/android-autolinking.ts +2 -2
  575. package/src/android-drawables.ts +5 -5
  576. package/src/android-string-value.ts +1 -1
  577. package/src/android-strings.ts +1 -1
  578. package/src/android-theme.ts +2 -2
  579. package/src/appPackageContract.ts +1 -1
  580. package/src/bridge-contract.ts +12 -16
  581. package/src/build-cache.ts +65 -0
  582. package/src/bundle-channel.mjs +69 -9
  583. package/src/capture-contract.ts +55 -17
  584. package/src/chromium-admission.ts +24 -21
  585. package/src/conformance-comparison-contract.ts +105 -40
  586. package/src/dev-bundle-resolution.ts +23 -10
  587. package/src/device-catalog.ts +35 -2
  588. package/src/disk-cleanup.ts +18 -8
  589. package/src/expo-autolinking.ts +24 -0
  590. package/src/expo-discovery-cache.ts +168 -23
  591. package/src/expo-native-workspace.ts +551 -191
  592. package/src/expo-swift-host.ts +711 -314
  593. package/src/expo-swift-ready.ts +39 -5
  594. package/src/expo-widget-assets.ts +2 -2
  595. package/src/expo-widgets-bundle.ts +56 -0
  596. package/src/expo-workspace-exclusion.ts +62 -0
  597. package/src/expoSwiftContract.ts +27 -4
  598. package/src/forked-script-contract.ts +3 -0
  599. package/src/home-paths.ts +10 -6
  600. package/src/host/bridge-host.ts +27 -0
  601. package/src/host/network-policy.ts +1 -1
  602. package/src/kotlin-app.ts +9 -11
  603. package/src/kotlin-host.ts +2 -2
  604. package/src/launchMetadataContract.ts +5 -0
  605. package/src/menu.ts +19 -5
  606. package/src/native-app-identity-project.ts +35 -49
  607. package/src/native-app-identity.ts +5 -6
  608. package/src/native-firebase-config.ts +10 -48
  609. package/src/native-prebuilt.ts +3 -2
  610. package/src/native-slices.ts +39 -0
  611. package/src/native-static-libraries.ts +73 -0
  612. package/src/nitro-adapter.lock.json +249 -249
  613. package/src/nitro-adapter.ts +16 -5
  614. package/src/nitro-bundle.ts +35 -16
  615. package/src/nitro-compile.ts +254 -16
  616. package/src/nitro-compiler-digest.ts +39 -0
  617. package/src/nitro-dependencies.ts +368 -28
  618. package/src/nitro-source.ts +432 -77
  619. package/src/nitro-superset.lock.json +27 -36
  620. package/src/nitro-superset.ts +6 -0
  621. package/src/nitroAdapterContract.ts +52 -0
  622. package/src/nitroContract.ts +40 -4
  623. package/src/numbered-lock.ts +2 -2
  624. package/src/one-native-app-accent.ts +32 -0
  625. package/src/one-widget-discovery.ts +6 -1
  626. package/src/one-widget-metadata.ts +2 -2
  627. package/src/portable-expo-contract.ts +103 -0
  628. package/src/portable-expo-workspace.ts +94 -0
  629. package/src/prepared-native-inventory.ts +93 -0
  630. package/src/prepared-xcode-phases.ts +194 -0
  631. package/src/process-group.ts +8 -15
  632. package/src/process-table.ts +117 -0
  633. package/src/react-native-bridge-modules.ts +240 -14
  634. package/src/react-native-coverage/native-typescript-parser.ts +11 -2
  635. package/src/react-native-coverage/verified-reach.ts +12 -6
  636. package/src/react-native-host-modules.ts +2 -0
  637. package/src/reap-browser.ts +13 -9
  638. package/src/retired-cache-directory.ts +34 -0
  639. package/src/runtime-assets.ts +1 -0
  640. package/src/screenshots/orchestrate.ts +4 -0
  641. package/src/screenshots/schema.ts +2 -2
  642. package/src/storageSnapshotContract.ts +9 -2
  643. package/src/stub-pattern-matcher.ts +53 -19
  644. package/src/swift-compile.ts +1011 -327
  645. package/src/swift-compiler-digest.ts +3 -0
  646. package/src/swift-coverage/indexing.ts +1 -1
  647. package/src/swift-coverage/xcode-asset-symbols.ts +72 -39
  648. package/src/swift-coverage/xcode-assets.ts +2 -1
  649. package/src/swift-cxx-declarations.ts +114 -130
  650. package/src/swift-cxx-standin.ts +3 -3
  651. package/src/swift-darwin-records.ts +88 -0
  652. package/src/swift-distribution.lock.json +15 -12
  653. package/src/swift-distribution.ts +25 -9
  654. package/src/swift-host.ts +443 -142
  655. package/src/swift-icu.ts +72 -4
  656. package/src/swift-link-roots.ts +2 -0
  657. package/src/swift-objc-compile.ts +312 -65
  658. package/src/swift-objc-import.ts +8 -1
  659. package/src/swift-objc-standin.ts +20 -2
  660. package/src/swift-package-manifest.ts +189 -57
  661. package/src/swift-package.ts +51 -0
  662. package/src/swift-packages.ts +117 -45
  663. package/src/swift-pdf-raster.ts +7 -4
  664. package/src/swift-project-user.ts +183 -0
  665. package/src/swift-reproducible.ts +26 -0
  666. package/src/swift-root-lock.ts +34 -62
  667. package/src/swift-shared-sdk.ts +232 -21
  668. package/src/swift-source-pods.ts +9 -2
  669. package/src/swift-standin-emit.ts +248 -7
  670. package/src/swift-standins.ts +130 -108
  671. package/src/swift-submit.ts +3 -0
  672. package/src/swift-toolchain.ts +109 -8
  673. package/src/swift-wasm-prune.ts +210 -55
  674. package/src/swiftContract.ts +14 -0
  675. package/src/swiftGuestImageContract.ts +113 -0
  676. package/src/turbo-bundle.ts +5 -8
  677. package/src/turbo-codegen-intake.ts +134 -0
  678. package/src/turbo-compile.ts +198 -21
  679. package/src/turbo-native-libraries.ts +98 -0
  680. package/src/turbo-runtime.lock.json +25 -18
  681. package/src/turbo-source.ts +1519 -147
  682. package/src/vite-plugin-one.ts +25 -3
  683. package/src/vite-plugin-swift.ts +5 -1
  684. package/src/vite-plugin.ts +40 -18
  685. package/src/worker-system-chunks.ts +103 -15
  686. package/src/worklets-babel.ts +50 -29
  687. package/src/xcode-header-search.ts +15 -5
  688. package/src/xcode-project.ts +444 -88
  689. package/src/xcode-target-members.ts +72 -63
  690. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-resample.d.ts +0 -44
@@ -0,0 +1,1811 @@
1
+ /*
2
+ * CTFont.h
3
+ * CoreText
4
+ *
5
+ * Copyright (c) 2006-2024 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+ /*!
10
+ @header
11
+
12
+ Thread Safety Information
13
+
14
+ All functions in this header are thread safe unless otherwise specified.
15
+ */
16
+
17
+ #ifndef __CTFONT__
18
+ #define __CTFONT__
19
+
20
+ #include <CoreText/CTFontDescriptor.h>
21
+
22
+ CF_IMPLICIT_BRIDGING_ENABLED
23
+ CF_EXTERN_C_BEGIN
24
+ CF_ASSUME_NONNULL_BEGIN
25
+
26
+ /*! --------------------------------------------------------------------------
27
+ @group Font Types
28
+ *///--------------------------------------------------------------------------
29
+
30
+ /*!
31
+ @typedef CTFontRef
32
+ @abstract The Core Text Font reference.
33
+ @discussion This is a opaque reference to a core font object.
34
+ */
35
+ #if TARGET_OS_IPHONE
36
+ typedef const struct CF_BRIDGED_TYPE(UIFont) __CTFont * CTFontRef;
37
+ #else
38
+ typedef const struct CF_BRIDGED_TYPE(NSFont) __CTFont * CTFontRef;
39
+ #endif
40
+
41
+ /*!
42
+ @function CTFontGetTypeID
43
+ @abstract Returns the type identifier for Core Text font references.
44
+ @result The identifier for the opaque type CTFontRef.
45
+ */
46
+ CT_EXPORT
47
+ CFTypeID CTFontGetTypeID( void ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
48
+
49
+ /*! --------------------------------------------------------------------------
50
+ @group Font Constants
51
+ *///--------------------------------------------------------------------------
52
+
53
+ // Name specifier constants
54
+ /*!
55
+ @defined kCTFontCopyrightNameKey
56
+ @abstract The name specifier for the copyright name.
57
+ */
58
+ CT_EXPORT const CFStringRef kCTFontCopyrightNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
59
+ /*!
60
+ @defined kCTFontFamilyNameKey
61
+ @abstract The name specifier for the family name.
62
+ */
63
+ CT_EXPORT const CFStringRef kCTFontFamilyNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
64
+ /*!
65
+ @defined kCTFontSubFamilyNameKey
66
+ @abstract The name specifier for the subfamily name.
67
+ */
68
+ CT_EXPORT const CFStringRef kCTFontSubFamilyNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
69
+ /*!
70
+ @defined kCTFontStyleNameKey
71
+ @abstract The name specifier for the style name.
72
+ */
73
+ CT_EXPORT const CFStringRef kCTFontStyleNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
74
+ /*!
75
+ @defined kCTFontUniqueNameKey
76
+ @abstract The name specifier for the unique name.
77
+ @discussion Note that this name is often not unique and should not be
78
+ assumed to be truly unique.
79
+ */
80
+ CT_EXPORT const CFStringRef kCTFontUniqueNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
81
+ /*!
82
+ @defined kCTFontFullNameKey
83
+ @abstract The name specifier for the full name.
84
+ */
85
+ CT_EXPORT const CFStringRef kCTFontFullNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
86
+ /*!
87
+ @defined kCTFontVersionNameKey
88
+ @abstract The name specifier for the version name.
89
+ */
90
+ CT_EXPORT const CFStringRef kCTFontVersionNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
91
+ /*!
92
+ @defined kCTFontPostScriptNameKey
93
+ @abstract The name specifier for the PostScript name.
94
+ */
95
+ CT_EXPORT const CFStringRef kCTFontPostScriptNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
96
+ /*!
97
+ @defined kCTFontTrademarkNameKey
98
+ @abstract The name specifier for the trademark name.
99
+ */
100
+ CT_EXPORT const CFStringRef kCTFontTrademarkNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
101
+ /*!
102
+ @defined kCTFontManufacturerNameKey
103
+ @abstract The name specifier for the manufacturer name.
104
+ */
105
+ CT_EXPORT const CFStringRef kCTFontManufacturerNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
106
+ /*!
107
+ @defined kCTFontDesignerNameKey
108
+ @abstract The name specifier for the designer name.
109
+ */
110
+ CT_EXPORT const CFStringRef kCTFontDesignerNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
111
+ /*!
112
+ @defined kCTFontDescriptionNameKey
113
+ @abstract The name specifier for the description name.
114
+ */
115
+ CT_EXPORT const CFStringRef kCTFontDescriptionNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
116
+ /*!
117
+ @defined kCTFontVendorURLNameKey
118
+ @abstract The name specifier for the vendor url name.
119
+ */
120
+ CT_EXPORT const CFStringRef kCTFontVendorURLNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
121
+ /*!
122
+ @defined kCTFontDesignerURLNameKey
123
+ @abstract The name specifier for the designer url name.
124
+ */
125
+ CT_EXPORT const CFStringRef kCTFontDesignerURLNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
126
+ /*!
127
+ @defined kCTFontLicenseNameKey
128
+ @abstract The name specifier for the license name.
129
+ */
130
+ CT_EXPORT const CFStringRef kCTFontLicenseNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
131
+ /*!
132
+ @defined kCTFontLicenseURLNameKey
133
+ @abstract The name specifier for the license url name.
134
+ */
135
+ CT_EXPORT const CFStringRef kCTFontLicenseURLNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
136
+ /*!
137
+ @defined kCTFontSampleTextNameKey
138
+ @abstract The name specifier for the sample text name string.
139
+ */
140
+ CT_EXPORT const CFStringRef kCTFontSampleTextNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
141
+ /*!
142
+ @defined kCTFontPostScriptCIDNameKey
143
+ @abstract The name specifier for the PostScript CID name.
144
+ */
145
+ CT_EXPORT const CFStringRef kCTFontPostScriptCIDNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
146
+
147
+ /*! --------------------------------------------------------------------------
148
+ @group Font Creation
149
+ *///--------------------------------------------------------------------------
150
+
151
+ /*!
152
+ @function CTFontCreateWithName
153
+ @abstract Returns a new font reference for the given name.
154
+
155
+ @discussion This function uses font descriptor matching so only registered fonts can be returned; see CTFontManager.h for more information. If you are trying to create a system UI font (with name beginning with a "."), you should use CTFontCreateUIFontForLanguage() or appropriate AppKit/UIKit APIs instead.
156
+
157
+ @param name
158
+ The font name for which you wish to create a new font reference. A valid PostScript name is preferred, although other font name types will be matched in a fallback manner. Any font name beginning with a "." is reserved for the system and should not be used here.
159
+
160
+ @param size
161
+ The point size for the font reference. If 0.0 is specified, the default font size of 12.0 will be used.
162
+
163
+ @param matrix
164
+ The transformation matrix for the font. If unspecified, the identity matrix will be used. Optional.
165
+
166
+ @result This function will return a CTFontRef that best matches the name provided with size and matrix attributes. The name parameter is the only required parameters, and default values will be used for unspecified parameters. A best match will be found if all parameters cannot be matched identically.
167
+ */
168
+ CT_EXPORT
169
+ CTFontRef CTFontCreateWithName(
170
+ CFStringRef name,
171
+ CGFloat size,
172
+ const CGAffineTransform * _Nullable matrix ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
173
+
174
+ #ifdef __swift__
175
+
176
+ static inline CF_SWIFT_NAME(CTFont.init(_:size:)) CTFontRef _CTFontCreateWithName(CFStringRef name, CGFloat size)
177
+ {
178
+ return CTFontCreateWithName(name, size, NULL);
179
+ }
180
+
181
+ static inline CF_SWIFT_NAME(CTFont.init(_:transform:)) CTFontRef _CTFontCreateWithNameAndMatrix(CFStringRef name, CGAffineTransform matrix)
182
+ {
183
+ return CTFontCreateWithName(name, 1.0, &matrix);
184
+ }
185
+
186
+ #endif // __swift__
187
+
188
+ /*!
189
+ @function CTFontCreateWithFontDescriptor
190
+ @abstract Returns a new font reference that best matches the font descriptor.
191
+
192
+ @param descriptor
193
+ A font descriptor containing attributes that specify the requested font.
194
+
195
+ @param size
196
+ The point size for the font reference. If 0.0 is specified and the font descriptor does not specify the size, the default font size of 12.0 will be used.
197
+
198
+ @param matrix
199
+ The transformation matrix for the font. If unspecified, the identity matrix will be used. Optional.
200
+
201
+ @result This function will return a CTFontRef that best matches the attributes provided with the font descriptor. The size and matrix parameters will override any specified in the font descriptor, unless they are unspecified. A best match font will always be returned, and default values will be used for any unspecified.
202
+ */
203
+ CT_EXPORT
204
+ CTFontRef CTFontCreateWithFontDescriptor(
205
+ CTFontDescriptorRef descriptor,
206
+ CGFloat size,
207
+ const CGAffineTransform * _Nullable matrix ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
208
+
209
+ #ifdef __swift__
210
+
211
+ static inline CF_SWIFT_NAME(CTFont.init(_:size:)) CTFontRef _CTFontCreateWithFontDescriptor(CTFontDescriptorRef descriptor, CGFloat size)
212
+ {
213
+ return CTFontCreateWithFontDescriptor(descriptor, size, NULL);
214
+ }
215
+
216
+ static inline CF_SWIFT_NAME(CTFont.init(_:transform:)) CTFontRef _CTFontCreateWithFontDescriptorAndMatrix(CTFontDescriptorRef descriptor, CGAffineTransform matrix)
217
+ {
218
+ return CTFontCreateWithFontDescriptor(descriptor, 1.0, &matrix);
219
+ }
220
+
221
+ #endif // __swift__
222
+
223
+ /*!
224
+ @enum CTFontOptions
225
+ @abstract Options for descriptor match and font creation.
226
+ @constant kCTFontOptionsPreventAutoActivation
227
+ Prevents automatic font activation from taking place.
228
+ This option is available only on macOS and will be deprecated on other platforms in the future.
229
+ @constant kCTFontOptionsPreventAutoDownload
230
+ Prevents automatic font download from taking place.
231
+ @constant kCTFontOptionsPreferSystemFont
232
+ Font matching will prefer to match Apple system fonts.
233
+ */
234
+ typedef CF_OPTIONS(CFOptionFlags, CTFontOptions) {
235
+ kCTFontOptionsDefault = 0,
236
+ kCTFontOptionsPreventAutoActivation = 1 << 0,
237
+ kCTFontOptionsPreventAutoDownload CT_ENUM_AVAILABLE(macos(13.0)) = 1 << 1,
238
+ kCTFontOptionsPreferSystemFont = 1 << 2
239
+ };
240
+
241
+
242
+ /*!
243
+ @function CTFontCreateWithNameAndOptions
244
+ @abstract Returns a new font reference for the given name.
245
+
246
+ @discussion This function uses font descriptor matching so only registered fonts can be returned; see CTFontManager.h for more information. If you are trying to create a system UI font (with name beginning with a "."), you should use CTFontCreateUIFontForLanguage() or appropriate AppKit/UIKit APIs instead.
247
+
248
+ @param name
249
+ The font name for which you wish to create a new font reference. A valid PostScript name is preferred, although other font name types will be matched in a fallback manner. Any font name beginning with a "." is reserved for the system and should not be used here.
250
+
251
+ @param size
252
+ The point size for the font reference. If 0.0 is specified, the default font size of 12.0 will be used.
253
+
254
+ @param matrix
255
+ The transformation matrix for the font. If unspecified, the identity matrix will be used. Optional.
256
+
257
+ @param options
258
+ Options flags.
259
+
260
+ @result This function will return a CTFontRef that best matches the name provided with size and matrix attributes. The name parameter is the only required parameters, and default values will be used for unspecified parameters. A best match will be found if all parameters cannot be matched identically.
261
+ */
262
+ CT_EXPORT
263
+ CTFontRef CTFontCreateWithNameAndOptions(
264
+ CFStringRef name,
265
+ CGFloat size,
266
+ const CGAffineTransform * _Nullable matrix,
267
+ CTFontOptions options ) CT_AVAILABLE(macos(10.6), ios(3.2), watchos(2.0), tvos(9.0));
268
+
269
+ /*!
270
+ @function CTFontCreateWithFontDescriptorAndOptions
271
+ @abstract Returns a new font reference that best matches the font descriptor.
272
+
273
+ @param descriptor
274
+ A font descriptor containing attributes that specify the requested font.
275
+
276
+ @param size
277
+ The point size for the font reference. If 0.0 is specified, the default font size of 12.0 will be used.
278
+
279
+ @param matrix
280
+ The transformation matrix for the font. If unspecified, the identity matrix will be used. Optional.
281
+
282
+ @param options
283
+ Options flags.
284
+
285
+ @result This function will return a CTFontRef that best matches the attributes provided with the font descriptor. The size and matrix parameters will override any specified in the font descriptor, unless they are unspecified. A best match font will always be returned, and default values will be used for any unspecified.
286
+ */
287
+ CT_EXPORT
288
+ CTFontRef CTFontCreateWithFontDescriptorAndOptions(
289
+ CTFontDescriptorRef descriptor,
290
+ CGFloat size,
291
+ const CGAffineTransform * _Nullable matrix,
292
+ CTFontOptions options ) CT_AVAILABLE(macos(10.6), ios(3.2), watchos(2.0), tvos(9.0));
293
+
294
+ /*!
295
+ @enum UI Type constants
296
+ @abstract These constants represent the specific user interface purpose to specify for font creation.
297
+ @discussion Use these constants with CTFontCreateUIFontForLanguage to indicate the intended user interface usage of the font reference to be created. The system may internally remap the value, so the value returned by CTFontGetUIFontType may return a different value than the one originally passed to CTFontCreateUIFontForLanguage. This remapping may vary by platform and OS version.
298
+ */
299
+ typedef CF_ENUM(uint32_t, CTFontUIFontType) {
300
+ kCTFontUIFontNone = (uint32_t)-1,
301
+ kCTFontUIFontUser = 0,
302
+ kCTFontUIFontUserFixedPitch = 1,
303
+ kCTFontUIFontSystem = 2,
304
+ kCTFontUIFontEmphasizedSystem = 3,
305
+ kCTFontUIFontSmallSystem = 4,
306
+ kCTFontUIFontSmallEmphasizedSystem = 5,
307
+ kCTFontUIFontMiniSystem = 6,
308
+ kCTFontUIFontMiniEmphasizedSystem = 7,
309
+ kCTFontUIFontViews = 8,
310
+ kCTFontUIFontApplication = 9,
311
+ kCTFontUIFontLabel = 10,
312
+ kCTFontUIFontMenuTitle = 11,
313
+ kCTFontUIFontMenuItem = 12,
314
+ kCTFontUIFontMenuItemMark = 13,
315
+ kCTFontUIFontMenuItemCmdKey = 14,
316
+ kCTFontUIFontWindowTitle = 15,
317
+ kCTFontUIFontPushButton = 16,
318
+ kCTFontUIFontUtilityWindowTitle = 17,
319
+ kCTFontUIFontAlertHeader = 18,
320
+ kCTFontUIFontSystemDetail = 19,
321
+ kCTFontUIFontEmphasizedSystemDetail = 20,
322
+ kCTFontUIFontToolbar = 21,
323
+ kCTFontUIFontSmallToolbar = 22,
324
+ kCTFontUIFontMessage = 23,
325
+ kCTFontUIFontPalette = 24,
326
+ kCTFontUIFontToolTip = 25,
327
+ kCTFontUIFontControlContent = 26,
328
+
329
+ kCTFontNoFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
330
+ = kCTFontUIFontNone,
331
+ kCTFontUserFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
332
+ = kCTFontUIFontUser,
333
+ kCTFontUserFixedPitchFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
334
+ = kCTFontUIFontUserFixedPitch,
335
+ kCTFontSystemFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
336
+ = kCTFontUIFontSystem,
337
+ kCTFontEmphasizedSystemFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
338
+ = kCTFontUIFontEmphasizedSystem,
339
+ kCTFontSmallSystemFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
340
+ = kCTFontUIFontSmallSystem,
341
+ kCTFontSmallEmphasizedSystemFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
342
+ = kCTFontUIFontSmallEmphasizedSystem,
343
+ kCTFontMiniSystemFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
344
+ = kCTFontUIFontMiniSystem,
345
+ kCTFontMiniEmphasizedSystemFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
346
+ = kCTFontUIFontMiniEmphasizedSystem,
347
+ kCTFontViewsFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
348
+ = kCTFontUIFontViews,
349
+ kCTFontApplicationFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
350
+ = kCTFontUIFontApplication,
351
+ kCTFontLabelFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
352
+ = kCTFontUIFontLabel,
353
+ kCTFontMenuTitleFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
354
+ = kCTFontUIFontMenuTitle,
355
+ kCTFontMenuItemFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
356
+ = kCTFontUIFontMenuItem,
357
+ kCTFontMenuItemMarkFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
358
+ = kCTFontUIFontMenuItemMark,
359
+ kCTFontMenuItemCmdKeyFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
360
+ = kCTFontUIFontMenuItemCmdKey,
361
+ kCTFontWindowTitleFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
362
+ = kCTFontUIFontWindowTitle,
363
+ kCTFontPushButtonFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
364
+ = kCTFontUIFontPushButton,
365
+ kCTFontUtilityWindowTitleFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
366
+ = kCTFontUIFontUtilityWindowTitle,
367
+ kCTFontAlertHeaderFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
368
+ = kCTFontUIFontAlertHeader,
369
+ kCTFontSystemDetailFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
370
+ = kCTFontUIFontSystemDetail,
371
+ kCTFontEmphasizedSystemDetailFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
372
+ = kCTFontUIFontEmphasizedSystemDetail,
373
+ kCTFontToolbarFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
374
+ = kCTFontUIFontToolbar,
375
+ kCTFontSmallToolbarFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
376
+ = kCTFontUIFontSmallToolbar,
377
+ kCTFontMessageFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
378
+ = kCTFontUIFontMessage,
379
+ kCTFontPaletteFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
380
+ = kCTFontUIFontPalette,
381
+ kCTFontToolTipFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
382
+ = kCTFontUIFontToolTip,
383
+ kCTFontControlContentFontType CT_ENUM_DEPRECATED("Deprecated", macos(10.5, 10.11), ios(3.2, 9.0)) CT_ENUM_UNAVAILABLE(watchos, tvos)
384
+ = kCTFontUIFontControlContent
385
+ };
386
+
387
+ /*!
388
+ @function CTFontCreateUIFontForLanguage
389
+ @abstract Returns the special UI font for the given language and UI type.
390
+
391
+ @param uiType
392
+ A uiType constant specifying the intended UI use for the requested font reference.
393
+
394
+ @param size
395
+ The point size for the font reference. If 0.0 is specified, the default size for the requested uiType is used.
396
+
397
+ @param language
398
+ Language identifier to select a font for a particular localization. If unspecified, the current system language is used. The format of the language identifier should conform to UTS #35.
399
+
400
+ @result This function returns the correct font for various UI uses. The only required parameter is the uiType selector, unspecified optional parameters will use default values.
401
+ */
402
+ CT_EXPORT
403
+ CTFontRef _Nullable CTFontCreateUIFontForLanguage(
404
+ CTFontUIFontType uiType,
405
+ CGFloat size,
406
+ CFStringRef _Nullable language ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
407
+
408
+ /*!
409
+ @function CTFontGetUIFontType
410
+ @discussion Get the CTFontUIFontType of UI font. Note that this value may differ from the uiType parameter originally passed to CTFontCreateUIFontForLanguage, as the system may use a different uiType value internally.
411
+ */
412
+ CT_EXPORT
413
+ CTFontUIFontType CTFontGetUIFontType(CTFontRef font) CT_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
414
+
415
+ #ifdef __swift__
416
+
417
+ static inline CF_SWIFT_NAME(CTFont.init(_:size:)) CTFontRef _CTFontCreateUIFont(CTFontUIFontType uiType, CGFloat size)
418
+ {
419
+ return CTFontCreateUIFontForLanguage(uiType, size, NULL);
420
+ }
421
+
422
+ static inline CF_SWIFT_NAME(CTFont.init(_:size:language:)) CTFontRef _CTFontCreateUIFontForLanguage(CTFontUIFontType uiType, CGFloat size, CFStringRef _Nullable language)
423
+ {
424
+ return CTFontCreateUIFontForLanguage(uiType, size, language);
425
+ }
426
+
427
+ #endif // __swift__
428
+
429
+ /*!
430
+ @function CTFontCreateCopyWithAttributes
431
+ @abstract Returns a new font with additional attributes based on the original font.
432
+
433
+ @discussion This function provides a mechanism to quickly change attributes on a given font reference in response to user actions. For instance, the size can be changed in response to a user manipulating a size slider.
434
+
435
+ @param font
436
+ Original font reference to base new font on.
437
+
438
+ @param size
439
+ The point size for the font reference. If 0.0 is specified, the original font's size will be preserved.
440
+
441
+ @param matrix
442
+ The transformation matrix for the font. If unspecified, the original font matrix will be preserved. Optional.
443
+
444
+ @param attributes
445
+ A font descriptor containing additional attributes that the new font should contain.
446
+
447
+ @result Returns a new font reference converted from the original with the specified attributes.
448
+ */
449
+ CT_EXPORT
450
+ CTFontRef CTFontCreateCopyWithAttributes(
451
+ CTFontRef font,
452
+ CGFloat size,
453
+ const CGAffineTransform * _Nullable matrix,
454
+ CTFontDescriptorRef _Nullable attributes ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
455
+
456
+ /*!
457
+ @function CTFontCreateCopyWithSymbolicTraits
458
+ @abstract Returns a new font based on the original font with the specified symbolic traits.
459
+
460
+ @param font
461
+ Original font reference on which to base the new font.
462
+
463
+ @param size
464
+ The point size for the font reference. If 0.0 is specified, the original font's size will be preserved.
465
+
466
+ @param matrix
467
+ The transformation matrix for the font. If unspecified, the original font matrix will be preserved. Optional.
468
+
469
+ @param symTraitValue
470
+ The value of the symbolic traits. This bitfield is used to indicate the desired value for the traits specified by the symTraitMask parameter. Used in conjunction, they can allow for trait removal as well as addition.
471
+
472
+ @param symTraitMask
473
+ The mask bits of the symbolic traits. This bitfield is used to indicate the traits that should be changed.
474
+
475
+ @result Returns a new font reference in the same family with the given symbolic traits, or NULL if none found in the system.
476
+ */
477
+ CT_EXPORT
478
+ CTFontRef _Nullable CTFontCreateCopyWithSymbolicTraits(
479
+ CTFontRef font,
480
+ CGFloat size,
481
+ const CGAffineTransform * _Nullable matrix,
482
+ CTFontSymbolicTraits symTraitValue,
483
+ CTFontSymbolicTraits symTraitMask ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
484
+
485
+ /*!
486
+ @function CTFontCreateCopyWithFamily
487
+ @abstract Returns a new font in the specified family based on the traits of the original font.
488
+
489
+ @param font
490
+ Original font reference to base new font on.
491
+
492
+ @param size
493
+ The point size for the font reference. If 0.0 is specified, the original font's size will be preserved.
494
+
495
+ @param matrix
496
+ The transformation matrix for the font. If unspecified, the original font matrix will be preserved. Optional.
497
+
498
+ @param family
499
+ The name of the desired family.
500
+
501
+ @result Returns a new font reference with the original traits in the given family. NULL if non found in the system.
502
+ */
503
+ CT_EXPORT
504
+ CTFontRef _Nullable CTFontCreateCopyWithFamily(
505
+ CTFontRef font,
506
+ CGFloat size,
507
+ const CGAffineTransform * _Nullable matrix,
508
+ CFStringRef family ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
509
+
510
+ /*! --------------------------------------------------------------------------
511
+ @group Font Cascading
512
+ *///--------------------------------------------------------------------------
513
+
514
+ /*!
515
+ @function CTFontCreateForString
516
+ @abstract Returns a new font reference that can best map the given string range based on the current font.
517
+
518
+ @discussion This function is to be used when the current font does not cover the given range of the string. The current font itself will not be returned, but preference is given to fonts in its cascade list.
519
+
520
+ @param currentFont
521
+ The current font that contains a valid cascade list.
522
+
523
+ @param string
524
+ A unicode string containing characters that cannot be encoded by the current font.
525
+
526
+ @param range
527
+ A CFRange specifying the range of the string that needs to be mapped.
528
+
529
+ @result This function returns the best substitute font that can encode the specified string range.
530
+
531
+ @seealso CTFontCopyCharacterSet
532
+ @seealso CTFontGetGlyphsForCharacters
533
+ @seealso kCTFontCascadeListAttribute
534
+ */
535
+ CT_EXPORT
536
+ CTFontRef CTFontCreateForString(
537
+ CTFontRef currentFont,
538
+ CFStringRef string,
539
+ CFRange range ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
540
+
541
+ /*!
542
+ @function CTFontCreateForStringWithLanguage
543
+ @abstract Returns a new font reference that can best map the given string range based on the current font and language specified.
544
+
545
+ @discussion The current font itself can be returned if it covers the string provided.
546
+
547
+ @param currentFont
548
+ The current font that contains a valid cascade list.
549
+
550
+ @param string
551
+ A unicode string containing characters that cannot be encoded by the current font.
552
+
553
+ @param range
554
+ A CFRange specifying the range of the string that needs to be mapped.
555
+
556
+ @param language
557
+ Language identifier to select a font for a particular localization. If unspecified, the current system language is used. The format of the language identifier should conform to UTS #35.
558
+
559
+ @result This function returns the best substitute font that can encode the specified string range.
560
+
561
+ @seealso CTFontCopyCharacterSet
562
+ @seealso CTFontGetGlyphsForCharacters
563
+ @seealso kCTFontCascadeListAttribute
564
+ */
565
+ CT_EXPORT
566
+ CTFontRef CTFontCreateForStringWithLanguage(
567
+ CTFontRef currentFont,
568
+ CFStringRef string,
569
+ CFRange range,
570
+ CFStringRef _Nullable language ) CT_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
571
+
572
+ #ifdef __swift__
573
+
574
+ static inline CF_SWIFT_NAME(CTFont.init(font:string:range:)) CTFontRef _CTFontCreateForString(CTFontRef currentFont, CFStringRef string, CFRange range)
575
+ {
576
+ return CTFontCreateForString(currentFont, string, range);
577
+ }
578
+
579
+ static inline CF_SWIFT_NAME(CTFont.init(font:string:range:language:)) CTFontRef _CTFontCreateForStringWithLanguage(CTFontRef currentFont, CFStringRef string, CFRange range, CFStringRef _Nullable language)
580
+ {
581
+ return CTFontCreateForStringWithLanguage(currentFont, string, range, language);
582
+ }
583
+
584
+ #endif // __swift__
585
+
586
+ /*! --------------------------------------------------------------------------
587
+ @group Font Accessors
588
+ *///--------------------------------------------------------------------------
589
+
590
+ /*!
591
+ @function CTFontCopyFontDescriptor
592
+ @abstract Returns the normalized font descriptors for the given font reference.
593
+
594
+ @param font
595
+ The font reference.
596
+
597
+ @result This function returns a normalized font descriptor for a font. The font descriptor contains enough information to recreate this font at a later time.
598
+ */
599
+ CT_EXPORT
600
+ CTFontDescriptorRef CTFontCopyFontDescriptor(
601
+ CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
602
+
603
+ /*!
604
+ @function CTFontCopyAttribute
605
+ @abstract Returns the value associated with an arbitrary attribute.
606
+
607
+ @param font
608
+ The font reference.
609
+
610
+ @param attribute
611
+ The requested attribute.
612
+
613
+ @result This function returns a retained reference to an arbitrary attribute. If the requested attribute is not present, NULL is returned. Refer to the attribute definitions for documentation as to how each attribute is packaged as a CFType.
614
+ */
615
+ CT_EXPORT
616
+ CFTypeRef _Nullable CTFontCopyAttribute(
617
+ CTFontRef font,
618
+ CFStringRef attribute ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
619
+
620
+ /*!
621
+ @function CTFontGetSize
622
+ @abstract Returns the point size of the font reference.
623
+
624
+ @param font
625
+ The font reference.
626
+
627
+ @result This function returns the point size of the given font reference. This is the point size provided when the font was created.
628
+ */
629
+ CT_EXPORT
630
+ CGFloat CTFontGetSize( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
631
+
632
+ /*!
633
+ @function CTFontGetMatrix
634
+ @abstract Returns the transformation matrix of the font.
635
+
636
+ @param font
637
+ The font reference.
638
+
639
+ @result This function returns the transformation matrix for this given font reference. This is the matrix that was provided when the font was created.
640
+ */
641
+ CT_EXPORT
642
+ CGAffineTransform CTFontGetMatrix( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
643
+
644
+ /*!
645
+ @function CTFontGetSymbolicTraits
646
+ @abstract Returns the symbolic font traits.
647
+
648
+ @param font
649
+ The font reference.
650
+
651
+ @result This function returns the symbolic traits of the font. This is equivalent to the kCTFontSymbolicTrait of traits dictionary. See CTFontTraits.h for a definition of the font traits.
652
+ */
653
+ CT_EXPORT
654
+ CTFontSymbolicTraits CTFontGetSymbolicTraits( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
655
+
656
+ /*!
657
+ @function CTFontCopyTraits
658
+ @abstract Returns the font traits dictionary.
659
+
660
+ @param font
661
+ The font reference.
662
+
663
+ @result This function returns a retained reference to the font traits dictionary. Individual traits can be accessed with the trait key constants. See CTFontTraits.h for a definition of the font traits.
664
+ */
665
+ CT_EXPORT
666
+ CFDictionaryRef CTFontCopyTraits( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
667
+
668
+ /*!
669
+ @function CTFontCopyDefaultCascadeListForLanguages
670
+ @abstract Return an ordered list of CTFontDescriptorRef's for font fallback derived from the system default fallback according to the given language preferences, making a reasonable attempt to match the given font's style, weight, and width.
671
+
672
+ @param font
673
+ The font reference.
674
+
675
+ @param languagePrefList
676
+ An array of language identifiers as CFString values, in decreasing order of preference.
677
+
678
+ @result The ordered list of fallback fonts - ordered array of CTFontDescriptors.
679
+ */
680
+ CT_EXPORT
681
+ CFArrayRef _Nullable CTFontCopyDefaultCascadeListForLanguages( CTFontRef font, CFArrayRef _Nullable languagePrefList ) CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
682
+
683
+ /*! --------------------------------------------------------------------------
684
+ @group Font Names
685
+ *///--------------------------------------------------------------------------
686
+
687
+ /*!
688
+ @function CTFontCopyPostScriptName
689
+ @abstract Returns the PostScript name.
690
+
691
+ @param font
692
+ The font reference.
693
+
694
+ @result This function returns a retained reference to the PostScript name of the font.
695
+ */
696
+ CT_EXPORT
697
+ CFStringRef CTFontCopyPostScriptName( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
698
+
699
+ /*!
700
+ @function CTFontCopyFamilyName
701
+ @abstract Returns the family name.
702
+
703
+ @param font
704
+ The font reference.
705
+
706
+ @result This function returns a retained reference to the family name of the font.
707
+ */
708
+ CT_EXPORT
709
+ CFStringRef CTFontCopyFamilyName( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
710
+
711
+ /*!
712
+ @function CTFontCopyFullName
713
+ @abstract Returns the display name.
714
+
715
+ @param font
716
+ The font reference.
717
+
718
+ @result This function returns a retained reference to the full name of the font.
719
+ */
720
+ CT_EXPORT
721
+ CFStringRef CTFontCopyFullName( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
722
+
723
+ /*!
724
+ @function CTFontCopyDisplayName
725
+ @abstract Returns the display name.
726
+
727
+ @param font
728
+ The font reference.
729
+
730
+ @result This function returns a retained reference to the localized display name of the font.
731
+ */
732
+ CT_EXPORT
733
+ CFStringRef CTFontCopyDisplayName( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
734
+
735
+ /*!
736
+ @function CTFontCopyName
737
+ @abstract Returns a reference to the requested name.
738
+
739
+ @param font
740
+ The font reference.
741
+
742
+ @param nameKey
743
+ The name specifier. See name specifier constants.
744
+
745
+ @result This function creates the requested name for the font, or NULL if the font does not have an entry for the requested name. The Unicode version of the name will be preferred, otherwise the first available will be used.
746
+ */
747
+ CT_EXPORT
748
+ CFStringRef _Nullable CTFontCopyName(
749
+ CTFontRef font,
750
+ CFStringRef nameKey ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
751
+
752
+ /*!
753
+ @function CTFontCopyLocalizedName
754
+ @abstract Returns a reference to a localized font name.
755
+
756
+ @discussion Localized names are necessary for presentation to a human but are rarely appropriate for programmatic use. CoreText provides localizations for common names but will not attempt any sort of automated translation.
757
+
758
+ @param font
759
+ The font reference.
760
+
761
+ @param nameKey
762
+ A name specifier listed in "Font Constants", for example kCTFontStyleNameKey. Name keys present in dictionaries (such as those for axes or features) are handled not by this function but by the functions returning those dictionaries.
763
+
764
+ @param actualLanguage
765
+ Pointer to a CFStringRef to receive the language identifier of the returned name string. The format of the language identifier will conform to UTS #35.
766
+ If CoreText can supply its own localized string where the font cannot, this value will be NULL.
767
+
768
+ @result This function returns a specific localized name from the font reference. The name is localized based on the user's global language precedence. If the font does not have an entry for the requested name, NULL will be returned. The matched language will be returned in the caller's buffer.
769
+
770
+ @seealso CTFontCopyVariationAxes
771
+ @seealso CTFontCopyFeatures
772
+ */
773
+ CT_EXPORT
774
+ CFStringRef _Nullable CTFontCopyLocalizedName(
775
+ CTFontRef font,
776
+ CFStringRef nameKey,
777
+ CFStringRef _Nullable * _Nullable actualLanguage ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
778
+
779
+ /*! --------------------------------------------------------------------------
780
+ @group Font Encoding
781
+ *///--------------------------------------------------------------------------
782
+
783
+ /*!
784
+ @function CTFontCopyCharacterSet
785
+ @abstract Returns the Unicode character set of the font.
786
+
787
+ @param font
788
+ The font reference.
789
+
790
+ @result This function returns a retained reference to the font's character set. This character set covers the nominal referenced by the font's Unicode cmap table (or equivalent).
791
+ */
792
+ CT_EXPORT
793
+ CFCharacterSetRef CTFontCopyCharacterSet( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
794
+
795
+ /*!
796
+ @function CTFontGetStringEncoding
797
+ @abstract Returns the best string encoding for legacy format support.
798
+
799
+ @param font
800
+ The font reference.
801
+
802
+ @result This function returns the best string encoding for the font.
803
+ */
804
+ CT_EXPORT
805
+ CFStringEncoding CTFontGetStringEncoding( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
806
+
807
+ /*!
808
+ @function CTFontCopySupportedLanguages
809
+ @abstract Returns an array of languages supported by the font.
810
+
811
+ @param font
812
+ The font reference.
813
+
814
+ @result This function returns a retained reference to an array of languages supported by the font. The array contains language identifier strings as CFStringRefs. The format of the language identifier will conform to UTS #35.
815
+ */
816
+ CT_EXPORT
817
+ CFArrayRef CTFontCopySupportedLanguages( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
818
+
819
+ /*!
820
+ @function CTFontGetGlyphsForCharacters
821
+ @abstract Performs basic character-to-glyph mapping.
822
+
823
+ @discussion This function only provides the nominal mapping as specified by the font's Unicode cmap (or equivalent); such mapping does not constitute proper Unicode layout: it is the caller's responsibility to handle the Unicode properties of the characters.
824
+
825
+ @param font
826
+ The font reference.
827
+
828
+ @param characters
829
+ An array of characters (UTF-16 code units). Non-BMP characters must be encoded as surrogate pairs.
830
+
831
+ @param glyphs
832
+ A pointer to a buffer to receive the glyphs. Glyphs for non-BMP characters are sparse: the first glyph corresponds to the full character and the second glyph will be 0.
833
+
834
+ @param count
835
+ The capacity of both the characters and glyphs arrays.
836
+
837
+ @result The return value indicates whether all provided characters were successfully mapped. A return value of true indicates that the font mapped all characters. A return value of false indicates that some or all of the characters were not mapped; glyphs for unmapped characters will be 0 (with the exception of those corresponding non-BMP characters as described above).
838
+
839
+ @seealso CTFontCopyCharacterSet
840
+ */
841
+ CT_EXPORT
842
+ bool CTFontGetGlyphsForCharacters(
843
+ CTFontRef font,
844
+ const UniChar characters[_Nonnull],
845
+ CGGlyph glyphs[_Nonnull],
846
+ CFIndex count ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
847
+
848
+ /*! --------------------------------------------------------------------------
849
+ @group Font Metrics
850
+ *///--------------------------------------------------------------------------
851
+
852
+ /*!
853
+ @function CTFontGetAscent
854
+ @abstract Returns the scaled font ascent metric.
855
+
856
+ @param font
857
+ The font reference.
858
+
859
+ @result This function returns the font ascent metric scaled based on the point size and matrix of the font reference.
860
+ */
861
+ CT_EXPORT
862
+ CGFloat CTFontGetAscent( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
863
+
864
+ /*!
865
+ @function CTFontGetDescent
866
+ @abstract Returns the scaled font descent metric.
867
+
868
+ @param font
869
+ The font reference.
870
+
871
+ @result This function returns the font descent metric scaled based on the point size and matrix of the font reference.
872
+ */
873
+ CT_EXPORT
874
+ CGFloat CTFontGetDescent( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
875
+
876
+ /*!
877
+ @function CTFontGetLeading
878
+ @abstract Returns the scaled font leading metric.
879
+
880
+ @param font
881
+ The font reference.
882
+
883
+ @result This function returns the font leading metric scaled based on the point size and matrix of the font reference.
884
+ */
885
+ CT_EXPORT
886
+ CGFloat CTFontGetLeading( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
887
+
888
+ /*!
889
+ @function CTFontGetUnitsPerEm
890
+ @abstract Returns the units per em metric.
891
+
892
+ @param font
893
+ The font reference.
894
+
895
+ @result This function returns the units per em of the font.
896
+ */
897
+ CT_EXPORT
898
+ unsigned CTFontGetUnitsPerEm( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
899
+
900
+ /*!
901
+ @function CTFontGetGlyphCount
902
+ @abstract Returns the number of glyphs.
903
+
904
+ @param font
905
+ The font reference.
906
+
907
+ @result This function returns the number of glyphs in the font.
908
+ */
909
+ CT_EXPORT
910
+ CFIndex CTFontGetGlyphCount( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
911
+
912
+ /*!
913
+ @function CTFontGetBoundingBox
914
+ @abstract Returns the scaled bounding box.
915
+
916
+ @param font
917
+ The font reference.
918
+
919
+ @result This will return the design bounding box of the font, which is the rectangle defined by xMin, yMin, xMax, and yMax values for the font.
920
+ */
921
+ CT_EXPORT
922
+ CGRect CTFontGetBoundingBox( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
923
+
924
+ /*!
925
+ @function CTFontGetUnderlinePosition
926
+ @abstract Returns the scaled underline position.
927
+
928
+ @param font
929
+ The font reference.
930
+
931
+ @result This function returns the font underline position metric scaled based on the point size and matrix of the font reference.
932
+ */
933
+ CT_EXPORT
934
+ CGFloat CTFontGetUnderlinePosition( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
935
+
936
+ /*!
937
+ @function CTFontGetUnderlineThickness
938
+ @abstract Returns the scaled underline thickness metric.
939
+
940
+ @param font
941
+ The font reference.
942
+
943
+ @result This function returns the font underline thickness metric scaled based on the point size and matrix of the font reference.
944
+ */
945
+ CT_EXPORT
946
+ CGFloat CTFontGetUnderlineThickness( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
947
+
948
+ /*!
949
+ @function CTFontGetSlantAngle
950
+ @abstract Returns the slant angle of the font.
951
+
952
+ @param font
953
+ The font reference.
954
+
955
+ @result This function returns the transformed slant angle of the font. This is equivalent to the italic or caret angle with any skew from the transformation matrix applied.
956
+ */
957
+ CT_EXPORT
958
+ CGFloat CTFontGetSlantAngle( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
959
+
960
+ /*!
961
+ @function CTFontGetCapHeight
962
+ @abstract Returns the cap height metric.
963
+
964
+ @param font
965
+ The font reference.
966
+
967
+ @result This function returns the font cap height metric scaled based on the point size and matrix of the font reference.
968
+ */
969
+ CT_EXPORT
970
+ CGFloat CTFontGetCapHeight( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
971
+
972
+ /*!
973
+ @function CTFontGetXHeight
974
+ @abstract Returns the X height metric.
975
+
976
+ @param font
977
+ The font reference.
978
+
979
+ @result This function returns the font X height metric scaled based on the point size and matrix of the font reference.
980
+ */
981
+ CT_EXPORT
982
+ CGFloat CTFontGetXHeight( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
983
+
984
+ /*! --------------------------------------------------------------------------
985
+ @group Font Glyphs
986
+ *///--------------------------------------------------------------------------
987
+
988
+ /*!
989
+ @function CTFontGetGlyphWithName
990
+ @abstract Returns the CGGlyph for the specified glyph name.
991
+
992
+ @param font
993
+ The font reference.
994
+
995
+ @param glyphName
996
+ The glyph name as a CFString.
997
+
998
+ @result The glyph with the specified name or 0 if the name is not recognized; this glyph can be used with other Core Text glyph data accessors or with Quartz.
999
+ */
1000
+ CT_EXPORT
1001
+ CGGlyph CTFontGetGlyphWithName(
1002
+ CTFontRef font,
1003
+ CFStringRef glyphName ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1004
+
1005
+ /*!
1006
+ @function CTFontCopyNameForGlyph
1007
+ @abstract Returns the name for the specified glyph.
1008
+
1009
+ @param font
1010
+ The font reference.
1011
+
1012
+ @param glyph
1013
+ The glyph.
1014
+
1015
+ @result The glyph name as a CFString or NULL if the glyph is invalid.
1016
+
1017
+ @seealso CTFontGetGlyphWithName
1018
+ */
1019
+ CT_EXPORT
1020
+ CFStringRef _Nullable CTFontCopyNameForGlyph(
1021
+ CTFontRef font,
1022
+ CGGlyph glyph ) CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1023
+
1024
+ /*!
1025
+ @function CTFontGetBoundingRectsForGlyphs
1026
+ @abstract Calculates the bounding rects for an array of glyphs and returns the overall bounding rect for the run.
1027
+
1028
+ @param font
1029
+ The font reference.
1030
+
1031
+ @param orientation
1032
+ The intended drawing orientation of the glyphs. Used to determined which glyph metrics to return.
1033
+
1034
+ @param glyphs
1035
+ An array of count number of glyphs.
1036
+
1037
+ @param boundingRects
1038
+ An array of count number of CGRects to receive the computed glyph rects. Can be NULL, in which case only the overall bounding rect is calculated.
1039
+
1040
+ @param count
1041
+ The capacity of the glyphs and boundingRects buffers.
1042
+
1043
+ @result This function returns the overall bounding rectangle for an array or run of glyphs. The bounding rects of the individual glyphs are returned through the boundingRects parameter. These are the design metrics from the font transformed in font space.
1044
+ */
1045
+ CT_EXPORT
1046
+ CGRect CTFontGetBoundingRectsForGlyphs(
1047
+ CTFontRef font,
1048
+ CTFontOrientation orientation,
1049
+ const CGGlyph glyphs[_Nonnull],
1050
+ CGRect boundingRects[_Nullable],
1051
+ CFIndex count ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1052
+
1053
+ /*!
1054
+ @function CTFontGetOpticalBoundsForGlyphs
1055
+ @abstract Calculates the optical bounding rects for an array of glyphs and returns the overall optical bounding rect for the run.
1056
+
1057
+ @discussion Fonts may specify the optical edges of glyphs that can be used to make the edges of lines of text line up in a more visually pleasing way. This function returns bounding rects corresponding to this information if present in a font, otherwise it returns typographic bounding rects (composed of the font's ascent and descent and a glyph's advance width).
1058
+
1059
+ @param font
1060
+ The font reference.
1061
+
1062
+ @param glyphs
1063
+ An array of count number of glyphs.
1064
+
1065
+ @param boundingRects
1066
+ An array of count number of CGRects to receive the computed glyph rects. Can be NULL, in which case only the overall bounding rect is calculated.
1067
+
1068
+ @param count
1069
+ The capacity of the glyphs and boundingRects buffers.
1070
+
1071
+ @param options
1072
+ Reserved, set to zero.
1073
+
1074
+ @result This function returns the overall bounding rectangle for an array or run of glyphs. The bounding rects of the individual glyphs are returned through the boundingRects parameter. These are the design metrics from the font transformed in font space.
1075
+ */
1076
+ CT_EXPORT
1077
+ CGRect CTFontGetOpticalBoundsForGlyphs(
1078
+ CTFontRef font,
1079
+ const CGGlyph glyphs[_Nonnull],
1080
+ CGRect boundingRects[_Nullable],
1081
+ CFIndex count,
1082
+ CFOptionFlags options ) CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1083
+
1084
+ /*!
1085
+ @function CTFontGetAdvancesForGlyphs
1086
+ @abstract Calculates the advances for an array of glyphs and returns the summed advance.
1087
+
1088
+ @param font
1089
+ The font reference.
1090
+
1091
+ @param orientation
1092
+ The intended drawing orientation of the glyphs. Used to determined which glyph metrics to return.
1093
+
1094
+ @param glyphs
1095
+ An array of count number of glyphs.
1096
+
1097
+ @param advances
1098
+ An array of count number of CGSize to receive the computed glyph advances. Can be NULL, in which case only the overall advance is calculated.
1099
+
1100
+ @param count
1101
+ The capacity of the glyphs and advances buffers.
1102
+
1103
+ @result This function returns the summed glyph advance of an array of glyphs. Individual glyph advances are passed back via the advances parameter. These are the ideal metrics for each glyph scaled and transformed in font space.
1104
+ */
1105
+ CT_EXPORT
1106
+ double CTFontGetAdvancesForGlyphs(
1107
+ CTFontRef font,
1108
+ CTFontOrientation orientation,
1109
+ const CGGlyph glyphs[_Nonnull],
1110
+ CGSize advances[_Nullable],
1111
+ CFIndex count ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1112
+
1113
+ /*!
1114
+ @function CTFontGetVerticalTranslationsForGlyphs
1115
+ @abstract Calculates the offset from the default (horizontal) origin to the vertical origin for an array of glyphs.
1116
+
1117
+ @param font
1118
+ The font reference.
1119
+
1120
+ @param glyphs
1121
+ An array of count number of glyphs.
1122
+
1123
+ @param translations
1124
+ An array of count number of CGSize to receive the computed origin offsets.
1125
+
1126
+ @param count
1127
+ The capacity of the glyphs and translations buffers.
1128
+ */
1129
+ CT_EXPORT
1130
+ void CTFontGetVerticalTranslationsForGlyphs(
1131
+ CTFontRef font,
1132
+ const CGGlyph glyphs[_Nonnull],
1133
+ CGSize translations[_Nonnull],
1134
+ CFIndex count ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1135
+
1136
+ /*!
1137
+ @function CTFontCreatePathForGlyph
1138
+ @abstract Creates a path for the specified glyph.
1139
+
1140
+ @discussion Creates a path from the outlines of the glyph for the specified font. The path will reflect the font point size, matrix, and transform parameter, in that order. The transform parameter will most commonly be used to provide a translation to the desired glyph origin.
1141
+
1142
+ @param font
1143
+ The font reference.
1144
+
1145
+ @param glyph
1146
+ The glyph.
1147
+
1148
+ @param matrix
1149
+ An affine transform applied to the path. Can be NULL, in which case CGAffineTransformIdentity will be used.
1150
+
1151
+ @result A retained CGPath reference containing the glyph outlines or NULL if there is no such glyph or it has no outline.
1152
+ */
1153
+ CT_EXPORT
1154
+ CGPathRef _Nullable CTFontCreatePathForGlyph(
1155
+ CTFontRef font,
1156
+ CGGlyph glyph,
1157
+ const CGAffineTransform * _Nullable matrix ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1158
+
1159
+ /*! --------------------------------------------------------------------------
1160
+ @group Font Variations
1161
+ *///--------------------------------------------------------------------------
1162
+
1163
+ /*!
1164
+ @defined kCTFontVariationAxisIdentifierKey
1165
+ @abstract Key to get the variation axis identifier.
1166
+ @discussion This key is used with a variation axis dictionary to get the axis identifier value as a CFNumberRef.
1167
+ */
1168
+ CT_EXPORT const CFStringRef kCTFontVariationAxisIdentifierKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1169
+ /*!
1170
+ @defined kCTFontVariationAxisMinimumValueKey
1171
+ @abstract Key to get the variation axis minimum value.
1172
+ @discussion This key is used with a variation axis dictionary to get the minimum axis value as a CFNumberRef.
1173
+ */
1174
+ CT_EXPORT const CFStringRef kCTFontVariationAxisMinimumValueKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1175
+ /*!
1176
+ @defined kCTFontVariationAxisMaximumValueKey
1177
+ @abstract Key to get the variation axis maximum value.
1178
+ @discussion This key is used with a variation axis dictionary to get the maximum axis value as a CFNumberRef.
1179
+ */
1180
+ CT_EXPORT const CFStringRef kCTFontVariationAxisMaximumValueKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1181
+ /*!
1182
+ @defined kCTFontVariationAxisDefaultValueKey
1183
+ @abstract Key to get the variation axis default value.
1184
+ @discussion This key is used with a variation axis dictionary to get the default axis value as a CFNumberRef.
1185
+ */
1186
+ CT_EXPORT const CFStringRef kCTFontVariationAxisDefaultValueKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1187
+ /*!
1188
+ @defined kCTFontVariationAxisNameKey
1189
+ @abstract Key to get the variation axis name string.
1190
+ @discussion This key is used with a variation axis dictionary to get the variation axis name.
1191
+ */
1192
+ CT_EXPORT const CFStringRef kCTFontVariationAxisNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1193
+ /*!
1194
+ @defined kCTFontVariationAxisHiddenKey
1195
+ @abstract Key to get the hidden axis flag.
1196
+ @discussion This key contains a CFBoolean value that is true when the font designer recommends the axis not be exposed directly to end users in application interfaces.
1197
+ */
1198
+ CT_EXPORT const CFStringRef kCTFontVariationAxisHiddenKey CT_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
1199
+
1200
+ /*!
1201
+ @function CTFontCopyVariationAxes
1202
+ @abstract Returns an array of variation axis dictionaries.
1203
+ @discussion Each variation axis dictionary contains the five kCTFontVariationAxis* keys above, and kCTFontVariationAxisNameKey values will be localized when supported by the font; for programmatic uses kCTFontVariationAxesAttribute may be used instead.
1204
+
1205
+ @param font
1206
+ The font reference.
1207
+
1208
+ @result An array of variation axis dictionaries or null if the font does not support variations.
1209
+
1210
+ @seealso kCTFontVariationAxesAttribute
1211
+ */
1212
+ CT_EXPORT
1213
+ CFArrayRef _Nullable CTFontCopyVariationAxes( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1214
+
1215
+ /*!
1216
+ @function CTFontCopyVariation
1217
+ @abstract Returns a variation dictionary.
1218
+ @discussion This function describes the current configuration of a variation font: a dictionary of number values with variation identifier number keys. As of macOS 10.12 and iOS 10.0, only non-default values (as determined by the variation axis) are returned.
1219
+
1220
+ @param font
1221
+ The font reference.
1222
+
1223
+ @result This function returns a variation dictionary or null if the font does not support variations.
1224
+
1225
+ @seealso kCTFontVariationAxisIdentifierKey
1226
+ @seealso kCTFontVariationAxisDefaultValueKey
1227
+ */
1228
+ CT_EXPORT
1229
+ CFDictionaryRef _Nullable CTFontCopyVariation( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1230
+
1231
+ /*! --------------------------------------------------------------------------
1232
+ @group Font Features
1233
+ *///--------------------------------------------------------------------------
1234
+
1235
+ /*!
1236
+ @defined kCTFontOpenTypeFeatureTag
1237
+ @abstract Key to get the OpenType feature tag.
1238
+ @discussion This key can be used with a font feature dictionary to get the tag as a CFStringRef.
1239
+ */
1240
+ CT_EXPORT const CFStringRef kCTFontOpenTypeFeatureTag CT_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
1241
+ /*!
1242
+ @defined kCTFontOpenTypeFeatureValue
1243
+ @abstract Key to get the OpenType feature value.
1244
+ @discussion This key can be used with a font feature dictionary to get the value as a CFNumberRef.
1245
+ */
1246
+ CT_EXPORT const CFStringRef kCTFontOpenTypeFeatureValue CT_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
1247
+ /*!
1248
+ @defined kCTFontFeatureTypeIdentifierKey
1249
+ @abstract Key to get the font feature type value.
1250
+ @discussion This key can be used with a font feature dictionary to get the type identifier as a CFNumberRef.
1251
+ */
1252
+ CT_EXPORT const CFStringRef kCTFontFeatureTypeIdentifierKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1253
+ /*!
1254
+ @defined kCTFontFeatureTypeNameKey
1255
+ @abstract Key to get the font feature name.
1256
+ @discussion This key can be used with a font feature dictionary to get the localized type name string as a CFString.
1257
+ */
1258
+ CT_EXPORT const CFStringRef kCTFontFeatureTypeNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1259
+ /*!
1260
+ @defined kCTFontFeatureTypeExclusiveKey
1261
+ @abstract Key to get the font feature exclusive setting.
1262
+ @discussion This key can be used with a font feature dictionary to get the the exclusive setting of the feature as a CFBoolean. The value associated with this key indicates whether the feature selectors associated with this type should be mutually exclusive.
1263
+ */
1264
+ CT_EXPORT const CFStringRef kCTFontFeatureTypeExclusiveKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1265
+ /*!
1266
+ @defined kCTFontFeatureTypeSelectorsKey
1267
+ @abstract Key to get the font feature selectors.
1268
+ @discussion This key can be used with a font feature dictionary to get the array of font feature selectors as a CFArrayRef. This is an array of selector dictionaries that contain the values for the following selector keys.
1269
+ */
1270
+ CT_EXPORT const CFStringRef kCTFontFeatureTypeSelectorsKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1271
+ /*!
1272
+ @defined kCTFontFeatureSelectorIdentifierKey
1273
+ @abstract Key to get the font feature selector identifier.
1274
+ @discussion This key can be used with a selector dictionary corresponding to a feature type to obtain the selector identifier value as a CFNumberRef.
1275
+ */
1276
+ CT_EXPORT const CFStringRef kCTFontFeatureSelectorIdentifierKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1277
+ /*!
1278
+ @defined kCTFontFeatureSelectorNameKey
1279
+ @abstract Key to get the font feature selector name.
1280
+ @discussion This key is used with a selector dictionary to get the localized name string for the selector as a CFStringRef.
1281
+ */
1282
+ CT_EXPORT const CFStringRef kCTFontFeatureSelectorNameKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1283
+ /*!
1284
+ @defined kCTFontFeatureSelectorDefaultKey
1285
+ @abstract Key to get the font feature selector default setting value.
1286
+ @discussion This key is used with a selector dictionary to get the default indicator for the selector. This value is a CFBooleanRef which if present and true indicates that this selector is the default setting for the current feature type.
1287
+ */
1288
+ CT_EXPORT const CFStringRef kCTFontFeatureSelectorDefaultKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1289
+ /*!
1290
+ @defined kCTFontFeatureSelectorSettingKey
1291
+ @abstract Key to get or specify the current feature setting.
1292
+ @discussion This key is used with a selector dictionary to get or specify the current setting for the selector. This value is a CFBooleanRef to indicate whether this selector is on or off. If this key is not present, the default setting is used.
1293
+ */
1294
+ CT_EXPORT const CFStringRef kCTFontFeatureSelectorSettingKey CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1295
+ /*!
1296
+ @defined kCTFontFeatureSampleTextKey
1297
+ @abstract Key to get the font feature sample text.
1298
+ @discussion This key can be used with a font feature dictionary to get the localized sample text as a CFStringRef.
1299
+ */
1300
+ CT_EXPORT const CFStringRef kCTFontFeatureSampleTextKey CT_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
1301
+ /*!
1302
+ @defined kCTFontFeatureTooltipTextKey
1303
+ @abstract Key to get the font feature tooltip text.
1304
+ @discussion This key can be used with a font feature dictionary to get the localized tooltip text as a CFStringRef.
1305
+ */
1306
+ CT_EXPORT const CFStringRef kCTFontFeatureTooltipTextKey CT_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
1307
+
1308
+ /*!
1309
+ @function CTFontCopyFeatures
1310
+ @abstract Returns an array of font features
1311
+
1312
+ @discussion The returned value describes the features available for the provided font. Each array value is a feature dictionary describing a feature type, with related selector dictionaries in an array under the kCTFontFeatureTypeSelectorsKey.
1313
+ While CoreText supports AAT and OpenType font features, they are preferentially represented as AAT features owing to their more formal structure: individual feature types can be either exclusive or non-exclusive, which indicates whether one or more of its selectors can be simultaneously enabled. Where possible features are elaborated with their OpenType feature tag and value, which can occur within both type or selector dictionaries depending on the feature's mapping to an AAT type and selector pair.
1314
+ Names are localized according to the preferred langauges of the caller and therefore are not appropriate for programmatically identifying features.
1315
+
1316
+ @param font
1317
+ The font reference.
1318
+
1319
+ @result This function returns an array of font feature dictionaries for the font reference.
1320
+ */
1321
+ CT_EXPORT
1322
+ CFArrayRef _Nullable CTFontCopyFeatures( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1323
+
1324
+ /*!
1325
+ @function CTFontCopyFeatureSettings
1326
+ @abstract Returns an array of font feature setting tuples
1327
+
1328
+ @discussion A setting tuple is a dictionary of a kCTFontFeatureTypeIdentifierKey key-value pair and a kCTFontFeatureSelectorIdentifierKey key-value pair. Each tuple corresponds to an enabled non-default setting. It is the caller's responsibility to handle exclusive and non-exclusive settings as necessary.
1329
+
1330
+ @param font
1331
+ The font reference.
1332
+
1333
+ @result This function returns a normalized array of font feature setting dictionaries. The array will only contain the non-default settings that should be applied to the font, or NULL if the default settings should be used.
1334
+ */
1335
+ CT_EXPORT
1336
+ CFArrayRef _Nullable CTFontCopyFeatureSettings( CTFontRef font ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1337
+
1338
+ /*! --------------------------------------------------------------------------
1339
+ @group Font Conversion
1340
+ *///--------------------------------------------------------------------------
1341
+
1342
+ /*!
1343
+ @function CTFontCopyGraphicsFont
1344
+ @abstract Returns a CGFontRef and attributes.
1345
+
1346
+ @param font
1347
+ The font reference.
1348
+
1349
+ @param attributes
1350
+ A pointer to a CTFontDescriptorRef to receive a font descriptor containing additional attributes. Can be NULL. Must be released by caller.
1351
+
1352
+ @result This function returns a CGFontRef for the given font reference. Additional attributes from the font will be passed back as a font descriptor via the attributes parameter. The result must be released by the caller.
1353
+ */
1354
+ CT_EXPORT
1355
+ CGFontRef CTFontCopyGraphicsFont(
1356
+ CTFontRef font,
1357
+ CTFontDescriptorRef _Nullable * _Nullable attributes ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1358
+
1359
+ /*!
1360
+ @function CTFontCreateWithGraphicsFont
1361
+ @abstract Creates a new font reference from a CGFontRef.
1362
+
1363
+ @param graphicsFont
1364
+ A valid CGFontRef.
1365
+
1366
+ @param size
1367
+ The point size for the font reference. If 0.0 is specified, the default font size of 12.0 will be used.
1368
+
1369
+ @param matrix
1370
+ The transformation matrix for the font. If unspecified, the identity matrix will be used. Optional.
1371
+
1372
+ @param attributes
1373
+ A CTFontDescriptorRef containing additional attributes that should be matched. Optional.
1374
+
1375
+ @result This function returns a new font reference for an existing CGFontRef with the specified size, matrix, and additional attributes.
1376
+ */
1377
+ CT_EXPORT
1378
+ CTFontRef CTFontCreateWithGraphicsFont(
1379
+ CGFontRef graphicsFont,
1380
+ CGFloat size,
1381
+ const CGAffineTransform * _Nullable matrix,
1382
+ CTFontDescriptorRef _Nullable attributes ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1383
+
1384
+ #ifndef ATSFONTREF_DEFINED
1385
+ typedef UInt32 ATSFontRef;
1386
+ #define ATSFONTREF_DEFINED 1
1387
+ #endif
1388
+
1389
+ /*!
1390
+ @function CTFontGetPlatformFont
1391
+ @abstract Returns the ATSFontRef and attributes.
1392
+
1393
+ @param font
1394
+ The font reference.
1395
+
1396
+ @param attributes
1397
+ A pointer to a CTFontDescriptorRef to receive a font descriptor containing additional attributes. Can be NULL. Must be released by caller.
1398
+
1399
+ @result This function returns a an ATSFontRef for the given font reference. Additional attributes from the font will be passed back as a font descriptor via the attributes parameter.
1400
+ */
1401
+
1402
+ CT_EXPORT
1403
+ ATSFontRef CTFontGetPlatformFont(
1404
+ CTFontRef font,
1405
+ CTFontDescriptorRef _Nullable * _Nullable attributes ) CT_DEPRECATED("ATS is deprecated", macos(10.5, 11.0)) CT_UNAVAILABLE(ios, watchos, tvos);
1406
+
1407
+ /*!
1408
+ @function CTFontCreateWithPlatformFont
1409
+ @abstract Creates a new font reference from an ATSFontRef.
1410
+
1411
+ @param platformFont
1412
+ A valid ATSFontRef.
1413
+
1414
+ @param size
1415
+ The point size for the font reference. If 0.0 is specified, the default font size of 12.0 will be used.
1416
+
1417
+ @param matrix
1418
+ The transformation matrix for the font. If unspecified, the identity matrix will be used. Optional.
1419
+
1420
+ @param attributes
1421
+ A CTFontDescriptorRef containing additional attributes that should be matched. Optional.
1422
+
1423
+ @result This function returns a new font reference for an ATSFontRef with the specified size, matrix, and additional attributes.
1424
+ */
1425
+ CT_EXPORT
1426
+ CTFontRef _Nullable CTFontCreateWithPlatformFont(
1427
+ ATSFontRef platformFont,
1428
+ CGFloat size,
1429
+ const CGAffineTransform * _Nullable matrix,
1430
+ CTFontDescriptorRef _Nullable attributes ) CT_DEPRECATED("ATS is deprecated", macos(10.5, 11.0)) CT_UNAVAILABLE(ios, watchos, tvos);
1431
+
1432
+ /*!
1433
+ @function CTFontCreateWithQuickdrawInstance
1434
+ @abstract Returns a font reference for the given Quickdraw instance.
1435
+
1436
+ @discussion This function is provided for compatibility support between Core Text and clients needing to support Quickdraw font references.
1437
+
1438
+ @param name
1439
+ The Quickdraw font name. If NULL or zero length, an identifier must be specified instead.
1440
+
1441
+ @param identifier
1442
+ The Quickdraw font identifier. If 0, a name must be specified instead.
1443
+
1444
+ @param style
1445
+ The Quickdraw font style.
1446
+
1447
+ @param size
1448
+ The point size for the font reference. If 0.0 is specified, the default size of 12.0 is used.
1449
+
1450
+ @result This function returns the best font instance matching the Quickdraw instance information.
1451
+ */
1452
+ CT_EXPORT
1453
+ CTFontRef CTFontCreateWithQuickdrawInstance(
1454
+ ConstStr255Param _Nullable name,
1455
+ int16_t identifier,
1456
+ uint8_t style,
1457
+ CGFloat size ) CT_DEPRECATED("Quickdraw font references are deprecated", macos(10.5, 10.15)) CT_UNAVAILABLE(ios, watchos, tvos);
1458
+
1459
+ /*! --------------------------------------------------------------------------
1460
+ @group Font Tables
1461
+ *///--------------------------------------------------------------------------
1462
+
1463
+ #pragma clang diagnostic push
1464
+ #pragma clang diagnostic ignored "-Wfour-char-constants"
1465
+
1466
+ enum {
1467
+ kCTFontTableBASE = 'BASE', // Baseline data
1468
+ kCTFontTableCBDT = 'CBDT', // Color bitmap data
1469
+ kCTFontTableCBLC = 'CBLC', // Color bitmap location data
1470
+ kCTFontTableCFF = 'CFF ', // Compact Font Format 1.0
1471
+ kCTFontTableCFF2 = 'CFF2', // Compact Font Format 2.0
1472
+ kCTFontTableCOLR = 'COLR', // Color table
1473
+ kCTFontTableCPAL = 'CPAL', // Color palette table
1474
+ kCTFontTableDSIG = 'DSIG', // Digital signature
1475
+ kCTFontTableEBDT = 'EBDT', // Embedded bitmap data
1476
+ kCTFontTableEBLC = 'EBLC', // Embedded bitmap location data
1477
+ kCTFontTableEBSC = 'EBSC', // Embedded bitmap scaling data
1478
+ kCTFontTableGDEF = 'GDEF', // Glyph definition data
1479
+ kCTFontTableGPOS = 'GPOS', // Glyph positioning data
1480
+ kCTFontTableGSUB = 'GSUB', // Glyph substitution data
1481
+ kCTFontTableHVAR = 'HVAR', // Horizontal metrics variations
1482
+ kCTFontTableJSTF = 'JSTF', // Justification data
1483
+ kCTFontTableLTSH = 'LTSH', // Linear threshold data
1484
+ kCTFontTableMATH = 'MATH', // Math layout data
1485
+ kCTFontTableMERG = 'MERG', // Merge
1486
+ kCTFontTableMVAR = 'MVAR', // Metrics variations
1487
+ kCTFontTableOS2 = 'OS/2', // OS/2 and Windows specific metrics
1488
+ kCTFontTablePCLT = 'PCLT', // PCL 5 data
1489
+ kCTFontTableSTAT = 'STAT', // Style attributes
1490
+ kCTFontTableSVG = 'SVG ', // Scalable vector graphics
1491
+ kCTFontTableVDMX = 'VDMX', // Vertical device metrics
1492
+ kCTFontTableVORG = 'VORG', // Vertical origin
1493
+ kCTFontTableVVAR = 'VVAR', // Vertical metrics variations
1494
+ kCTFontTableZapf = 'Zapf', // Glyph reference
1495
+ kCTFontTableAcnt = 'acnt', // Accent attachment
1496
+ kCTFontTableAnkr = 'ankr', // Anchor points
1497
+ kCTFontTableAvar = 'avar', // Axis variations
1498
+ kCTFontTableBdat = 'bdat', // Bitmap data
1499
+ kCTFontTableBhed = 'bhed', // Bitmap font header
1500
+ kCTFontTableBloc = 'bloc', // Bitmap location
1501
+ kCTFontTableBsln = 'bsln', // Baseline
1502
+ kCTFontTableCidg = 'cidg', // CID to glyph mapping
1503
+ kCTFontTableCmap = 'cmap', // Character to glyph mapping
1504
+ kCTFontTableCvar = 'cvar', // CVT variations
1505
+ kCTFontTableCvt = 'cvt ', // Control value table
1506
+ kCTFontTableFdsc = 'fdsc', // Font descriptor
1507
+ kCTFontTableFeat = 'feat', // Layout feature
1508
+ kCTFontTableFmtx = 'fmtx', // Font metrics
1509
+ kCTFontTableFond = 'fond', // 'FOND' and 'NFNT' data
1510
+ kCTFontTableFpgm = 'fpgm', // Font program
1511
+ kCTFontTableFvar = 'fvar', // Font variations
1512
+ kCTFontTableGasp = 'gasp', // Grid-fitting/scan-conversion
1513
+ kCTFontTableGlyf = 'glyf', // Glyph data
1514
+ kCTFontTableGvar = 'gvar', // Glyph variations
1515
+ kCTFontTableHdmx = 'hdmx', // Horizontal device metrics
1516
+ kCTFontTableHead = 'head', // Font header
1517
+ kCTFontTableHhea = 'hhea', // Horizontal header
1518
+ kCTFontTableHmtx = 'hmtx', // Horizontal metrics
1519
+ kCTFontTableHsty = 'hsty', // Horizontal style
1520
+ kCTFontTableJust = 'just', // Justification
1521
+ kCTFontTableKern = 'kern', // Kerning
1522
+ kCTFontTableKerx = 'kerx', // Extended kerning
1523
+ kCTFontTableLcar = 'lcar', // Ligature caret
1524
+ kCTFontTableLoca = 'loca', // Index to location
1525
+ kCTFontTableLtag = 'ltag', // Language tags
1526
+ kCTFontTableMaxp = 'maxp', // Maximum profile
1527
+ kCTFontTableMeta = 'meta', // Metadata
1528
+ kCTFontTableMort = 'mort', // Morph
1529
+ kCTFontTableMorx = 'morx', // Extended morph
1530
+ kCTFontTableName = 'name', // Naming table
1531
+ kCTFontTableOpbd = 'opbd', // Optical bounds
1532
+ kCTFontTablePost = 'post', // PostScript information
1533
+ kCTFontTablePrep = 'prep', // CVT program
1534
+ kCTFontTableProp = 'prop', // Properties
1535
+ kCTFontTableSbit = 'sbit', // Bitmap data
1536
+ kCTFontTableSbix = 'sbix', // Standard bitmap graphics
1537
+ kCTFontTableTrak = 'trak', // Tracking
1538
+ kCTFontTableVhea = 'vhea', // Vertical header
1539
+ kCTFontTableVmtx = 'vmtx', // Vertical metrics
1540
+ kCTFontTableXref = 'xref' // Cross-reference
1541
+ };
1542
+ typedef FourCharCode CTFontTableTag;
1543
+ #pragma clang diagnostic pop
1544
+
1545
+ typedef CF_OPTIONS(uint32_t, CTFontTableOptions) {
1546
+ kCTFontTableOptionNoOptions = 0,
1547
+ kCTFontTableOptionExcludeSynthetic CT_ENUM_DEPRECATED("Unsupported", macos(10.5, 10.8), ios(3.2, 6.0)) CT_ENUM_UNAVAILABLE(watchos, tvos) = (1 << 0)
1548
+ };
1549
+
1550
+ /*!
1551
+ @function CTFontCopyAvailableTables
1552
+ @abstract Returns an array of font table tags.
1553
+
1554
+ @param font
1555
+ The font reference.
1556
+
1557
+ @param options
1558
+ The options used when copying font tables.
1559
+
1560
+ @result This function returns an array of CTFontTableTag values for the given font and the supplied options. The returned set will contain unboxed values, which may be extracted like so:
1561
+ <code>CTFontTableTag tag = (CTFontTableTag)(uintptr_t)CFArrayGetValueAtIndex(tags, index);</code>
1562
+ */
1563
+ CT_EXPORT
1564
+ CFArrayRef _Nullable CTFontCopyAvailableTables(
1565
+ CTFontRef font,
1566
+ CTFontTableOptions options ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1567
+
1568
+ /*!
1569
+ @function CTFontHasTable
1570
+ @abstract Determine whether a table is present in a font.
1571
+ @discussion This is a convenience function to avoid requesting an array of table tags or any table data. It behaves according as if using `kCTFontTableOptionNoOptions`.
1572
+
1573
+ @param font
1574
+ The font reference.
1575
+
1576
+ @param tag
1577
+ The font table identifier as a CTFontTableTag.
1578
+
1579
+ @result Returns true if the call was successful and the requested table is present.
1580
+ */
1581
+ CT_EXPORT
1582
+ bool CTFontHasTable(CTFontRef font, CTFontTableTag tag) CT_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
1583
+
1584
+ /*!
1585
+ @function CTFontCopyTable
1586
+ @abstract Returns a reference to the font table data.
1587
+
1588
+ @param font
1589
+ The font reference.
1590
+
1591
+ @param table
1592
+ The font table identifier as a CTFontTableTag.
1593
+
1594
+ @param options
1595
+ The options used when copying font table.
1596
+
1597
+ @result This function returns a retained reference to the font table data as CFDataRef or NULL if the table is not present.
1598
+ */
1599
+ CT_EXPORT
1600
+ CFDataRef _Nullable CTFontCopyTable(
1601
+ CTFontRef font,
1602
+ CTFontTableTag table,
1603
+ CTFontTableOptions options ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1604
+
1605
+
1606
+ /*!
1607
+ @function CTFontDrawGlyphs
1608
+ @abstract Renders the given glyphs from the CTFont at the given positions in the CGContext.
1609
+ @discussion This function will modify the CGContext's font, text size, and text matrix if specified in the CTFont. These attributes will not be restored.
1610
+ The given glyphs should be the result of proper Unicode text layout operations (such as CTLine). Results from CTFontGetGlyphsForCharacters (or similar APIs) do not perform any Unicode text layout.
1611
+
1612
+ @param font
1613
+ The font to render glyphs from. If the font has a size or matrix attribute, the CGContext will be set with these values.
1614
+
1615
+ @param glyphs
1616
+ The glyphs to be rendered. See above discussion of how the glyphs should be derived.
1617
+
1618
+ @param positions
1619
+ The positions (origins) for each glyph. The positions are in user space. The number of positions passed in must be equivalent to the number of glyphs.
1620
+
1621
+ @param count
1622
+ The number of glyphs to be rendered from the glyphs array.
1623
+
1624
+ @param context
1625
+ CGContext used to render the glyphs.
1626
+ */
1627
+ CT_EXPORT
1628
+ void CTFontDrawGlyphs(
1629
+ CTFontRef font,
1630
+ const CGGlyph glyphs[_Nonnull],
1631
+ const CGPoint positions[_Nonnull],
1632
+ size_t count,
1633
+ CGContextRef context ) CT_AVAILABLE(macos(10.7), ios(4.2), watchos(2.0), tvos(9.0));
1634
+
1635
+
1636
+ /*!
1637
+ @function CTFontGetLigatureCaretPositions
1638
+ @abstract Returns caret positions within a glyph.
1639
+ @discussion This function is used to obtain caret positions for a specific glyph.
1640
+ The return value is the max number of positions possible, and the function
1641
+ will populate the caller's positions buffer with available positions if possible.
1642
+ This function may not be able to produce positions if the font does not
1643
+ have the appropriate data, in which case it will return 0.
1644
+
1645
+ @param font
1646
+ The font reference.
1647
+
1648
+ @param glyph
1649
+ The glyph.
1650
+
1651
+ @param positions
1652
+ A buffer of at least maxPositions to receive the ligature caret positions for
1653
+ the glyph.
1654
+
1655
+ @param maxPositions
1656
+ The maximum number of positions to return.
1657
+
1658
+ @result Returns the number of caret positions for the specified glyph.
1659
+ */
1660
+ CT_EXPORT
1661
+ CFIndex CTFontGetLigatureCaretPositions(
1662
+ CTFontRef font,
1663
+ CGGlyph glyph,
1664
+ CGFloat positions[_Nullable],
1665
+ CFIndex maxPositions ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
1666
+
1667
+ /*! --------------------------------------------------------------------------
1668
+ @group Baseline Alignment
1669
+ *///--------------------------------------------------------------------------
1670
+
1671
+ /*!
1672
+ @defined kCTBaselineClassRoman
1673
+
1674
+ @abstract Key to reference the Roman baseline class.
1675
+
1676
+ @discussion This key can be used with a baseline info dictionary to offset to the Roman baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
1677
+ */
1678
+ CT_EXPORT const CFStringRef kCTBaselineClassRoman CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1679
+
1680
+ /*!
1681
+ @defined kCTBaselineClassIdeographicCentered
1682
+
1683
+ @abstract Key to reference the Ideographic Centered baseline class.
1684
+
1685
+ @discussion This key can be used with a baseline info dictionary to offset to the Ideographic Centered baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
1686
+ */
1687
+ CT_EXPORT const CFStringRef kCTBaselineClassIdeographicCentered CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1688
+
1689
+ /*!
1690
+ @defined kCTBaselineClassIdeographicLow
1691
+
1692
+ @abstract Key to reference the Ideographic Low baseline class.
1693
+
1694
+ @discussion This key can be used with a baseline info dictionary to offset to the Ideographic Low baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
1695
+ */
1696
+ CT_EXPORT const CFStringRef kCTBaselineClassIdeographicLow CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1697
+
1698
+ /*!
1699
+ @defined kCTBaselineClassIdeographicHigh
1700
+
1701
+ @abstract Key to reference the Ideographic High baseline class.
1702
+
1703
+ @discussion This key can be used with a baseline info dictionary to offset to the Ideographic High baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
1704
+ */
1705
+ CT_EXPORT const CFStringRef kCTBaselineClassIdeographicHigh CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1706
+
1707
+ /*!
1708
+ @defined kCTBaselineClassHanging
1709
+
1710
+ @abstract Key to reference the Hanging baseline class.
1711
+
1712
+ @discussion This key can be used with a baseline info dictionary to offset to the Hanging baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
1713
+ */
1714
+ CT_EXPORT const CFStringRef kCTBaselineClassHanging CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1715
+
1716
+ /*!
1717
+ @defined kCTBaselineClassMath
1718
+
1719
+ @abstract Key to reference the Math baseline class.
1720
+
1721
+ @discussion This key can be used with a baseline info dictionary to offset to the Math baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
1722
+ */
1723
+ CT_EXPORT const CFStringRef kCTBaselineClassMath CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1724
+
1725
+ /*!
1726
+ @defined kCTBaselineReferenceFont
1727
+
1728
+ @abstract Key to reference a font for the reference baseline.
1729
+
1730
+ @discussion This key can be used to specify a font for the reference baseline. The value is a CTFontRef or the kCTBaselineOriginalFont constant.
1731
+ */
1732
+ CT_EXPORT const CFStringRef kCTBaselineReferenceFont CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1733
+
1734
+ /*!
1735
+ @defined kCTBaselineOriginalFont
1736
+
1737
+ @abstract Use the original font for setting the reference baseline.
1738
+
1739
+ @discussion This constant can be used as the value for kCTBaselineReferenceFont to specify that the original font should be used for the reference baseline.
1740
+ */
1741
+ CT_EXPORT const CFStringRef kCTBaselineOriginalFont CT_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1742
+
1743
+
1744
+ /*! --------------------------------------------------------------------------
1745
+ @group Adaptive Image Glyphs
1746
+ *///--------------------------------------------------------------------------
1747
+
1748
+ #if defined(__OBJC__)
1749
+ @protocol CTAdaptiveImageProviding;
1750
+ #endif
1751
+
1752
+ /*!
1753
+ @function CTFontGetTypographicBoundsForAdaptiveImageProvider
1754
+ @abstract Returns metrics needed by clients performing their own typesetting of an adaptive image glyph.
1755
+
1756
+ @discussion Adaptive image glyphs are handled automatically when using an attributed string with system frameworks.
1757
+ Clients performing their own typesetting can use this function to calculate the appropriate metrics for an adaptive image glyph,
1758
+ including the ascent and descent to be used instead of those applicable to the font on its own.
1759
+
1760
+ @param font
1761
+ The effective font in the range containing the adaptive image glyph.
1762
+
1763
+ @param provider
1764
+ An object conforming to the CTAdaptiveImageProviding protocol. Default results will be returned in the absence of a provider, on the assumption an image is not yet available.
1765
+
1766
+ @result The typographic bounds in points expressed as a rect whose width corresponds to the advance width, maximum Y corresponds to the ascent (above the baseline), and minimum Y corresponds to the descent (below the baseline).
1767
+
1768
+ @seealso CTAdaptiveImageProviding
1769
+ */
1770
+ #if defined(__OBJC__)
1771
+ CT_EXPORT
1772
+ CGRect CTFontGetTypographicBoundsForAdaptiveImageProvider(CTFontRef font, id<CTAdaptiveImageProviding> _Nullable provider) CT_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0));
1773
+ #else
1774
+ CT_EXPORT
1775
+ CGRect CTFontGetTypographicBoundsForAdaptiveImageProvider(CTFontRef font, CFTypeRef _Nullable provider) CT_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0));
1776
+ #endif
1777
+
1778
+ /*!
1779
+ @function CTFontDrawImageFromAdaptiveImageProviderAtPoint
1780
+ @abstract Draws the image for a font and adaptive image provider.
1781
+
1782
+ @discussion Adaptive image glyphs are handled automatically when using an attributed string with system frameworks.
1783
+ Clients performing their own typesetting can use this function to display an adaptive image glyph at the given point.
1784
+
1785
+ @param font
1786
+ The effective font in the range containing the adaptive image glyph.
1787
+
1788
+ @param provider
1789
+ An object conforming to the CTAdaptiveImageProviding protocol.
1790
+
1791
+ @param point
1792
+ The position relative to which the adaptive image glyph will be drawn.
1793
+
1794
+ @param context
1795
+ The context in which the adaptive image glyph will be drawn.
1796
+
1797
+ @seealso CTAdaptiveImageProviding
1798
+ */
1799
+ #if defined(__OBJC__)
1800
+ CT_EXPORT
1801
+ void CTFontDrawImageFromAdaptiveImageProviderAtPoint(CTFontRef font, id<CTAdaptiveImageProviding> provider, CGPoint point, CGContextRef context) CT_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0));
1802
+ #else
1803
+ CT_EXPORT
1804
+ void CTFontDrawImageFromAdaptiveImageProviderAtPoint(CTFontRef font, CFTypeRef provider, CGPoint point, CGContextRef context) CT_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0));
1805
+ #endif
1806
+
1807
+ CF_ASSUME_NONNULL_END
1808
+ CF_EXTERN_C_END
1809
+ CF_IMPLICIT_BRIDGING_DISABLED
1810
+
1811
+ #endif