Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

796 lines
19 KiB

  1. /*
  2. File: GXFonts.h
  3. Contains: QuickDraw GX font routine interfaces.
  4. Version: Technology: Quickdraw GX 1.1
  5. Release: QuickTime 7.3
  6. Copyright: (c) 2007 (c) 1994-1997 by Apple Computer, Inc., all rights reserved.
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://developer.apple.com/bugreporter/
  10. */
  11. #ifndef __GXFONTS__
  12. #define __GXFONTS__
  13. #ifndef __CONDITIONALMACROS__
  14. #include <ConditionalMacros.h>
  15. #endif
  16. #ifndef __GXMATH__
  17. #include <GXMath.h>
  18. #endif
  19. #ifndef __GXTYPES__
  20. #include <GXTypes.h>
  21. #endif
  22. #ifndef __SCALERSTREAMTYPES__
  23. #include <ScalerStreamTypes.h>
  24. #endif
  25. #if PRAGMA_ONCE
  26. #pragma once
  27. #endif
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #if PRAGMA_IMPORT
  32. #pragma import on
  33. #endif
  34. #if PRAGMA_STRUCT_ALIGN
  35. #pragma options align=mac68k
  36. #elif PRAGMA_STRUCT_PACKPUSH
  37. #pragma pack(push, 2)
  38. #elif PRAGMA_STRUCT_PACK
  39. #pragma pack(2)
  40. #endif
  41. #if defined(__MWERKS__) && TARGET_CPU_68K
  42. #pragma push
  43. #pragma pointers_in_D0
  44. #endif
  45. #if CALL_NOT_IN_CARBON
  46. /*
  47. * GXNewFont()
  48. *
  49. * Availability:
  50. * Non-Carbon CFM: not available
  51. * CarbonLib: not available
  52. * Mac OS X: not available
  53. */
  54. EXTERN_API_C( gxFont )
  55. GXNewFont(
  56. gxFontStorageTag storage,
  57. gxFontStorageReference reference,
  58. gxFontAttribute attributes) THREEWORDINLINE(0x303C, 0x0201, 0xA832);
  59. /*
  60. * GXGetFont()
  61. *
  62. * Availability:
  63. * Non-Carbon CFM: not available
  64. * CarbonLib: not available
  65. * Mac OS X: not available
  66. */
  67. EXTERN_API_C( gxFontStorageTag )
  68. GXGetFont(
  69. gxFont fontID,
  70. gxFontStorageReference * reference,
  71. gxFontAttribute * attributes) THREEWORDINLINE(0x303C, 0x0202, 0xA832);
  72. /*
  73. * GXFindFont()
  74. *
  75. * Availability:
  76. * Non-Carbon CFM: not available
  77. * CarbonLib: not available
  78. * Mac OS X: not available
  79. */
  80. EXTERN_API_C( gxFont )
  81. GXFindFont(
  82. gxFontStorageTag storage,
  83. gxFontStorageReference reference,
  84. gxFontAttribute * attributes) THREEWORDINLINE(0x303C, 0x0203, 0xA832);
  85. /*
  86. * GXSetFont()
  87. *
  88. * Availability:
  89. * Non-Carbon CFM: not available
  90. * CarbonLib: not available
  91. * Mac OS X: not available
  92. */
  93. EXTERN_API_C( void )
  94. GXSetFont(
  95. gxFont fontID,
  96. gxFontStorageTag storage,
  97. gxFontStorageReference reference,
  98. gxFontAttribute attributes) THREEWORDINLINE(0x303C, 0x0204, 0xA832);
  99. /*
  100. * GXDisposeFont()
  101. *
  102. * Availability:
  103. * Non-Carbon CFM: not available
  104. * CarbonLib: not available
  105. * Mac OS X: not available
  106. */
  107. EXTERN_API_C( void )
  108. GXDisposeFont(gxFont fontID) THREEWORDINLINE(0x303C, 0x0205, 0xA832);
  109. /*
  110. * GXChangedFont()
  111. *
  112. * Availability:
  113. * Non-Carbon CFM: not available
  114. * CarbonLib: not available
  115. * Mac OS X: not available
  116. */
  117. EXTERN_API_C( void )
  118. GXChangedFont(gxFont fontID) THREEWORDINLINE(0x303C, 0x0206, 0xA832);
  119. /*
  120. * GXGetFontFormat()
  121. *
  122. * Availability:
  123. * Non-Carbon CFM: not available
  124. * CarbonLib: not available
  125. * Mac OS X: not available
  126. */
  127. EXTERN_API_C( gxFontFormatTag )
  128. GXGetFontFormat(gxFont fontID) THREEWORDINLINE(0x303C, 0x0207, 0xA832);
  129. /*
  130. * GXGetDefaultFont()
  131. *
  132. * Availability:
  133. * Non-Carbon CFM: not available
  134. * CarbonLib: not available
  135. * Mac OS X: not available
  136. */
  137. EXTERN_API_C( gxFont )
  138. GXGetDefaultFont(void) THREEWORDINLINE(0x303C, 0x0208, 0xA832);
  139. /*
  140. * GXSetDefaultFont()
  141. *
  142. * Availability:
  143. * Non-Carbon CFM: not available
  144. * CarbonLib: not available
  145. * Mac OS X: not available
  146. */
  147. EXTERN_API_C( gxFont )
  148. GXSetDefaultFont(gxFont fontID) THREEWORDINLINE(0x303C, 0x0209, 0xA832);
  149. /*
  150. * GXFindFonts()
  151. *
  152. * Availability:
  153. * Non-Carbon CFM: not available
  154. * CarbonLib: not available
  155. * Mac OS X: not available
  156. */
  157. EXTERN_API_C( long )
  158. GXFindFonts(
  159. gxFont familyID,
  160. gxFontName name,
  161. gxFontPlatform platform,
  162. gxFontScript script,
  163. gxFontLanguage language,
  164. long length,
  165. const unsigned char text[],
  166. long index,
  167. long count,
  168. gxFont fonts[]) THREEWORDINLINE(0x303C, 0x020A, 0xA832);
  169. /*
  170. * GXCountFontGlyphs()
  171. *
  172. * Availability:
  173. * Non-Carbon CFM: not available
  174. * CarbonLib: not available
  175. * Mac OS X: not available
  176. */
  177. EXTERN_API_C( long )
  178. GXCountFontGlyphs(gxFont fontID) THREEWORDINLINE(0x303C, 0x020B, 0xA832);
  179. /*
  180. * GXCountFontTables()
  181. *
  182. * Availability:
  183. * Non-Carbon CFM: not available
  184. * CarbonLib: not available
  185. * Mac OS X: not available
  186. */
  187. EXTERN_API_C( long )
  188. GXCountFontTables(gxFont fontID) THREEWORDINLINE(0x303C, 0x020C, 0xA832);
  189. /*
  190. * GXGetFontTable()
  191. *
  192. * Availability:
  193. * Non-Carbon CFM: not available
  194. * CarbonLib: not available
  195. * Mac OS X: not available
  196. */
  197. EXTERN_API_C( long )
  198. GXGetFontTable(
  199. gxFont fontID,
  200. long index,
  201. void * tableData,
  202. gxFontTableTag * tableTag) THREEWORDINLINE(0x303C, 0x020D, 0xA832);
  203. /*
  204. * GXFindFontTable()
  205. *
  206. * Availability:
  207. * Non-Carbon CFM: not available
  208. * CarbonLib: not available
  209. * Mac OS X: not available
  210. */
  211. EXTERN_API_C( long )
  212. GXFindFontTable(
  213. gxFont fontID,
  214. gxFontTableTag tableTag,
  215. void * tableData,
  216. long * index) THREEWORDINLINE(0x303C, 0x020E, 0xA832);
  217. /*
  218. * GXGetFontTableParts()
  219. *
  220. * Availability:
  221. * Non-Carbon CFM: not available
  222. * CarbonLib: not available
  223. * Mac OS X: not available
  224. */
  225. EXTERN_API_C( long )
  226. GXGetFontTableParts(
  227. gxFont fontID,
  228. long index,
  229. long offset,
  230. long length,
  231. void * tableData,
  232. gxFontTableTag * tableTag) THREEWORDINLINE(0x303C, 0x020F, 0xA832);
  233. /*
  234. * GXFindFontTableParts()
  235. *
  236. * Availability:
  237. * Non-Carbon CFM: not available
  238. * CarbonLib: not available
  239. * Mac OS X: not available
  240. */
  241. EXTERN_API_C( long )
  242. GXFindFontTableParts(
  243. gxFont fontID,
  244. gxFontTableTag tableTag,
  245. long offset,
  246. long length,
  247. void * tableData,
  248. long * index) THREEWORDINLINE(0x303C, 0x0210, 0xA832);
  249. /*
  250. * GXSetFontTable()
  251. *
  252. * Availability:
  253. * Non-Carbon CFM: not available
  254. * CarbonLib: not available
  255. * Mac OS X: not available
  256. */
  257. EXTERN_API_C( long )
  258. GXSetFontTable(
  259. gxFont fontID,
  260. long index,
  261. gxFontTableTag tableTag,
  262. long length,
  263. const void * tableData) THREEWORDINLINE(0x303C, 0x0211, 0xA832);
  264. /*
  265. * GXSetFontTableParts()
  266. *
  267. * Availability:
  268. * Non-Carbon CFM: not available
  269. * CarbonLib: not available
  270. * Mac OS X: not available
  271. */
  272. EXTERN_API_C( long )
  273. GXSetFontTableParts(
  274. gxFont fontID,
  275. long index,
  276. gxFontTableTag tableTag,
  277. long offset,
  278. long oldLength,
  279. long newLength,
  280. const void * tableData) THREEWORDINLINE(0x303C, 0x0212, 0xA832);
  281. /*
  282. * GXDeleteFontTable()
  283. *
  284. * Availability:
  285. * Non-Carbon CFM: not available
  286. * CarbonLib: not available
  287. * Mac OS X: not available
  288. */
  289. EXTERN_API_C( long )
  290. GXDeleteFontTable(
  291. gxFont fontID,
  292. long index,
  293. gxFontTableTag tableTag) THREEWORDINLINE(0x303C, 0x0213, 0xA832);
  294. /*
  295. * GXCountFontNames()
  296. *
  297. * Availability:
  298. * Non-Carbon CFM: not available
  299. * CarbonLib: not available
  300. * Mac OS X: not available
  301. */
  302. EXTERN_API_C( long )
  303. GXCountFontNames(gxFont fontID) THREEWORDINLINE(0x303C, 0x0214, 0xA832);
  304. /*
  305. * GXGetFontName()
  306. *
  307. * Availability:
  308. * Non-Carbon CFM: not available
  309. * CarbonLib: not available
  310. * Mac OS X: not available
  311. */
  312. EXTERN_API_C( long )
  313. GXGetFontName(
  314. gxFont fontID,
  315. long index,
  316. gxFontName * name,
  317. gxFontPlatform * platform,
  318. gxFontScript * script,
  319. gxFontLanguage * language,
  320. unsigned char text[]) THREEWORDINLINE(0x303C, 0x0215, 0xA832);
  321. /*
  322. * GXFindFontName()
  323. *
  324. * Availability:
  325. * Non-Carbon CFM: not available
  326. * CarbonLib: not available
  327. * Mac OS X: not available
  328. */
  329. EXTERN_API_C( long )
  330. GXFindFontName(
  331. gxFont fontID,
  332. gxFontName name,
  333. gxFontPlatform platform,
  334. gxFontScript script,
  335. gxFontLanguage language,
  336. unsigned char text[],
  337. long * index) THREEWORDINLINE(0x303C, 0x0216, 0xA832);
  338. /*
  339. * GXSetFontName()
  340. *
  341. * Availability:
  342. * Non-Carbon CFM: not available
  343. * CarbonLib: not available
  344. * Mac OS X: not available
  345. */
  346. EXTERN_API_C( long )
  347. GXSetFontName(
  348. gxFont fontID,
  349. gxFontName name,
  350. gxFontPlatform platform,
  351. gxFontScript script,
  352. gxFontLanguage language,
  353. long length,
  354. const unsigned char text[]) THREEWORDINLINE(0x303C, 0x0217, 0xA832);
  355. /*
  356. * GXDeleteFontName()
  357. *
  358. * Availability:
  359. * Non-Carbon CFM: not available
  360. * CarbonLib: not available
  361. * Mac OS X: not available
  362. */
  363. EXTERN_API_C( long )
  364. GXDeleteFontName(
  365. gxFont fontID,
  366. long index,
  367. gxFontName name,
  368. gxFontPlatform platform,
  369. gxFontScript script,
  370. gxFontLanguage language) THREEWORDINLINE(0x303C, 0x0218, 0xA832);
  371. /*
  372. * GXNewFontNameID()
  373. *
  374. * Availability:
  375. * Non-Carbon CFM: not available
  376. * CarbonLib: not available
  377. * Mac OS X: not available
  378. */
  379. EXTERN_API_C( gxFontName )
  380. GXNewFontNameID(gxFont fontID) THREEWORDINLINE(0x303C, 0x0219, 0xA832);
  381. /*
  382. * GXCountFontEncodings()
  383. *
  384. * Availability:
  385. * Non-Carbon CFM: not available
  386. * CarbonLib: not available
  387. * Mac OS X: not available
  388. */
  389. EXTERN_API_C( long )
  390. GXCountFontEncodings(gxFont fontID) THREEWORDINLINE(0x303C, 0x021A, 0xA832);
  391. /*
  392. * GXGetFontEncoding()
  393. *
  394. * Availability:
  395. * Non-Carbon CFM: not available
  396. * CarbonLib: not available
  397. * Mac OS X: not available
  398. */
  399. EXTERN_API_C( gxFontPlatform )
  400. GXGetFontEncoding(
  401. gxFont fontID,
  402. long index,
  403. gxFontScript * script,
  404. gxFontLanguage * language) THREEWORDINLINE(0x303C, 0x021B, 0xA832);
  405. /*
  406. * GXFindFontEncoding()
  407. *
  408. * Availability:
  409. * Non-Carbon CFM: not available
  410. * CarbonLib: not available
  411. * Mac OS X: not available
  412. */
  413. EXTERN_API_C( long )
  414. GXFindFontEncoding(
  415. gxFont fontID,
  416. gxFontPlatform platform,
  417. gxFontScript script,
  418. gxFontLanguage language) THREEWORDINLINE(0x303C, 0x021C, 0xA832);
  419. /*
  420. * GXApplyFontEncoding()
  421. *
  422. * Availability:
  423. * Non-Carbon CFM: not available
  424. * CarbonLib: not available
  425. * Mac OS X: not available
  426. */
  427. EXTERN_API_C( long )
  428. GXApplyFontEncoding(
  429. gxFont fontID,
  430. long index,
  431. long * length,
  432. const unsigned char text[],
  433. long count,
  434. unsigned short glyphs[],
  435. char was16Bit[]) THREEWORDINLINE(0x303C, 0x021D, 0xA832);
  436. /*
  437. * GXCountFontVariations()
  438. *
  439. * Availability:
  440. * Non-Carbon CFM: not available
  441. * CarbonLib: not available
  442. * Mac OS X: not available
  443. */
  444. EXTERN_API_C( long )
  445. GXCountFontVariations(gxFont fontID) THREEWORDINLINE(0x303C, 0x021E, 0xA832);
  446. /*
  447. * GXFindFontVariation()
  448. *
  449. * Availability:
  450. * Non-Carbon CFM: not available
  451. * CarbonLib: not available
  452. * Mac OS X: not available
  453. */
  454. EXTERN_API_C( long )
  455. GXFindFontVariation(
  456. gxFont fontID,
  457. gxFontVariationTag variationTag,
  458. Fixed * minValue,
  459. Fixed * defaultValue,
  460. Fixed * maxValue,
  461. gxFontName * name) THREEWORDINLINE(0x303C, 0x021F, 0xA832);
  462. /*
  463. * GXGetFontVariation()
  464. *
  465. * Availability:
  466. * Non-Carbon CFM: not available
  467. * CarbonLib: not available
  468. * Mac OS X: not available
  469. */
  470. EXTERN_API_C( gxFontVariationTag )
  471. GXGetFontVariation(
  472. gxFont fontID,
  473. long index,
  474. Fixed * minValue,
  475. Fixed * defaultValue,
  476. Fixed * maxValue,
  477. gxFontName * name) THREEWORDINLINE(0x303C, 0x0220, 0xA832);
  478. /*
  479. * GXCountFontInstances()
  480. *
  481. * Availability:
  482. * Non-Carbon CFM: not available
  483. * CarbonLib: not available
  484. * Mac OS X: not available
  485. */
  486. EXTERN_API_C( long )
  487. GXCountFontInstances(gxFont fontID) THREEWORDINLINE(0x303C, 0x0221, 0xA832);
  488. /*
  489. * GXGetFontInstance()
  490. *
  491. * Availability:
  492. * Non-Carbon CFM: not available
  493. * CarbonLib: not available
  494. * Mac OS X: not available
  495. */
  496. EXTERN_API_C( gxFontName )
  497. GXGetFontInstance(
  498. gxFont fontID,
  499. long index,
  500. gxFontVariation variation[]) THREEWORDINLINE(0x303C, 0x0222, 0xA832);
  501. /*
  502. * GXSetFontInstance()
  503. *
  504. * Availability:
  505. * Non-Carbon CFM: not available
  506. * CarbonLib: not available
  507. * Mac OS X: not available
  508. */
  509. EXTERN_API_C( long )
  510. GXSetFontInstance(
  511. gxFont fontID,
  512. long index,
  513. gxFontName name,
  514. const gxFontVariation variation[]) THREEWORDINLINE(0x303C, 0x0223, 0xA832);
  515. /*
  516. * GXDeleteFontInstance()
  517. *
  518. * Availability:
  519. * Non-Carbon CFM: not available
  520. * CarbonLib: not available
  521. * Mac OS X: not available
  522. */
  523. EXTERN_API_C( long )
  524. GXDeleteFontInstance(
  525. gxFont fontID,
  526. long index,
  527. gxFontName name) THREEWORDINLINE(0x303C, 0x0224, 0xA832);
  528. /*
  529. * GXCountFontDescriptors()
  530. *
  531. * Availability:
  532. * Non-Carbon CFM: not available
  533. * CarbonLib: not available
  534. * Mac OS X: not available
  535. */
  536. EXTERN_API_C( long )
  537. GXCountFontDescriptors(gxFont fontID) THREEWORDINLINE(0x303C, 0x0225, 0xA832);
  538. /*
  539. * GXGetFontDescriptor()
  540. *
  541. * Availability:
  542. * Non-Carbon CFM: not available
  543. * CarbonLib: not available
  544. * Mac OS X: not available
  545. */
  546. EXTERN_API_C( gxFontDescriptorTag )
  547. GXGetFontDescriptor(
  548. gxFont fontID,
  549. long index,
  550. Fixed * descriptorValue) THREEWORDINLINE(0x303C, 0x0226, 0xA832);
  551. /*
  552. * GXFindFontDescriptor()
  553. *
  554. * Availability:
  555. * Non-Carbon CFM: not available
  556. * CarbonLib: not available
  557. * Mac OS X: not available
  558. */
  559. EXTERN_API_C( long )
  560. GXFindFontDescriptor(
  561. gxFont fontID,
  562. gxFontDescriptorTag descriptorTag,
  563. Fixed * descriptorValue) THREEWORDINLINE(0x303C, 0x0227, 0xA832);
  564. /*
  565. * GXSetFontDescriptor()
  566. *
  567. * Availability:
  568. * Non-Carbon CFM: not available
  569. * CarbonLib: not available
  570. * Mac OS X: not available
  571. */
  572. EXTERN_API_C( long )
  573. GXSetFontDescriptor(
  574. gxFont fontID,
  575. long index,
  576. gxFontDescriptorTag descriptorTag,
  577. Fixed descriptorValue) THREEWORDINLINE(0x303C, 0x0228, 0xA832);
  578. /*
  579. * GXDeleteFontDescriptor()
  580. *
  581. * Availability:
  582. * Non-Carbon CFM: not available
  583. * CarbonLib: not available
  584. * Mac OS X: not available
  585. */
  586. EXTERN_API_C( long )
  587. GXDeleteFontDescriptor(
  588. gxFont fontID,
  589. long index,
  590. gxFontDescriptorTag descriptorTag) THREEWORDINLINE(0x303C, 0x0229, 0xA832);
  591. /*
  592. * GXCountFontFeatures()
  593. *
  594. * Availability:
  595. * Non-Carbon CFM: not available
  596. * CarbonLib: not available
  597. * Mac OS X: not available
  598. */
  599. EXTERN_API_C( long )
  600. GXCountFontFeatures(gxFont fontID) THREEWORDINLINE(0x303C, 0x022A, 0xA832);
  601. /*
  602. * GXGetFontFeature()
  603. *
  604. * Availability:
  605. * Non-Carbon CFM: not available
  606. * CarbonLib: not available
  607. * Mac OS X: not available
  608. */
  609. EXTERN_API_C( gxFontName )
  610. GXGetFontFeature(
  611. gxFont fontID,
  612. long index,
  613. gxFontFeatureFlag * flags,
  614. long * settingCount,
  615. gxFontFeatureSetting settings[],
  616. gxFontFeature * feature) THREEWORDINLINE(0x303C, 0x022B, 0xA832);
  617. /*
  618. * GXFindFontFeature()
  619. *
  620. * Availability:
  621. * Non-Carbon CFM: not available
  622. * CarbonLib: not available
  623. * Mac OS X: not available
  624. */
  625. EXTERN_API_C( gxFontName )
  626. GXFindFontFeature(
  627. gxFont fontID,
  628. gxFontFeature feature,
  629. gxFontFeatureFlag * flags,
  630. long * settingCount,
  631. gxFontFeatureSetting settings[],
  632. long * index) THREEWORDINLINE(0x303C, 0x022C, 0xA832);
  633. /*
  634. * GXGetFontDefaultFeatures()
  635. *
  636. * Availability:
  637. * Non-Carbon CFM: not available
  638. * CarbonLib: not available
  639. * Mac OS X: not available
  640. */
  641. EXTERN_API_C( long )
  642. GXGetFontDefaultFeatures(
  643. gxFont fontID,
  644. gxRunFeature features[]) THREEWORDINLINE(0x303C, 0x0274, 0xA832);
  645. /*
  646. * GXFlattenFont()
  647. *
  648. * Availability:
  649. * Non-Carbon CFM: not available
  650. * CarbonLib: not available
  651. * Mac OS X: not available
  652. */
  653. EXTERN_API_C( void )
  654. GXFlattenFont(
  655. gxFont source,
  656. scalerStream * stream,
  657. gxSpoolBlock * block) THREEWORDINLINE(0x303C, 0x022D, 0xA832);
  658. #endif /* CALL_NOT_IN_CARBON */
  659. #if defined(__MWERKS__) && TARGET_CPU_68K
  660. #pragma pop
  661. #endif
  662. #if PRAGMA_STRUCT_ALIGN
  663. #pragma options align=reset
  664. #elif PRAGMA_STRUCT_PACKPUSH
  665. #pragma pack(pop)
  666. #elif PRAGMA_STRUCT_PACK
  667. #pragma pack()
  668. #endif
  669. #ifdef PRAGMA_IMPORT_OFF
  670. #pragma import off
  671. #elif PRAGMA_IMPORT
  672. #pragma import reset
  673. #endif
  674. #ifdef __cplusplus
  675. }
  676. #endif
  677. #endif /* __GXFONTS__ */