1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
|
{
File: QD/ATSUnicodeGlyphs.h
Contains: ATSUI glyph handling functions.
Version: Quickdraw-262~1
Copyright: © 2003-2008 by Apple Inc. all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://www.freepascal.org/bugs.html
}
{ Pascal Translation: Peter N Lewis, <peter@stairways.com.au>, 2004 }
{ Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 }
{
Modified for use with Free Pascal
Version 308
Please report any bugs to <gpc@microbizz.nl>
}
{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
{$mode macpas}
{$packenum 1}
{$macro on}
{$inline on}
{$calling mwpascal}
unit ATSUnicodeGlyphs;
interface
{$setc UNIVERSAL_INTERFACES_VERSION := $0400}
{$setc GAP_INTERFACES_VERSION := $0308}
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
{$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
{$endc}
{$ifc defined CPUPOWERPC and defined CPUI386}
{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
{$endc}
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
{$endc}
{$ifc not defined __ppc__ and defined CPUPOWERPC32}
{$setc __ppc__ := 1}
{$elsec}
{$setc __ppc__ := 0}
{$endc}
{$ifc not defined __ppc64__ and defined CPUPOWERPC64}
{$setc __ppc64__ := 1}
{$elsec}
{$setc __ppc64__ := 0}
{$endc}
{$ifc not defined __i386__ and defined CPUI386}
{$setc __i386__ := 1}
{$elsec}
{$setc __i386__ := 0}
{$endc}
{$ifc not defined __x86_64__ and defined CPUX86_64}
{$setc __x86_64__ := 1}
{$elsec}
{$setc __x86_64__ := 0}
{$endc}
{$ifc not defined __arm__ and defined CPUARM}
{$setc __arm__ := 1}
{$elsec}
{$setc __arm__ := 0}
{$endc}
{$ifc defined cpu64}
{$setc __LP64__ := 1}
{$elsec}
{$setc __LP64__ := 0}
{$endc}
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
{$error Conflicting definitions for __ppc__ and __i386__}
{$endc}
{$ifc defined __ppc__ and __ppc__}
{$setc TARGET_CPU_PPC := TRUE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __ppc64__ and __ppc64__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := TRUE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __i386__ and __i386__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := TRUE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$ifc defined(iphonesim)}
{$setc TARGET_OS_MAC := FALSE}
{$setc TARGET_OS_IPHONE := TRUE}
{$setc TARGET_IPHONE_SIMULATOR := TRUE}
{$elsec}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$endc}
{$elifc defined __x86_64__ and __x86_64__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := TRUE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __arm__ and __arm__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := TRUE}
{ will require compiler define when/if other Apple devices with ARM cpus ship }
{$setc TARGET_OS_MAC := FALSE}
{$setc TARGET_OS_IPHONE := TRUE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elsec}
{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
{$endc}
{$ifc defined __LP64__ and __LP64__ }
{$setc TARGET_CPU_64 := TRUE}
{$elsec}
{$setc TARGET_CPU_64 := FALSE}
{$endc}
{$ifc defined FPC_BIG_ENDIAN}
{$setc TARGET_RT_BIG_ENDIAN := TRUE}
{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
{$elifc defined FPC_LITTLE_ENDIAN}
{$setc TARGET_RT_BIG_ENDIAN := FALSE}
{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
{$elsec}
{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
{$endc}
{$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
{$setc CALL_NOT_IN_CARBON := FALSE}
{$setc OLDROUTINENAMES := FALSE}
{$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
{$setc OPAQUE_UPP_TYPES := TRUE}
{$setc OTCARBONAPPLICATION := TRUE}
{$setc OTKERNEL := FALSE}
{$setc PM_USE_SESSION_APIS := TRUE}
{$setc TARGET_API_MAC_CARBON := TRUE}
{$setc TARGET_API_MAC_OS8 := FALSE}
{$setc TARGET_API_MAC_OSX := TRUE}
{$setc TARGET_CARBON := TRUE}
{$setc TARGET_CPU_68K := FALSE}
{$setc TARGET_CPU_MIPS := FALSE}
{$setc TARGET_CPU_SPARC := FALSE}
{$setc TARGET_OS_UNIX := FALSE}
{$setc TARGET_OS_WIN32 := FALSE}
{$setc TARGET_RT_MAC_68881 := FALSE}
{$setc TARGET_RT_MAC_CFM := FALSE}
{$setc TARGET_RT_MAC_MACHO := TRUE}
{$setc TYPED_FUNCTION_POINTERS := TRUE}
{$setc TYPE_BOOL := FALSE}
{$setc TYPE_EXTENDED := FALSE}
{$setc TYPE_LONGLONG := TRUE}
uses MacTypes,ATSUnicodeTypes,TextCommon,ATSTypes;
{$endc} {not MACOSALLINCLUDE}
{$ifc TARGET_OS_MAC}
{$ALIGN POWER}
{ ---------------------------------------------------------------------------- }
{ ATSUI glyph metrics }
{ ---------------------------------------------------------------------------- }
{$ifc not TARGET_CPU_64}
{
* ATSUGlyphGetIdealMetrics() *** DEPRECATED ***
*
* Deprecated:
* Use CTFontGetGlyphWithName,
* CTFontGetVerticalTranslationsForGlyphs,
* CTFontGetBoundingRectsForGlyphs, or CTFontGetAdvancesForGlyphs
* instead.
*
* Summary:
* Obtains resolution-independent font metric information for glyphs
* associated with a given style object.
*
* Discussion:
* The advance width is the full horizontal width of the glyph as
* measured from its origin to the origin of the next glyph on the
* line, including the left-side and right-side bearings. For
* vertical text, the advance height is the sum of the top-side
* bearing, the bounding-box height, and the bottom-side bearing.
* You can call the ATSUGlyphGetIdealMetrics function to obtain an
* array of ATSGlyphIdealMetrics structures containing values for
* the specified glyphs' advance and side bearings.
* ATSUGlyphGetIdealMetrics can analyze both horizontal and vertical
* text, automatically producing the appropriate bearing values
* (oriented for width or height, respectively) for each. You should
* call ATSUGlyphGetIdealMetrics to obtain resolution-independent
* glyph metrics. To obtain device-adjusted (that is,
* resolution-dependent) glyph metrics, call the function
* ATSUGlyphGetScreenMetrics.
*
* Parameters:
*
* iATSUStyle:
* A style referring to a font you wish to obtain glyph metrics
* from.
*
* iNumOfGlyphs:
* The number of glyph IDs you are passing in to be examined. This
* value should be equal to the size of the array you are passing
* in for the iGlyphIDs parameter.
*
* iGlyphIDs:
* An array of glyph IDs referring to glyphs for which you wish to
* obtain metrics.
*
* iInputOffset:
* A ByteOffset value specifying the offset in bytes between glyph
* IDs in the iGlyphIDs array.
*
* oIdealMetrics:
* A pointer to memory you have allocated for an array of
* ATSGlyphIdealMetrics structures. On return, each structure
* contains advance and side-bearing values for a glyph. See
* ATSTypes.h for more information regarding the
* ATSGlyphIdealMetrics structure.
*
* Result:
* On success, noErr is returned. See MacErrors.h for possible error
* codes.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.6
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUGlyphGetIdealMetrics( iATSUStyle: ATSUStyle; iNumOfGlyphs: ItemCount; iGlyphIDs: {variable-size-array} GlyphIDPtr; iInputOffset: ByteOffset; oIdealMetrics: {variable-size-array} ATSGlyphIdealMetricsPtr ): OSStatus; external name '_ATSUGlyphGetIdealMetrics';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSUGlyphGetScreenMetrics() *** DEPRECATED ***
*
* Deprecated:
* Use CTFontGetBoundingBox, CTFontGetUnderlinePosition,
* CTFontGetUnderlineThickness, CTFontGetSlantAngle,
* CTFontGetCapHeight, or CTFontGetXHeight iinstead.
*
* Summary:
* Obtains device-adjusted font metric information for glyphs
* associated with a given style object.
*
* Discussion:
* You can call the ATSUGlyphGetScreenMetrics function to obtain an
* array of ATSGlyphScreenMetrics structures containing values for
* the specified glyphs' advance and side bearings, top left,
* height, and width. You should call ATSUGlyphGetScreenMetrics to
* obtain device-adjusted (that is, resolution-dependent) glyph
* metrics. To obtain resolution-independent glyph metrics, call the
* function ATSUGlyphGetIdealMetrics.
*
* Parameters:
*
* iATSUStyle:
* A style referring to a font you wish to obtain glyph metrics
* from.
*
* iNumOfGlyphs:
* The number of glyph IDs you are passing in to be examined. This
* value should be equal to the size of the array you are passing
* in for the iGlyphIDs parameter.
*
* iGlyphIDs:
* An array of glyph IDs referring to glyphs for which you wish to
* obtain metrics.
*
* iInputOffset:
* A ByteOffset value specifying the offset in bytes between glyph
* IDs in the iGlyphIDs array.
*
* iForcingAntiAlias:
* A Boolean value indicating whether anti-aliasing is forced for
* the style object.
*
* iAntiAliasSwitch:
* A Boolean value indicating whether anti-aliasing is currently
* on or off.
*
* oScreenMetrics:
* A pointer to memory you have allocated for an array of
* ATSGlyphScreenMetrics structures. On return, each structure
* contains advance and side-bearing values for a glyph. See
* ATSTypes.h for more information regarding the
* ATSGlyphScreenMetrics structure.
*
* Result:
* On success, noErr is returned. See MacErrors.h for possible error
* codes.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.6
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUGlyphGetScreenMetrics( iATSUStyle: ATSUStyle; iNumOfGlyphs: ItemCount; iGlyphIDs: {variable-size-array} GlyphIDPtr; iInputOffset: ByteOffset; iForcingAntiAlias: Boolean; iAntiAliasSwitch: Boolean; oScreenMetrics: {variable-size-array} ATSGlyphScreenMetricsPtr ): OSStatus; external name '_ATSUGlyphGetScreenMetrics';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{ ---------------------------------------------------------------------------- }
{ ATSUI glyph curve access functions and callbacks }
{ ---------------------------------------------------------------------------- }
{
* ATSUGetNativeCurveType() *** DEPRECATED ***
*
* Deprecated:
* Use CTFontCreatePathForGlyph instead.
*
* Summary:
* Returns the native curve format for a specific font.
*
* Discussion:
* Use this function to decide whether to call
* ATSUGlyphGetQuadraticPaths or ATSUGlyphGetCubicPaths. Both
* functions will return curves for all valid ATSUI fonts, but if
* the curve type you request is not the native curve type of the
* font, the curves you get back will be mathematically converted,
* rather than native font data. See the definition of ATSCurveType
* in ATSTypes.h for possible return values from this function.
*
* Parameters:
*
* iATSUStyle:
* A style referencing a font for which you wish to obtain the
* native curve type.
*
* oCurveType:
* On return, a value indicating the native curve type of the font
* referenced by iATSUStyle. See the definition of ATSCurveType in
* ATSTypes.h for a list of possible return values for this
* parameter.
*
* Result:
* On success, noErr is returned. See MacErrors.h for possible error
* codes.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.6
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUGetNativeCurveType( iATSUStyle: ATSUStyle; var oCurveType: ATSCurveType ): OSStatus; external name '_ATSUGetNativeCurveType';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{$endc} {not TARGET_CPU_64}
{
* ATSQuadraticNewPathProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to start a new drawing path.
*
* Parameters:
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetQuadraticPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetQuadraticPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSQuadraticNewPathProcPtr = function( callBackDataPtr: UnivPtr ): OSStatus;
ATSQuadraticNewPathUPP = ATSQuadraticNewPathProcPtr;
{
* NewATSQuadraticNewPathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSQuadraticNewPathUPP( userRoutine: ATSQuadraticNewPathProcPtr ): ATSQuadraticNewPathUPP; external name '_NewATSQuadraticNewPathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSQuadraticNewPathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSQuadraticNewPathUPP( userUPP: ATSQuadraticNewPathUPP ); external name '_DisposeATSQuadraticNewPathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSQuadraticNewPathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSQuadraticNewPathUPP( callBackDataPtr: UnivPtr; userUPP: ATSQuadraticNewPathUPP ): OSStatus; external name '_InvokeATSQuadraticNewPathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSQuadraticLineProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to draw straight lines.
*
* Parameters:
*
* pt1:
* The starting point of the line.
*
* pt2:
* The end point of the line.
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetQuadraticPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetQuadraticPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSQuadraticLineProcPtr = function( const (*var*) pt1: Float32Point; const (*var*) pt2: Float32Point; callBackDataPtr: UnivPtr ): OSStatus;
ATSQuadraticLineUPP = ATSQuadraticLineProcPtr;
{
* NewATSQuadraticLineUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSQuadraticLineUPP( userRoutine: ATSQuadraticLineProcPtr ): ATSQuadraticLineUPP; external name '_NewATSQuadraticLineUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSQuadraticLineUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSQuadraticLineUPP( userUPP: ATSQuadraticLineUPP ); external name '_DisposeATSQuadraticLineUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSQuadraticLineUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSQuadraticLineUPP( const (*var*) pt1: Float32Point; const (*var*) pt2: Float32Point; callBackDataPtr: UnivPtr; userUPP: ATSQuadraticLineUPP ): OSStatus; external name '_InvokeATSQuadraticLineUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSQuadraticCurveProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to draw curves. The curve is a quadratic patch specified by a
* start point (pt1), and end point (pt2), and a single control
* point (controlPt).
*
* Parameters:
*
* pt1:
* The starting point of the curve.
*
* controlPt:
* The off-curve control point.
*
* pt2:
* The end point of the curve.
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetQuadraticPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetQuadraticPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSQuadraticCurveProcPtr = function( const (*var*) pt1: Float32Point; const (*var*) controlPt: Float32Point; const (*var*) pt2: Float32Point; callBackDataPtr: UnivPtr ): OSStatus;
ATSQuadraticCurveUPP = ATSQuadraticCurveProcPtr;
{
* NewATSQuadraticCurveUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSQuadraticCurveUPP( userRoutine: ATSQuadraticCurveProcPtr ): ATSQuadraticCurveUPP; external name '_NewATSQuadraticCurveUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSQuadraticCurveUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSQuadraticCurveUPP( userUPP: ATSQuadraticCurveUPP ); external name '_DisposeATSQuadraticCurveUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSQuadraticCurveUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSQuadraticCurveUPP( const (*var*) pt1: Float32Point; const (*var*) controlPt: Float32Point; const (*var*) pt2: Float32Point; callBackDataPtr: UnivPtr; userUPP: ATSQuadraticCurveUPP ): OSStatus; external name '_InvokeATSQuadraticCurveUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSQuadraticClosePathProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to close the current drawing path.
*
* Parameters:
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetQuadraticPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetQuadraticPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSQuadraticClosePathProcPtr = function( callBackDataPtr: UnivPtr ): OSStatus;
ATSQuadraticClosePathUPP = ATSQuadraticClosePathProcPtr;
{
* NewATSQuadraticClosePathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSQuadraticClosePathUPP( userRoutine: ATSQuadraticClosePathProcPtr ): ATSQuadraticClosePathUPP; external name '_NewATSQuadraticClosePathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSQuadraticClosePathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSQuadraticClosePathUPP( userUPP: ATSQuadraticClosePathUPP ); external name '_DisposeATSQuadraticClosePathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSQuadraticClosePathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSQuadraticClosePathUPP( callBackDataPtr: UnivPtr; userUPP: ATSQuadraticClosePathUPP ): OSStatus; external name '_InvokeATSQuadraticClosePathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{$ifc not TARGET_CPU_64}
{
* ATSUGlyphGetQuadraticPaths() *** DEPRECATED ***
*
* Deprecated:
* Use CTFontCreatePathForGlyph instead.
*
* Summary:
* Uses a callback mechanism to obtain a set of Quadratic outlines
* for a specified glyph in a specified font.
*
* Discussion:
* This function will allow you to use callbacks to obtain the exact
* outline of a specified glyph, in quadratic form. Although this
* function will always return results for any valid ATSUI font, you
* should first use the function ATSUGetNativeCurveType to determine
* the native format of the glyph you are interested in. Then,
* either call ATSUGlyphGetQuadraticPaths or ATSUGlyphGetCubicPaths
* based on the result. Otherwise, you may end up with curves that
* are mathematically converted from cubic to quadratic (or vice
* versa), instead of getting native font data. See the definitions
* of ATSQuadraticNewPathProcPtr, ATSQuadraticLineProcPtr,
* ATSQuadraticCurveProcPtr, and ATSQuadraticClosePathProcPtr for
* more information about setting up the callbacks.
*
* Parameters:
*
* iATSUStyle:
* A style referring to a font you wish to obtain a set of glyph
* outlines from.
*
* iGlyphID:
* A ID number referring to the glyph for which you wish to obtain
* outline data. Use the ATSUI direct access functions in
* ATSUnicodeDirectAccess.h to obtain values to pass for this
* parameter.
*
* iNewPathProc:
* A pointer to a callback function for quadratic new path
* operations. See the definition of ATSQuadraticNewPathProcPtr
* for more information about creating, disposing, and invoking
* this type of Universal Procedure Pointer.
*
* iLineProc:
* A pointer to a callback function for quadratic LineTo
* operations. See the definition of ATSQuadraticLineProcPtr for
* more information about creating, disposing, and invoking this
* type of Universal Procedure Pointer.
*
* iCurveProc:
* A pointer to a callback function for quadratic curve
* operations. See the definition of ATSQuadraticCurveProcPtr for
* more information about creating, disposing, and invoking this
* type of Universal Procedure Pointer.
*
* iClosePathProc:
* A pointer to a callback function for quadratic close path
* operations. See the definition of ATSQuadraticClosePathProcPtr
* for more information about creating, disposing, and invoking
* this type of Universal Procedure Pointer.
*
* iCallbackDataPtr:
* Any valid pointer. Any application specific data you wish to
* pass to your callbacks may be sent through this parameter.
*
* oCallbackResult:
* On return, status returned by callback functions. If an error
* occurs, callbacks may communicate it through this parameter.
*
* Result:
* On success, noErr is returned. See MacErrors.h for possible error
* codes.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.6
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUGlyphGetQuadraticPaths( iATSUStyle: ATSUStyle; iGlyphID: GlyphID; iNewPathProc: ATSQuadraticNewPathUPP; iLineProc: ATSQuadraticLineUPP; iCurveProc: ATSQuadraticCurveUPP; iClosePathProc: ATSQuadraticClosePathUPP; iCallbackDataPtr: UnivPtr; var oCallbackResult: OSStatus ): OSStatus; external name '_ATSUGlyphGetQuadraticPaths';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{$endc} {not TARGET_CPU_64}
{
* ATSCubicMoveToProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to move the current pen location.
*
* Parameters:
*
* pt:
* The point to which to move the current pen location.
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetCubicPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetCubicPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSCubicMoveToProcPtr = function( const (*var*) pt: Float32Point; callBackDataPtr: UnivPtr ): OSStatus;
ATSCubicMoveToUPP = ATSCubicMoveToProcPtr;
{
* NewATSCubicMoveToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSCubicMoveToUPP( userRoutine: ATSCubicMoveToProcPtr ): ATSCubicMoveToUPP; external name '_NewATSCubicMoveToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSCubicMoveToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSCubicMoveToUPP( userUPP: ATSCubicMoveToUPP ); external name '_DisposeATSCubicMoveToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSCubicMoveToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSCubicMoveToUPP( const (*var*) pt: Float32Point; callBackDataPtr: UnivPtr; userUPP: ATSCubicMoveToUPP ): OSStatus; external name '_InvokeATSCubicMoveToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSCubicLineToProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to draw straight lines.
*
* Parameters:
*
* pt:
* The end point of the line to be drawn. The starting point is
* whatever the current pen position is.
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetCubicPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetCubicPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSCubicLineToProcPtr = function( const (*var*) pt: Float32Point; callBackDataPtr: UnivPtr ): OSStatus;
ATSCubicLineToUPP = ATSCubicLineToProcPtr;
{
* NewATSCubicLineToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSCubicLineToUPP( userRoutine: ATSCubicLineToProcPtr ): ATSCubicLineToUPP; external name '_NewATSCubicLineToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSCubicLineToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSCubicLineToUPP( userUPP: ATSCubicLineToUPP ); external name '_DisposeATSCubicLineToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSCubicLineToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSCubicLineToUPP( const (*var*) pt: Float32Point; callBackDataPtr: UnivPtr; userUPP: ATSCubicLineToUPP ): OSStatus; external name '_InvokeATSCubicLineToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSCubicCurveToProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to draw a curve. The curve is a Bezier patch defined by two
* off-curve control points (pt1 and pt2), and an endpoint (pt3).
* The starting point is whatever the current pen position is.
*
* Parameters:
*
* pt1:
* The first off-curve control point.
*
* pt2:
* The second off-curve control point.
*
* pt3:
* The end point of the curve.
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetCubicPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetCubicPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSCubicCurveToProcPtr = function( const (*var*) pt1: Float32Point; const (*var*) pt2: Float32Point; const (*var*) pt3: Float32Point; callBackDataPtr: UnivPtr ): OSStatus;
ATSCubicCurveToUPP = ATSCubicCurveToProcPtr;
{
* NewATSCubicCurveToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSCubicCurveToUPP( userRoutine: ATSCubicCurveToProcPtr ): ATSCubicCurveToUPP; external name '_NewATSCubicCurveToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSCubicCurveToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSCubicCurveToUPP( userUPP: ATSCubicCurveToUPP ); external name '_DisposeATSCubicCurveToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSCubicCurveToUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSCubicCurveToUPP( const (*var*) pt1: Float32Point; const (*var*) pt2: Float32Point; const (*var*) pt3: Float32Point; callBackDataPtr: UnivPtr; userUPP: ATSCubicCurveToUPP ): OSStatus; external name '_InvokeATSCubicCurveToUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSCubicClosePathProcPtr
*
* Discussion:
* A pointer to a client supplied callback function for handling
* glyph curve drawing operations. This callback handles operations
* to close the current drawing path.
*
* Parameters:
*
* callBackDataPtr:
* A pointer to any application specific data that may have been
* passed to the callbacks through the iCallbackDataPtr parameter
* of the ATSUGlyphGetCubicPaths function.
*
* Result:
* Return status. Pass any errors you wish to propagate back to the
* original caller of ATSUGlyphGetCubicPaths through this return
* value. Note that any nonzero result from this callback will halt
* the curve drawing process.
}
type
ATSCubicClosePathProcPtr = function( callBackDataPtr: UnivPtr ): OSStatus;
ATSCubicClosePathUPP = ATSCubicClosePathProcPtr;
{
* NewATSCubicClosePathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function NewATSCubicClosePathUPP( userRoutine: ATSCubicClosePathProcPtr ): ATSCubicClosePathUPP; external name '_NewATSCubicClosePathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* DisposeATSCubicClosePathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
procedure DisposeATSCubicClosePathUPP( userUPP: ATSCubicClosePathUPP ); external name '_DisposeATSCubicClosePathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* InvokeATSCubicClosePathUPP()
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: available as macro/inline
}
function InvokeATSCubicClosePathUPP( callBackDataPtr: UnivPtr; userUPP: ATSCubicClosePathUPP ): OSStatus; external name '_InvokeATSCubicClosePathUPP';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{$ifc not TARGET_CPU_64}
{
* ATSUGlyphGetCubicPaths() *** DEPRECATED ***
*
* Deprecated:
* Use CTFontCreatePathForGlyph instead.
*
* Summary:
* Uses a callback mechanism to obtain a set of Cubic outlines for a
* specified glyph in a specified font.
*
* Discussion:
* This function will allow you to use callbacks to obtain the exact
* outline of a specified glyph, in cubic form. Although this
* function will always return results for any valid ATSUI font, you
* should first use the function ATSUGetNativeCurveType to determine
* the native format of the glyph you are interested in. Then,
* either call ATSUGlyphGetQuadraticPaths or ATSUGlyphGetCubicPaths
* based on the result. Otherwise, you may end up with curves that
* are mathematically converted from quadratic to cubic (or vice
* versa), instead of getting native font data. See the definitions
* of ATSCubicMoveToProcPtr, ATSCubicLineToProcPtr,
* ATSCubicCurveToProcPtr, and ATSCubicClosePathProcPtr for more
* information about setting up the callbacks.
*
* Parameters:
*
* iATSUStyle:
* A style referring to a font you wish to obtain a set of glyph
* outlines from.
*
* iGlyphID:
* A ID number referring to the glyph for which you wish to obtain
* outline data. Use the ATSUI direct access functions in
* ATSUnicodeDirectAccess.h to obtain values to pass for this
* parameter.
*
* iMoveToProc:
* A pointer to a callback function for cubic MoveTo operations.
* See the definition of ATSCubicMoveToProcPtr for more
* information about creating, disposing, and invoking this type
* of Universal Procedure Pointer.
*
* iLineToProc:
* A pointer to a callback function for cubic LineTo operations.
* See the definition of ATSCubicLineToProcPtr for more
* information about creating, disposing, and invoking this type
* of Universal Procedure Pointer.
*
* iCurveToProc:
* A pointer to a callback function for cubic CurveTo operations.
* See the definition of ATSCubicCurveToProcPtr for more
* information about creating, disposing, and invoking this type
* of Universal Procedure Pointer.
*
* iClosePathProc:
* A pointer to a callback function for cubic MoveTo operations.
* See the definition of ATSCubicClosePathProcPtr for more
* information about creating, disposing, and invoking this type
* of Universal Procedure Pointer.
*
* iCallbackDataPtr:
* Any valid pointer. Any application specific data you wish to
* pass to your callbacks may be sent through this parameter.
*
* oCallbackResult:
* On return, status returned by callback functions. If an error
* occurs, callbacks may communicate it through this parameter.
*
* Result:
* On success, noErr is returned. See MacErrors.h for possible error
* codes.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.6
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUGlyphGetCubicPaths( iATSUStyle: ATSUStyle; iGlyphID: GlyphID; iMoveToProc: ATSCubicMoveToUPP; iLineToProc: ATSCubicLineToUPP; iCurveToProc: ATSCubicCurveToUPP; iClosePathProc: ATSCubicClosePathUPP; iCallbackDataPtr: UnivPtr { can be NULL }; var oCallbackResult: OSStatus ): OSStatus; external name '_ATSUGlyphGetCubicPaths';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{
* ATSUGlyphGetCurvePaths() *** DEPRECATED ***
*
* Deprecated:
* Use CTFontCreatePathForGlyph instead.
*
* Summary:
* Obtains glyph curve data without the use of callbacks.
*
* Discussion:
* This function will return glyph curve data in a single data
* structure rather than through the use of callbacks, but you must
* parse the data structure yourself. ATSUGlyphGetCubicPaths and
* ATSUGlyphGetQuadraticPaths will parse the glyph data for you and
* use the callbacks you provide them to give you access to the
* individual points on the curves. Typically you use the function
* ATSUGlyphGetCurvePaths by calling it twice, as follows: (1) Pass
* a valid style and glyphID into the iATSUStyle and iGlyphID
* parameters, respectively, 0 for the ioBufferSize parameter, and
* NULL for the oPaths parameter. ATSUGlyphGetCurvePaths returns the
* size to use for the oPaths array in the ioBufferSize parameter.
* (2) Allocate enough space an array of the returned size, then
* call the ATSUGlyphGetCurvePaths again, passing a pointer to the
* array in the oPaths parameter. On return, the array contains the
* glyph outline data.
*
* Parameters:
*
* iATSUStyle:
* A style referring to a font you wish to obtain a set of glyph
* outlines from.
*
* iGlyphID:
* A ID number referring to the glyph for which you wish to obtain
* outline data. Use the ATSUI direct access functions in
* ATSUnicodeDirectAccess.h to obtain values to pass for this
* parameter.
*
* ioBufferSize:
* On input, the size of the buffer you have allocated for the
* oPaths parameter. On return, the actual size of the data
* structure that has been copied into the oPaths parameter.
*
* oPaths:
* On return, a data structure containing glyph outline
* information. See ATSTypes.h for a definition of this data
* structure.
*
* Result:
* On success, noErr is returned. See MacErrors.h for possible error
* codes.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.6
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUGlyphGetCurvePaths( iATSUStyle: ATSUStyle; iGlyphID: GlyphID; ioBufferSize: ByteCountPtr; oPaths: ATSUCurvePathsPtr { can be NULL } ): OSStatus; external name '_ATSUGlyphGetCurvePaths';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
{ Functions listed beyond this point are either deprecated or not recommended }
{ ---------------------------------------------------------------------------- }
{ ATSUI glyphInfo access (deprecated) }
{ ---------------------------------------------------------------------------- }
{
* ATSUGetGlyphInfo() *** DEPRECATED ***
*
* Deprecated:
* Use CTRunGetGlyphsPtr,CTRunGetGlyphs, CTRunGetPositionsPtr,
* CTRunGetPositions, CTRunGetStringIndicesPtr,
* CTRunGetStringIndices, CTRunGetStringRange instead.
*
* Summary:
* Obtains a copy of the style and layout information for each glyph
* in a line.
*
* Discussion:
* Please see ATSUnicodeDirectAccess.h for replacement functions.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.3
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUGetGlyphInfo( iTextLayout: ATSUTextLayout; iLineStart: UniCharArrayOffset; iLineLength: UniCharCount; ioBufferSize: ByteCountPtr; oGlyphInfoPtr: ATSUGlyphInfoArrayPtr ): OSStatus; external name '_ATSUGetGlyphInfo';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 *)
{
* ATSUDrawGlyphInfo() *** DEPRECATED ***
*
* Deprecated:
* Use CTRunGetGlyphsPtr,CTRunGetGlyphs, CTRunGetPositionsPtr,
* CTRunGetPositions, CTRunGetStringIndicesPtr,
* CTRunGetStringIndices, CTRunGetStringRange instead.
*
* Summary:
* Draws glyphs at the specified location, based on style and layout
* information specified for each glyph.
*
* Discussion:
* Please see ATSUnicodeDirectAccess.h for replacement functions.
*
* Availability:
* Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.3
* CarbonLib: in CarbonLib 1.1 and later
* Non-Carbon CFM: in ATSUnicodeLib 9.1 and later
}
function ATSUDrawGlyphInfo( iGlyphInfoArray: ATSUGlyphInfoArrayPtr; iLocation: Float32Point ): OSStatus; external name '_ATSUDrawGlyphInfo';
(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 *)
{$endc} {not TARGET_CPU_64}
{$endc} {TARGET_OS_MAC}
{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
end.
{$endc} {not MACOSALLINCLUDE}
|