FontSync.pas 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. {
  2. File: QD/FontSync.h
  3. Contains: Public interface for FontSync
  4. Version: Quickdraw-262~1
  5. Copyright: © 1999-2008 by Apple Inc. all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://www.freepascal.org/bugs.html
  9. }
  10. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2009 }
  11. {
  12. Modified for use with Free Pascal
  13. Version 308
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  17. {$mode macpas}
  18. {$packenum 1}
  19. {$macro on}
  20. {$inline on}
  21. {$calling mwpascal}
  22. unit FontSync;
  23. interface
  24. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  25. {$setc GAP_INTERFACES_VERSION := $0308}
  26. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  27. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  28. {$endc}
  29. {$ifc defined CPUPOWERPC and defined CPUI386}
  30. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  31. {$endc}
  32. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  33. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  34. {$endc}
  35. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  36. {$setc __ppc__ := 1}
  37. {$elsec}
  38. {$setc __ppc__ := 0}
  39. {$endc}
  40. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  41. {$setc __ppc64__ := 1}
  42. {$elsec}
  43. {$setc __ppc64__ := 0}
  44. {$endc}
  45. {$ifc not defined __i386__ and defined CPUI386}
  46. {$setc __i386__ := 1}
  47. {$elsec}
  48. {$setc __i386__ := 0}
  49. {$endc}
  50. {$ifc not defined __x86_64__ and defined CPUX86_64}
  51. {$setc __x86_64__ := 1}
  52. {$elsec}
  53. {$setc __x86_64__ := 0}
  54. {$endc}
  55. {$ifc not defined __arm__ and defined CPUARM}
  56. {$setc __arm__ := 1}
  57. {$elsec}
  58. {$setc __arm__ := 0}
  59. {$endc}
  60. {$ifc defined cpu64}
  61. {$setc __LP64__ := 1}
  62. {$elsec}
  63. {$setc __LP64__ := 0}
  64. {$endc}
  65. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  66. {$error Conflicting definitions for __ppc__ and __i386__}
  67. {$endc}
  68. {$ifc defined __ppc__ and __ppc__}
  69. {$setc TARGET_CPU_PPC := TRUE}
  70. {$setc TARGET_CPU_PPC64 := FALSE}
  71. {$setc TARGET_CPU_X86 := FALSE}
  72. {$setc TARGET_CPU_X86_64 := FALSE}
  73. {$setc TARGET_CPU_ARM := FALSE}
  74. {$setc TARGET_OS_MAC := TRUE}
  75. {$setc TARGET_OS_IPHONE := FALSE}
  76. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  77. {$setc TARGET_OS_EMBEDDED := FALSE}
  78. {$elifc defined __ppc64__ and __ppc64__}
  79. {$setc TARGET_CPU_PPC := FALSE}
  80. {$setc TARGET_CPU_PPC64 := TRUE}
  81. {$setc TARGET_CPU_X86 := FALSE}
  82. {$setc TARGET_CPU_X86_64 := FALSE}
  83. {$setc TARGET_CPU_ARM := FALSE}
  84. {$setc TARGET_OS_MAC := TRUE}
  85. {$setc TARGET_OS_IPHONE := FALSE}
  86. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  87. {$setc TARGET_OS_EMBEDDED := FALSE}
  88. {$elifc defined __i386__ and __i386__}
  89. {$setc TARGET_CPU_PPC := FALSE}
  90. {$setc TARGET_CPU_PPC64 := FALSE}
  91. {$setc TARGET_CPU_X86 := TRUE}
  92. {$setc TARGET_CPU_X86_64 := FALSE}
  93. {$setc TARGET_CPU_ARM := FALSE}
  94. {$ifc defined(iphonesim)}
  95. {$setc TARGET_OS_MAC := FALSE}
  96. {$setc TARGET_OS_IPHONE := TRUE}
  97. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  98. {$elsec}
  99. {$setc TARGET_OS_MAC := TRUE}
  100. {$setc TARGET_OS_IPHONE := FALSE}
  101. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  102. {$endc}
  103. {$setc TARGET_OS_EMBEDDED := FALSE}
  104. {$elifc defined __x86_64__ and __x86_64__}
  105. {$setc TARGET_CPU_PPC := FALSE}
  106. {$setc TARGET_CPU_PPC64 := FALSE}
  107. {$setc TARGET_CPU_X86 := FALSE}
  108. {$setc TARGET_CPU_X86_64 := TRUE}
  109. {$setc TARGET_CPU_ARM := FALSE}
  110. {$setc TARGET_OS_MAC := TRUE}
  111. {$setc TARGET_OS_IPHONE := FALSE}
  112. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  113. {$setc TARGET_OS_EMBEDDED := FALSE}
  114. {$elifc defined __arm__ and __arm__}
  115. {$setc TARGET_CPU_PPC := FALSE}
  116. {$setc TARGET_CPU_PPC64 := FALSE}
  117. {$setc TARGET_CPU_X86 := FALSE}
  118. {$setc TARGET_CPU_X86_64 := FALSE}
  119. {$setc TARGET_CPU_ARM := TRUE}
  120. { will require compiler define when/if other Apple devices with ARM cpus ship }
  121. {$setc TARGET_OS_MAC := FALSE}
  122. {$setc TARGET_OS_IPHONE := TRUE}
  123. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  124. {$setc TARGET_OS_EMBEDDED := TRUE}
  125. {$elsec}
  126. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  127. {$endc}
  128. {$ifc defined __LP64__ and __LP64__ }
  129. {$setc TARGET_CPU_64 := TRUE}
  130. {$elsec}
  131. {$setc TARGET_CPU_64 := FALSE}
  132. {$endc}
  133. {$ifc defined FPC_BIG_ENDIAN}
  134. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  135. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  136. {$elifc defined FPC_LITTLE_ENDIAN}
  137. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  138. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  139. {$elsec}
  140. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  141. {$endc}
  142. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  143. {$setc CALL_NOT_IN_CARBON := FALSE}
  144. {$setc OLDROUTINENAMES := FALSE}
  145. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  146. {$setc OPAQUE_UPP_TYPES := TRUE}
  147. {$setc OTCARBONAPPLICATION := TRUE}
  148. {$setc OTKERNEL := FALSE}
  149. {$setc PM_USE_SESSION_APIS := TRUE}
  150. {$setc TARGET_API_MAC_CARBON := TRUE}
  151. {$setc TARGET_API_MAC_OS8 := FALSE}
  152. {$setc TARGET_API_MAC_OSX := TRUE}
  153. {$setc TARGET_CARBON := TRUE}
  154. {$setc TARGET_CPU_68K := FALSE}
  155. {$setc TARGET_CPU_MIPS := FALSE}
  156. {$setc TARGET_CPU_SPARC := FALSE}
  157. {$setc TARGET_OS_UNIX := FALSE}
  158. {$setc TARGET_OS_WIN32 := FALSE}
  159. {$setc TARGET_RT_MAC_68881 := FALSE}
  160. {$setc TARGET_RT_MAC_CFM := FALSE}
  161. {$setc TARGET_RT_MAC_MACHO := TRUE}
  162. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  163. {$setc TYPE_BOOL := FALSE}
  164. {$setc TYPE_EXTENDED := FALSE}
  165. {$setc TYPE_LONGLONG := TRUE}
  166. uses MacTypes,ATSTypes,Files,Fonts,SFNTTypes,MacErrors;
  167. {$endc} {not MACOSALLINCLUDE}
  168. {$ifc TARGET_OS_MAC}
  169. {$ALIGN POWER}
  170. { Matching Options }
  171. type
  172. FNSMatchOptions = UInt32;
  173. FNSMatchOptionsPtr = ^FNSMatchOptions; { when a VAR xx: FNSMatchOptions parameter can be nil, it is changed to xx: FNSMatchOptionsPtr }
  174. const
  175. kFNSMatchNames = $00000001; { font names must match }
  176. kFNSMatchTechnology = $00000002; { scaler technology must match }
  177. kFNSMatchGlyphs = $00000004; { glyph data must match }
  178. kFNSMatchEncodings = $00000008; { cmaps must match }
  179. kFNSMatchQDMetrics = $00000010; { QuickDraw Text metrics must match }
  180. kFNSMatchATSUMetrics = $00000020; { ATSUI metrics (incl. vertical) must match }
  181. kFNSMatchKerning = $00000040; { kerning data must match }
  182. kFNSMatchWSLayout = $00000080; { WorldScript layout tables must match }
  183. kFNSMatchAATLayout = $00000100; { AAT (incl. OpenType) layout tables must match }
  184. kFNSMatchPrintEncoding = $00000200; { PostScript font and glyph names and re-encoding vector must match }
  185. kFNSMissingDataNoMatch = $80000000; { treat missing data as mismatch }
  186. kFNSMatchAll = $FFFFFFFF; { everything must match }
  187. kFNSMatchDefaults = 0; { use global default match options }
  188. {$ifc not TARGET_CPU_64}
  189. {
  190. * FNSMatchDefaultsGet() *** DEPRECATED ***
  191. *
  192. * Availability:
  193. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  194. * CarbonLib: in CarbonLib 1.0 and later
  195. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  196. }
  197. function FNSMatchDefaultsGet: FNSMatchOptions; external name '_FNSMatchDefaultsGet';
  198. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  199. { Version control }
  200. {$endc} {not TARGET_CPU_64}
  201. type
  202. FNSObjectVersion = UInt32;
  203. const
  204. kFNSVersionDontCare = 0;
  205. kFNSCurSysInfoVersion = 1;
  206. { No features defined yet.}
  207. type
  208. FNSFeatureFlags = UInt32;
  209. {
  210. The FontSync library version number is binary-coded decimal:
  211. 8 bits of major version, 4 minor version and 4 bits revision.
  212. }
  213. type
  214. FNSSysInfoPtr = ^FNSSysInfo;
  215. FNSSysInfo = record
  216. iSysInfoVersion: FNSObjectVersion; { fill this in before calling FNSSysInfoGet}
  217. oFeatures: FNSFeatureFlags;
  218. oCurRefVersion: FNSObjectVersion;
  219. oMinRefVersion: FNSObjectVersion;
  220. oCurProfileVersion: FNSObjectVersion;
  221. oMinProfileVersion: FNSObjectVersion;
  222. oFontSyncVersion: UInt16;
  223. end;
  224. {$ifc not TARGET_CPU_64}
  225. {
  226. * FNSSysInfoGet() *** DEPRECATED ***
  227. *
  228. * Availability:
  229. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  230. * CarbonLib: in CarbonLib 1.0 and later
  231. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  232. }
  233. procedure FNSSysInfoGet( var ioInfo: FNSSysInfo ); external name '_FNSSysInfoGet';
  234. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  235. { FontSync References }
  236. {$endc} {not TARGET_CPU_64}
  237. type
  238. FNSFontReference = ^SInt32; { an opaque type }
  239. FNSFontReferencePtr = ^FNSFontReference; { when a var xx:FNSFontReference parameter can be nil, it is changed to xx: FNSFontReferencePtr }
  240. {$ifc not TARGET_CPU_64}
  241. {
  242. * FNSReferenceGetVersion() *** DEPRECATED ***
  243. *
  244. * Availability:
  245. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  246. * CarbonLib: in CarbonLib 1.0 and later
  247. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  248. }
  249. function FNSReferenceGetVersion( iReference: FNSFontReference; var oVersion: FNSObjectVersion ): OSStatus; external name '_FNSReferenceGetVersion';
  250. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  251. {
  252. * FNSReferenceDispose() *** DEPRECATED ***
  253. *
  254. * Availability:
  255. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  256. * CarbonLib: in CarbonLib 1.0 and later
  257. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  258. }
  259. function FNSReferenceDispose( iReference: FNSFontReference ): OSStatus; external name '_FNSReferenceDispose';
  260. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  261. {
  262. * FNSReferenceMatch() *** DEPRECATED ***
  263. *
  264. * Availability:
  265. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  266. * CarbonLib: in CarbonLib 1.0 and later
  267. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  268. }
  269. function FNSReferenceMatch( iReference1: FNSFontReference; iReference2: FNSFontReference; iOptions: FNSMatchOptions; oFailedMatchOptions: FNSMatchOptionsPtr { can be NULL } ): OSStatus; external name '_FNSReferenceMatch';
  270. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  271. {
  272. * FNSReferenceFlattenedSize() *** DEPRECATED ***
  273. *
  274. * Availability:
  275. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  276. * CarbonLib: in CarbonLib 1.0 and later
  277. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  278. }
  279. function FNSReferenceFlattenedSize( iReference: FNSFontReference; var oFlattenedSize: ByteCount ): OSStatus; external name '_FNSReferenceFlattenedSize';
  280. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  281. {
  282. * FNSReferenceFlatten() *** DEPRECATED ***
  283. *
  284. * Availability:
  285. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  286. * CarbonLib: in CarbonLib 1.0 and later
  287. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  288. }
  289. function FNSReferenceFlatten( iReference: FNSFontReference; oFlatReference: UnivPtr { can be NULL }; oFlattenedSize: ByteCountPtr { can be NULL } ): OSStatus; external name '_FNSReferenceFlatten';
  290. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  291. {
  292. * FNSReferenceUnflatten() *** DEPRECATED ***
  293. *
  294. * Availability:
  295. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  296. * CarbonLib: in CarbonLib 1.0 and later
  297. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  298. }
  299. function FNSReferenceUnflatten( iFlatReference: {const} UnivPtr; iFlattenedSize: ByteCount; var oReference: FNSFontReference ): OSStatus; external name '_FNSReferenceUnflatten';
  300. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  301. { FontSync Profiles }
  302. {$endc} {not TARGET_CPU_64}
  303. const
  304. kFNSCreatorDefault = 0;
  305. kFNSProfileFileType = FourCharCode('fnsp');
  306. type
  307. FNSFontProfile = ^SInt32; { an opaque type }
  308. FNSFontProfilePtr = ^FNSFontProfile; { when a var xx:FNSFontProfile parameter can be nil, it is changed to xx: FNSFontProfilePtr }
  309. {$ifc not TARGET_CPU_64}
  310. {
  311. * FNSProfileCreate() *** DEPRECATED ***
  312. *
  313. * Availability:
  314. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  315. * CarbonLib: in CarbonLib 1.0 and later
  316. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  317. }
  318. function FNSProfileCreate( const (*var*) iFile: FSSpec; iCreator: FourCharCode; iEstNumRefs: ItemCount; iDesiredVersion: FNSObjectVersion; var oProfile: FNSFontProfile ): OSStatus; external name '_FNSProfileCreate';
  319. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  320. {
  321. * FNSProfileOpen() *** DEPRECATED ***
  322. *
  323. * Availability:
  324. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  325. * CarbonLib: in CarbonLib 1.0 and later
  326. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  327. }
  328. function FNSProfileOpen( const (*var*) iFile: FSSpec; iOpenForWrite: Boolean; var oProfile: FNSFontProfile ): OSStatus; external name '_FNSProfileOpen';
  329. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  330. {
  331. * FNSProfileCreateWithFSRef() *** DEPRECATED ***
  332. *
  333. * Availability:
  334. * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  335. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.1 and later
  336. * Non-Carbon CFM: not available
  337. }
  338. function FNSProfileCreateWithFSRef( const (*var*) iParentDirectory: FSRef; iNameLength: UniCharCount; iName: ConstUniCharPtr; iCreator: FourCharCode; iEstNumRefs: ItemCount; iDesiredVersion: FNSObjectVersion; var oProfile: FNSFontProfile ): OSStatus; external name '_FNSProfileCreateWithFSRef';
  339. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  340. {
  341. * FNSProfileOpenWithFSRef() *** DEPRECATED ***
  342. *
  343. * Availability:
  344. * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  345. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.1 and later
  346. * Non-Carbon CFM: not available
  347. }
  348. function FNSProfileOpenWithFSRef( const (*var*) iFile: FSRef; iOpenForWrite: Boolean; var oProfile: FNSFontProfile ): OSStatus; external name '_FNSProfileOpenWithFSRef';
  349. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  350. {
  351. * FNSProfileGetVersion() *** DEPRECATED ***
  352. *
  353. * Availability:
  354. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  355. * CarbonLib: in CarbonLib 1.0 and later
  356. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  357. }
  358. function FNSProfileGetVersion( iProfile: FNSFontProfile; var oVersion: FNSObjectVersion ): OSStatus; external name '_FNSProfileGetVersion';
  359. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  360. {
  361. * FNSProfileCompact() *** DEPRECATED ***
  362. *
  363. * Availability:
  364. * Mac OS X: in in ApplicationServices.framework [32-bit only] but deprecated in LeopardX
  365. * CarbonLib: in CarbonLib 1.0 and later
  366. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  367. }
  368. function FNSProfileCompact( iProfile: FNSFontProfile ): OSStatus; external name '_FNSProfileCompact';
  369. {
  370. * FNSProfileClose() *** DEPRECATED ***
  371. *
  372. * Availability:
  373. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  374. * CarbonLib: in CarbonLib 1.0 and later
  375. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  376. }
  377. function FNSProfileClose( iProfile: FNSFontProfile ): OSStatus; external name '_FNSProfileClose';
  378. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  379. {
  380. * FNSProfileAddReference() *** DEPRECATED ***
  381. *
  382. * Availability:
  383. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  384. * CarbonLib: in CarbonLib 1.0 and later
  385. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  386. }
  387. function FNSProfileAddReference( iProfile: FNSFontProfile; iReference: FNSFontReference ): OSStatus; external name '_FNSProfileAddReference';
  388. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  389. {
  390. * FNSProfileRemoveReference() *** DEPRECATED ***
  391. *
  392. * Availability:
  393. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  394. * CarbonLib: in CarbonLib 1.0 and later
  395. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  396. }
  397. function FNSProfileRemoveReference( iProfile: FNSFontProfile; iReference: FNSFontReference ): OSStatus; external name '_FNSProfileRemoveReference';
  398. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  399. {
  400. * FNSProfileRemoveIndReference() *** DEPRECATED ***
  401. *
  402. * Availability:
  403. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  404. * CarbonLib: in CarbonLib 1.0 and later
  405. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  406. }
  407. function FNSProfileRemoveIndReference( iProfile: FNSFontProfile; iIndex: UInt32 ): OSStatus; external name '_FNSProfileRemoveIndReference';
  408. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  409. {
  410. * FNSProfileClear() *** DEPRECATED ***
  411. *
  412. * Availability:
  413. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  414. * CarbonLib: in CarbonLib 1.0 and later
  415. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  416. }
  417. function FNSProfileClear( iProfile: FNSFontProfile ): OSStatus; external name '_FNSProfileClear';
  418. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  419. {
  420. * FNSProfileCountReferences() *** DEPRECATED ***
  421. *
  422. * Availability:
  423. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  424. * CarbonLib: in CarbonLib 1.0 and later
  425. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  426. }
  427. function FNSProfileCountReferences( iProfile: FNSFontProfile; var oCount: ItemCount ): OSStatus; external name '_FNSProfileCountReferences';
  428. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  429. {
  430. * FNSProfileGetIndReference() *** DEPRECATED ***
  431. *
  432. * Availability:
  433. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  434. * CarbonLib: in CarbonLib 1.0 and later
  435. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  436. }
  437. function FNSProfileGetIndReference( iProfile: FNSFontProfile; iWhichReference: UInt32; var oReference: FNSFontReference ): OSStatus; external name '_FNSProfileGetIndReference';
  438. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  439. {
  440. * FNSProfileMatchReference() *** DEPRECATED ***
  441. *
  442. * Availability:
  443. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  444. * CarbonLib: in CarbonLib 1.0 and later
  445. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  446. }
  447. function FNSProfileMatchReference( iProfile: FNSFontProfile; iReference: FNSFontReference; iMatchOptions: FNSMatchOptions; iOutputSize: ItemCount; oIndices: {variable-size-array} UInt32Ptr { can be NULL }; oNumMatches: ItemCountPtr { can be NULL } ): OSStatus; external name '_FNSProfileMatchReference';
  448. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  449. { Mapping to and from Font Objects }
  450. {
  451. * FNSReferenceCreate() *** DEPRECATED ***
  452. *
  453. * Availability:
  454. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  455. * CarbonLib: in CarbonLib 1.0 and later
  456. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  457. }
  458. function FNSReferenceCreate( iFont: FMFont; iDesiredVersion: FNSObjectVersion; var oReference: FNSFontReference ): OSStatus; external name '_FNSReferenceCreate';
  459. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  460. {
  461. * FNSReferenceMatchFonts() *** DEPRECATED ***
  462. *
  463. * Availability:
  464. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  465. * CarbonLib: in CarbonLib 1.0 and later
  466. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  467. }
  468. function FNSReferenceMatchFonts( iReference: FNSFontReference; iMatchOptions: FNSMatchOptions; iOutputSize: ItemCount; oFonts: {variable-size-array} FMFontPtr { can be NULL }; oNumMatches: ItemCountPtr { can be NULL } ): OSStatus; external name '_FNSReferenceMatchFonts';
  469. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  470. { Mapping to and from Font Families }
  471. {
  472. * FNSReferenceCreateFromFamily() *** DEPRECATED ***
  473. *
  474. * Availability:
  475. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  476. * CarbonLib: in CarbonLib 1.0 and later
  477. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  478. }
  479. function FNSReferenceCreateFromFamily( iFamily: FMFontFamily; iStyle: FMFontStyle; iDesiredVersion: FNSObjectVersion; oReference: FNSFontReferencePtr { can be NULL }; oActualStyle: FMFontStylePtr { can be NULL } ): OSStatus; external name '_FNSReferenceCreateFromFamily';
  480. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  481. {
  482. * FNSReferenceMatchFamilies() *** DEPRECATED ***
  483. *
  484. * Availability:
  485. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  486. * CarbonLib: in CarbonLib 1.0 and later
  487. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  488. }
  489. function FNSReferenceMatchFamilies( iReference: FNSFontReference; iMatchOptions: FNSMatchOptions; iOutputSize: ItemCount; oFonts: {variable-size-array} FMFontFamilyInstancePtr { can be NULL }; oNumMatches: ItemCountPtr { can be NULL } ): OSStatus; external name '_FNSReferenceMatchFamilies';
  490. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  491. { UI Support }
  492. {
  493. * FNSReferenceGetFamilyInfo() *** DEPRECATED ***
  494. *
  495. * Availability:
  496. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  497. * CarbonLib: in CarbonLib 1.0 and later
  498. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  499. }
  500. function FNSReferenceGetFamilyInfo( iReference: FNSFontReference; oFamilyName: StringPtr { can be NULL }; oFamilyNameScript: ScriptCodePtr { can be NULL }; oActualStyle: FMFontStylePtr { can be NULL } ): OSStatus; external name '_FNSReferenceGetFamilyInfo';
  501. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  502. {
  503. * FNSReferenceCountNames() *** DEPRECATED ***
  504. *
  505. * Availability:
  506. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  507. * CarbonLib: in CarbonLib 1.0 and later
  508. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  509. }
  510. function FNSReferenceCountNames( iReference: FNSFontReference; var oNameCount: ItemCount ): OSStatus; external name '_FNSReferenceCountNames';
  511. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  512. {
  513. * FNSReferenceGetIndName() *** DEPRECATED ***
  514. *
  515. * Availability:
  516. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  517. * CarbonLib: in CarbonLib 1.0 and later
  518. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  519. }
  520. function FNSReferenceGetIndName( iReference: FNSFontReference; iFontNameIndex: ItemCount; iMaximumNameLength: ByteCount; oName: Ptr { can be NULL }; oActualNameLength: ByteCountPtr { can be NULL }; oFontNameCode: FontNameCodePtr { can be NULL }; oFontNamePlatform: FontPlatformCodePtr { can be NULL }; oFontNameScript: FontScriptCodePtr { can be NULL }; oFontNameLanguage: FontLanguageCodePtr { can be NULL } ): OSStatus; external name '_FNSReferenceGetIndName';
  521. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  522. {
  523. * FNSReferenceFindName() *** DEPRECATED ***
  524. *
  525. * Availability:
  526. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  527. * CarbonLib: in CarbonLib 1.0 and later
  528. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  529. }
  530. function FNSReferenceFindName( iReference: FNSFontReference; iFontNameCode: FontNameCode; iFontNamePlatform: FontPlatformCode; iFontNameScript: FontScriptCode; iFontNameLanguage: FontLanguageCode; iMaximumNameLength: ByteCount; oName: Ptr { can be NULL }; oActualNameLength: ByteCountPtr { can be NULL }; oFontNameIndex: ItemCountPtr { can be NULL } ): OSStatus; external name '_FNSReferenceFindName';
  531. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  532. { Miscellany }
  533. {
  534. * FNSEnabled() *** DEPRECATED ***
  535. *
  536. * Availability:
  537. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  538. * CarbonLib: in CarbonLib 1.0 and later
  539. * Non-Carbon CFM: in FontSyncLib 1.0 and later
  540. }
  541. function FNSEnabled: Boolean; external name '_FNSEnabled';
  542. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  543. {$endc} {not TARGET_CPU_64}
  544. {$endc} {TARGET_OS_MAC}
  545. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  546. end.
  547. {$endc} {not MACOSALLINCLUDE}