Debian Codegraph @

docs/reference/ft2-outline_processing.html

raw symbols SCIP
1
2 <!doctype html>
3 <html lang="en" class="no-js">
4 <head>
5
6 <meta charset="utf-8">
7 <meta name="viewport" content="width=device-width,initial-scale=1">
8
9 <meta name="description" content="API Reference Documentation for FreeType-2.14.3">
10
11
12 <meta name="author" content="FreeType Contributors">
13
14
15 <link rel="canonical" href="http://freetype.org/freetype2/docs/reference/ft2-outline_processing.html">
16
17
18 <link rel="prev" href="ft2-list_processing.html">
19
20
21 <link rel="next" href="ft2-quick_advance.html">
22
23
24 <link rel="icon" href="images/favico.ico">
25 <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.9">
26
27
28
29 <title>Outline Processing - FreeType-2.14.3 API Reference</title>
30
31
32
33 <link rel="stylesheet" href="assets/stylesheets/main.4af4bdda.min.css">
34
35
36 <link rel="stylesheet" href="assets/stylesheets/palette.06af60db.min.css">
37
38
39
40
41
42
43
44
45
46
47
48
49 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
50 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
51 <style>:root{--md-text-font:"Noto Serif";--md-code-font:"Roboto Mono"}</style>
52
53
54
55 <link rel="stylesheet" href="stylesheets/extra.css">
56
57 <script>__md_scope=new URL(".",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
58
59
60
61
62
63
64 </head>
65
66
67
68
69
70
71
72 <body dir="ltr" data-md-color-scheme="default" data-md-color-primary="green" data-md-color-accent="green">
73
74
75 <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
76 <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
77 <label class="md-overlay" for="__drawer"></label>
78 <div data-md-component="skip">
79
80
81 <a href="#outline-processing" class="md-skip">
82 Skip to content
83 </a>
84
85 </div>
86 <div data-md-component="announce">
87
88 </div>
89
90
91
92
93
94
95 <header class="md-header md-header--shadow" data-md-component="header">
96 <nav class="md-header__inner md-grid" aria-label="Header">
97 <a href="index.html" title="FreeType-2.14.3 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.14.3 API Reference" data-md-component="logo">
98
99 <img src="images/favico.ico" alt="logo">
100
101 </a>
102 <label class="md-header__button md-icon" for="__drawer">
103
104 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
105 </label>
106 <div class="md-header__title" data-md-component="header-title">
107 <div class="md-header__ellipsis">
108 <div class="md-header__topic">
109 <span class="md-ellipsis">
110 FreeType-2.14.3 API Reference
111 </span>
112 </div>
113 <div class="md-header__topic" data-md-component="header-topic">
114 <span class="md-ellipsis">
115
116 Outline Processing
117
118 </span>
119 </div>
120 </div>
121 </div>
122
123
124
125
126
127
128 <label class="md-header__button md-icon" for="__search">
129
130 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
131 </label>
132 <div class="md-search" data-md-component="search" role="dialog">
133 <label class="md-search__overlay" for="__search"></label>
134 <div class="md-search__inner" role="search">
135 <form class="md-search__form" name="search">
136 <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
137 <label class="md-search__icon md-icon" for="__search">
138
139 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
140
141 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
142 </label>
143 <nav class="md-search__options" aria-label="Search">
144
145 <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
146
147 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
148 </button>
149 </nav>
150
151 </form>
152 <div class="md-search__output">
153 <div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
154 <div class="md-search-result" data-md-component="search-result">
155 <div class="md-search-result__meta">
156 Initializing search
157 </div>
158 <ol class="md-search-result__list" role="presentation"></ol>
159 </div>
160 </div>
161 </div>
162 </div>
163 </div>
164
165
166 </nav>
167
168 </header>
169
170 <div class="md-container" data-md-component="container">
171
172
173
174
175
176
177 <main class="md-main" data-md-component="main">
178 <div class="md-main__inner md-grid">
179
180
181
182 <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
183 <div class="md-sidebar__scrollwrap">
184 <div class="md-sidebar__inner">
185
186
187
188
189 <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
190 <label class="md-nav__title" for="__drawer">
191 <a href="index.html" title="FreeType-2.14.3 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.14.3 API Reference" data-md-component="logo">
192
193 <img src="images/favico.ico" alt="logo">
194
195 </a>
196 FreeType-2.14.3 API Reference
197 </label>
198
199 <ul class="md-nav__list" data-md-scrollfix>
200
201
202
203
204
205
206
207 <li class="md-nav__item">
208 <a href="index.html" class="md-nav__link">
209
210
211 <span class="md-ellipsis">
212 TOC
213
214 </span>
215
216
217 </a>
218 </li>
219
220
221
222
223
224
225
226
227
228 <li class="md-nav__item">
229 <a href="ft2-index.html" class="md-nav__link">
230
231
232 <span class="md-ellipsis">
233 Index
234
235 </span>
236
237
238 </a>
239 </li>
240
241
242
243
244
245
246
247
248
249
250
251
252
253 <li class="md-nav__item md-nav__item--nested">
254
255
256
257 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
258
259
260 <label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="0">
261
262
263 <span class="md-ellipsis">
264 General Remarks
265
266 </span>
267
268
269 <span class="md-nav__icon md-icon"></span>
270 </label>
271
272 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
273 <label class="md-nav__title" for="__nav_3">
274 <span class="md-nav__icon md-icon"></span>
275 General Remarks
276 </label>
277 <ul class="md-nav__list" data-md-scrollfix>
278
279
280
281
282
283
284
285 <li class="md-nav__item">
286 <a href="ft2-preamble.html" class="md-nav__link">
287
288
289 <span class="md-ellipsis">
290 Preamble
291
292 </span>
293
294
295 </a>
296 </li>
297
298
299
300
301
302
303
304
305
306
307 <li class="md-nav__item">
308 <a href="ft2-header_inclusion.html" class="md-nav__link">
309
310
311 <span class="md-ellipsis">
312 FreeType's header inclusion scheme
313
314 </span>
315
316
317 </a>
318 </li>
319
320
321
322
323
324
325
326
327
328
329 <li class="md-nav__item">
330 <a href="ft2-user_allocation.html" class="md-nav__link">
331
332
333 <span class="md-ellipsis">
334 User allocation
335
336 </span>
337
338
339 </a>
340 </li>
341
342
343
344
345 </ul>
346 </nav>
347
348 </li>
349
350
351
352
353
354
355
356
357
358
359
360
361
362 <li class="md-nav__item md-nav__item--nested">
363
364
365
366 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
367
368
369 <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
370
371
372 <span class="md-ellipsis">
373 Core API
374
375 </span>
376
377
378 <span class="md-nav__icon md-icon"></span>
379 </label>
380
381 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
382 <label class="md-nav__title" for="__nav_4">
383 <span class="md-nav__icon md-icon"></span>
384 Core API
385 </label>
386 <ul class="md-nav__list" data-md-scrollfix>
387
388
389
390
391
392
393
394 <li class="md-nav__item">
395 <a href="ft2-basic_types.html" class="md-nav__link">
396
397
398 <span class="md-ellipsis">
399 Basic Data Types
400
401 </span>
402
403
404 </a>
405 </li>
406
407
408
409
410
411
412
413
414
415
416 <li class="md-nav__item">
417 <a href="ft2-library_setup.html" class="md-nav__link">
418
419
420 <span class="md-ellipsis">
421 Library Setup
422
423 </span>
424
425
426 </a>
427 </li>
428
429
430
431
432
433
434
435
436
437
438 <li class="md-nav__item">
439 <a href="ft2-face_creation.html" class="md-nav__link">
440
441
442 <span class="md-ellipsis">
443 Face Creation
444
445 </span>
446
447
448 </a>
449 </li>
450
451
452
453
454
455
456
457
458
459
460 <li class="md-nav__item">
461 <a href="ft2-font_testing_macros.html" class="md-nav__link">
462
463
464 <span class="md-ellipsis">
465 Font Testing Macros
466
467 </span>
468
469
470 </a>
471 </li>
472
473
474
475
476
477
478
479
480
481
482 <li class="md-nav__item">
483 <a href="ft2-sizing_and_scaling.html" class="md-nav__link">
484
485
486 <span class="md-ellipsis">
487 Sizing and Scaling
488
489 </span>
490
491
492 </a>
493 </li>
494
495
496
497
498
499
500
501
502
503
504 <li class="md-nav__item">
505 <a href="ft2-glyph_retrieval.html" class="md-nav__link">
506
507
508 <span class="md-ellipsis">
509 Glyph Retrieval
510
511 </span>
512
513
514 </a>
515 </li>
516
517
518
519
520
521
522
523
524
525
526 <li class="md-nav__item">
527 <a href="ft2-character_mapping.html" class="md-nav__link">
528
529
530 <span class="md-ellipsis">
531 Character Mapping
532
533 </span>
534
535
536 </a>
537 </li>
538
539
540
541
542
543
544
545
546
547
548 <li class="md-nav__item">
549 <a href="ft2-information_retrieval.html" class="md-nav__link">
550
551
552 <span class="md-ellipsis">
553 Information Retrieval
554
555 </span>
556
557
558 </a>
559 </li>
560
561
562
563
564
565
566
567
568
569
570 <li class="md-nav__item">
571 <a href="ft2-other_api_data.html" class="md-nav__link">
572
573
574 <span class="md-ellipsis">
575 Other API Data
576
577 </span>
578
579
580 </a>
581 </li>
582
583
584
585
586 </ul>
587 </nav>
588
589 </li>
590
591
592
593
594
595
596
597
598
599
600
601
602
603 <li class="md-nav__item md-nav__item--nested">
604
605
606
607 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
608
609
610 <label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
611
612
613 <span class="md-ellipsis">
614 Extended API
615
616 </span>
617
618
619 <span class="md-nav__icon md-icon"></span>
620 </label>
621
622 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
623 <label class="md-nav__title" for="__nav_5">
624 <span class="md-nav__icon md-icon"></span>
625 Extended API
626 </label>
627 <ul class="md-nav__list" data-md-scrollfix>
628
629
630
631
632
633
634
635 <li class="md-nav__item">
636 <a href="ft2-glyph_variants.html" class="md-nav__link">
637
638
639 <span class="md-ellipsis">
640 Unicode Variation Sequences
641
642 </span>
643
644
645 </a>
646 </li>
647
648
649
650
651
652
653
654
655
656
657 <li class="md-nav__item">
658 <a href="ft2-color_management.html" class="md-nav__link">
659
660
661 <span class="md-ellipsis">
662 Glyph Color Management
663
664 </span>
665
666
667 </a>
668 </li>
669
670
671
672
673
674
675
676
677
678
679 <li class="md-nav__item">
680 <a href="ft2-layer_management.html" class="md-nav__link">
681
682
683 <span class="md-ellipsis">
684 Glyph Layer Management
685
686 </span>
687
688
689 </a>
690 </li>
691
692
693
694
695
696
697
698
699
700
701 <li class="md-nav__item">
702 <a href="ft2-glyph_management.html" class="md-nav__link">
703
704
705 <span class="md-ellipsis">
706 Glyph Management
707
708 </span>
709
710
711 </a>
712 </li>
713
714
715
716
717
718
719
720
721
722
723 <li class="md-nav__item">
724 <a href="ft2-mac_specific.html" class="md-nav__link">
725
726
727 <span class="md-ellipsis">
728 Mac Specific Interface
729
730 </span>
731
732
733 </a>
734 </li>
735
736
737
738
739
740
741
742
743
744
745 <li class="md-nav__item">
746 <a href="ft2-sizes_management.html" class="md-nav__link">
747
748
749 <span class="md-ellipsis">
750 Size Management
751
752 </span>
753
754
755 </a>
756 </li>
757
758
759
760
761
762
763
764
765
766
767 <li class="md-nav__item">
768 <a href="ft2-header_file_macros.html" class="md-nav__link">
769
770
771 <span class="md-ellipsis">
772 Header File Macros
773
774 </span>
775
776
777 </a>
778 </li>
779
780
781
782
783 </ul>
784 </nav>
785
786 </li>
787
788
789
790
791
792
793
794
795
796
797
798
799
800 <li class="md-nav__item md-nav__item--nested">
801
802
803
804 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
805
806
807 <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
808
809
810 <span class="md-ellipsis">
811 Format-Specific API
812
813 </span>
814
815
816 <span class="md-nav__icon md-icon"></span>
817 </label>
818
819 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
820 <label class="md-nav__title" for="__nav_6">
821 <span class="md-nav__icon md-icon"></span>
822 Format-Specific API
823 </label>
824 <ul class="md-nav__list" data-md-scrollfix>
825
826
827
828
829
830
831
832 <li class="md-nav__item">
833 <a href="ft2-multiple_masters.html" class="md-nav__link">
834
835
836 <span class="md-ellipsis">
837 OpenType Font Variations, TrueType GX, and Adobe MM Fonts
838
839 </span>
840
841
842 </a>
843 </li>
844
845
846
847
848
849
850
851
852
853
854 <li class="md-nav__item">
855 <a href="ft2-truetype_tables.html" class="md-nav__link">
856
857
858 <span class="md-ellipsis">
859 TrueType Tables
860
861 </span>
862
863
864 </a>
865 </li>
866
867
868
869
870
871
872
873
874
875
876 <li class="md-nav__item">
877 <a href="ft2-type1_tables.html" class="md-nav__link">
878
879
880 <span class="md-ellipsis">
881 Type 1 Tables
882
883 </span>
884
885
886 </a>
887 </li>
888
889
890
891
892
893
894
895
896
897
898 <li class="md-nav__item">
899 <a href="ft2-sfnt_names.html" class="md-nav__link">
900
901
902 <span class="md-ellipsis">
903 SFNT Names
904
905 </span>
906
907
908 </a>
909 </li>
910
911
912
913
914
915
916
917
918
919
920 <li class="md-nav__item">
921 <a href="ft2-bdf_fonts.html" class="md-nav__link">
922
923
924 <span class="md-ellipsis">
925 BDF and PCF Files
926
927 </span>
928
929
930 </a>
931 </li>
932
933
934
935
936
937
938
939
940
941
942 <li class="md-nav__item">
943 <a href="ft2-cid_fonts.html" class="md-nav__link">
944
945
946 <span class="md-ellipsis">
947 CID Fonts
948
949 </span>
950
951
952 </a>
953 </li>
954
955
956
957
958
959
960
961
962
963
964 <li class="md-nav__item">
965 <a href="ft2-pfr_fonts.html" class="md-nav__link">
966
967
968 <span class="md-ellipsis">
969 PFR Fonts
970
971 </span>
972
973
974 </a>
975 </li>
976
977
978
979
980
981
982
983
984
985
986 <li class="md-nav__item">
987 <a href="ft2-winfnt_fonts.html" class="md-nav__link">
988
989
990 <span class="md-ellipsis">
991 Window FNT Files
992
993 </span>
994
995
996 </a>
997 </li>
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008 <li class="md-nav__item">
1009 <a href="ft2-svg_fonts.html" class="md-nav__link">
1010
1011
1012 <span class="md-ellipsis">
1013 OpenType SVG Fonts
1014
1015 </span>
1016
1017
1018 </a>
1019 </li>
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030 <li class="md-nav__item">
1031 <a href="ft2-font_formats.html" class="md-nav__link">
1032
1033
1034 <span class="md-ellipsis">
1035 Font Formats
1036
1037 </span>
1038
1039
1040 </a>
1041 </li>
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052 <li class="md-nav__item">
1053 <a href="ft2-gasp_table.html" class="md-nav__link">
1054
1055
1056 <span class="md-ellipsis">
1057 Gasp Table
1058
1059 </span>
1060
1061
1062 </a>
1063 </li>
1064
1065
1066
1067
1068 </ul>
1069 </nav>
1070
1071 </li>
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085 <li class="md-nav__item md-nav__item--nested">
1086
1087
1088
1089 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
1090
1091
1092 <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
1093
1094
1095 <span class="md-ellipsis">
1096 Controlling FreeType Modules
1097
1098 </span>
1099
1100
1101 <span class="md-nav__icon md-icon"></span>
1102 </label>
1103
1104 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
1105 <label class="md-nav__title" for="__nav_7">
1106 <span class="md-nav__icon md-icon"></span>
1107 Controlling FreeType Modules
1108 </label>
1109 <ul class="md-nav__list" data-md-scrollfix>
1110
1111
1112
1113
1114
1115
1116
1117 <li class="md-nav__item">
1118 <a href="ft2-auto_hinter.html" class="md-nav__link">
1119
1120
1121 <span class="md-ellipsis">
1122 The auto-hinter
1123
1124 </span>
1125
1126
1127 </a>
1128 </li>
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139 <li class="md-nav__item">
1140 <a href="ft2-cff_driver.html" class="md-nav__link">
1141
1142
1143 <span class="md-ellipsis">
1144 The CFF driver
1145
1146 </span>
1147
1148
1149 </a>
1150 </li>
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161 <li class="md-nav__item">
1162 <a href="ft2-t1_cid_driver.html" class="md-nav__link">
1163
1164
1165 <span class="md-ellipsis">
1166 The Type 1 and CID drivers
1167
1168 </span>
1169
1170
1171 </a>
1172 </li>
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183 <li class="md-nav__item">
1184 <a href="ft2-tt_driver.html" class="md-nav__link">
1185
1186
1187 <span class="md-ellipsis">
1188 The TrueType driver
1189
1190 </span>
1191
1192
1193 </a>
1194 </li>
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205 <li class="md-nav__item">
1206 <a href="ft2-pcf_driver.html" class="md-nav__link">
1207
1208
1209 <span class="md-ellipsis">
1210 The PCF driver
1211
1212 </span>
1213
1214
1215 </a>
1216 </li>
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227 <li class="md-nav__item">
1228 <a href="ft2-ot_svg_driver.html" class="md-nav__link">
1229
1230
1231 <span class="md-ellipsis">
1232 The SVG driver
1233
1234 </span>
1235
1236
1237 </a>
1238 </li>
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249 <li class="md-nav__item">
1250 <a href="ft2-properties.html" class="md-nav__link">
1251
1252
1253 <span class="md-ellipsis">
1254 Driver properties
1255
1256 </span>
1257
1258
1259 </a>
1260 </li>
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271 <li class="md-nav__item">
1272 <a href="ft2-parameter_tags.html" class="md-nav__link">
1273
1274
1275 <span class="md-ellipsis">
1276 Parameter Tags
1277
1278 </span>
1279
1280
1281 </a>
1282 </li>
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293 <li class="md-nav__item">
1294 <a href="ft2-lcd_rendering.html" class="md-nav__link">
1295
1296
1297 <span class="md-ellipsis">
1298 Subpixel Rendering
1299
1300 </span>
1301
1302
1303 </a>
1304 </li>
1305
1306
1307
1308
1309 </ul>
1310 </nav>
1311
1312 </li>
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 <li class="md-nav__item md-nav__item--nested">
1327
1328
1329
1330 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
1331
1332
1333 <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
1334
1335
1336 <span class="md-ellipsis">
1337 Cache Sub-System
1338
1339 </span>
1340
1341
1342 <span class="md-nav__icon md-icon"></span>
1343 </label>
1344
1345 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
1346 <label class="md-nav__title" for="__nav_8">
1347 <span class="md-nav__icon md-icon"></span>
1348 Cache Sub-System
1349 </label>
1350 <ul class="md-nav__list" data-md-scrollfix>
1351
1352
1353
1354
1355
1356
1357
1358 <li class="md-nav__item">
1359 <a href="ft2-cache_subsystem.html" class="md-nav__link">
1360
1361
1362 <span class="md-ellipsis">
1363 Cache Sub-System
1364
1365 </span>
1366
1367
1368 </a>
1369 </li>
1370
1371
1372
1373
1374 </ul>
1375 </nav>
1376
1377 </li>
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
1394
1395
1396
1397 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" checked>
1398
1399
1400 <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
1401
1402
1403 <span class="md-ellipsis">
1404 Support API
1405
1406 </span>
1407
1408
1409 <span class="md-nav__icon md-icon"></span>
1410 </label>
1411
1412 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="true">
1413 <label class="md-nav__title" for="__nav_9">
1414 <span class="md-nav__icon md-icon"></span>
1415 Support API
1416 </label>
1417 <ul class="md-nav__list" data-md-scrollfix>
1418
1419
1420
1421
1422
1423
1424
1425 <li class="md-nav__item">
1426 <a href="ft2-computations.html" class="md-nav__link">
1427
1428
1429 <span class="md-ellipsis">
1430 Computations
1431
1432 </span>
1433
1434
1435 </a>
1436 </li>
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447 <li class="md-nav__item">
1448 <a href="ft2-list_processing.html" class="md-nav__link">
1449
1450
1451 <span class="md-ellipsis">
1452 List Processing
1453
1454 </span>
1455
1456
1457 </a>
1458 </li>
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471 <li class="md-nav__item md-nav__item--active">
1472
1473 <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
1474
1475
1476
1477
1478
1479 <label class="md-nav__link md-nav__link--active" for="__toc">
1480
1481
1482 <span class="md-ellipsis">
1483 Outline Processing
1484
1485 </span>
1486
1487
1488 <span class="md-nav__icon md-icon"></span>
1489 </label>
1490
1491 <a href="ft2-outline_processing.html" class="md-nav__link md-nav__link--active">
1492
1493
1494 <span class="md-ellipsis">
1495 Outline Processing
1496
1497 </span>
1498
1499
1500 </a>
1501
1502
1503
1504 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
1505
1506
1507
1508
1509
1510
1511 <label class="md-nav__title" for="__toc">
1512 <span class="md-nav__icon md-icon"></span>
1513 Table of contents
1514 </label>
1515 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
1516
1517 <li class="md-nav__item">
1518 <a href="#synopsis" class="md-nav__link">
1519 <span class="md-ellipsis">
1520 Synopsis
1521 </span>
1522 </a>
1523
1524 </li>
1525
1526 <li class="md-nav__item">
1527 <a href="#ft_outline" class="md-nav__link">
1528 <span class="md-ellipsis">
1529 FT_Outline
1530 </span>
1531 </a>
1532
1533 </li>
1534
1535 <li class="md-nav__item">
1536 <a href="#ft_outline_new" class="md-nav__link">
1537 <span class="md-ellipsis">
1538 FT_Outline_New
1539 </span>
1540 </a>
1541
1542 </li>
1543
1544 <li class="md-nav__item">
1545 <a href="#ft_outline_done" class="md-nav__link">
1546 <span class="md-ellipsis">
1547 FT_Outline_Done
1548 </span>
1549 </a>
1550
1551 </li>
1552
1553 <li class="md-nav__item">
1554 <a href="#ft_outline_copy" class="md-nav__link">
1555 <span class="md-ellipsis">
1556 FT_Outline_Copy
1557 </span>
1558 </a>
1559
1560 </li>
1561
1562 <li class="md-nav__item">
1563 <a href="#ft_outline_translate" class="md-nav__link">
1564 <span class="md-ellipsis">
1565 FT_Outline_Translate
1566 </span>
1567 </a>
1568
1569 </li>
1570
1571 <li class="md-nav__item">
1572 <a href="#ft_outline_transform" class="md-nav__link">
1573 <span class="md-ellipsis">
1574 FT_Outline_Transform
1575 </span>
1576 </a>
1577
1578 </li>
1579
1580 <li class="md-nav__item">
1581 <a href="#ft_outline_embolden" class="md-nav__link">
1582 <span class="md-ellipsis">
1583 FT_Outline_Embolden
1584 </span>
1585 </a>
1586
1587 </li>
1588
1589 <li class="md-nav__item">
1590 <a href="#ft_outline_emboldenxy" class="md-nav__link">
1591 <span class="md-ellipsis">
1592 FT_Outline_EmboldenXY
1593 </span>
1594 </a>
1595
1596 </li>
1597
1598 <li class="md-nav__item">
1599 <a href="#ft_outline_reverse" class="md-nav__link">
1600 <span class="md-ellipsis">
1601 FT_Outline_Reverse
1602 </span>
1603 </a>
1604
1605 </li>
1606
1607 <li class="md-nav__item">
1608 <a href="#ft_outline_check" class="md-nav__link">
1609 <span class="md-ellipsis">
1610 FT_Outline_Check
1611 </span>
1612 </a>
1613
1614 </li>
1615
1616 <li class="md-nav__item">
1617 <a href="#ft_outline_get_cbox" class="md-nav__link">
1618 <span class="md-ellipsis">
1619 FT_Outline_Get_CBox
1620 </span>
1621 </a>
1622
1623 </li>
1624
1625 <li class="md-nav__item">
1626 <a href="#ft_outline_get_bbox" class="md-nav__link">
1627 <span class="md-ellipsis">
1628 FT_Outline_Get_BBox
1629 </span>
1630 </a>
1631
1632 </li>
1633
1634 <li class="md-nav__item">
1635 <a href="#ft_outline_get_bitmap" class="md-nav__link">
1636 <span class="md-ellipsis">
1637 FT_Outline_Get_Bitmap
1638 </span>
1639 </a>
1640
1641 </li>
1642
1643 <li class="md-nav__item">
1644 <a href="#ft_outline_render" class="md-nav__link">
1645 <span class="md-ellipsis">
1646 FT_Outline_Render
1647 </span>
1648 </a>
1649
1650 </li>
1651
1652 <li class="md-nav__item">
1653 <a href="#ft_outline_decompose" class="md-nav__link">
1654 <span class="md-ellipsis">
1655 FT_Outline_Decompose
1656 </span>
1657 </a>
1658
1659 </li>
1660
1661 <li class="md-nav__item">
1662 <a href="#ft_outline_funcs" class="md-nav__link">
1663 <span class="md-ellipsis">
1664 FT_Outline_Funcs
1665 </span>
1666 </a>
1667
1668 </li>
1669
1670 <li class="md-nav__item">
1671 <a href="#ft_outline_movetofunc" class="md-nav__link">
1672 <span class="md-ellipsis">
1673 FT_Outline_MoveToFunc
1674 </span>
1675 </a>
1676
1677 </li>
1678
1679 <li class="md-nav__item">
1680 <a href="#ft_outline_linetofunc" class="md-nav__link">
1681 <span class="md-ellipsis">
1682 FT_Outline_LineToFunc
1683 </span>
1684 </a>
1685
1686 </li>
1687
1688 <li class="md-nav__item">
1689 <a href="#ft_outline_conictofunc" class="md-nav__link">
1690 <span class="md-ellipsis">
1691 FT_Outline_ConicToFunc
1692 </span>
1693 </a>
1694
1695 </li>
1696
1697 <li class="md-nav__item">
1698 <a href="#ft_outline_cubictofunc" class="md-nav__link">
1699 <span class="md-ellipsis">
1700 FT_Outline_CubicToFunc
1701 </span>
1702 </a>
1703
1704 </li>
1705
1706 <li class="md-nav__item">
1707 <a href="#ft_orientation" class="md-nav__link">
1708 <span class="md-ellipsis">
1709 FT_Orientation
1710 </span>
1711 </a>
1712
1713 </li>
1714
1715 <li class="md-nav__item">
1716 <a href="#ft_outline_get_orientation" class="md-nav__link">
1717 <span class="md-ellipsis">
1718 FT_Outline_Get_Orientation
1719 </span>
1720 </a>
1721
1722 </li>
1723
1724 <li class="md-nav__item">
1725 <a href="#ft_outline_xxx" class="md-nav__link">
1726 <span class="md-ellipsis">
1727 FT_OUTLINE_XXX
1728 </span>
1729 </a>
1730
1731 </li>
1732
1733 </ul>
1734
1735 </nav>
1736
1737 </li>
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748 <li class="md-nav__item">
1749 <a href="ft2-quick_advance.html" class="md-nav__link">
1750
1751
1752 <span class="md-ellipsis">
1753 Quick retrieval of advance values
1754
1755 </span>
1756
1757
1758 </a>
1759 </li>
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770 <li class="md-nav__item">
1771 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1772
1773
1774 <span class="md-ellipsis">
1775 Bitmap Handling
1776
1777 </span>
1778
1779
1780 </a>
1781 </li>
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792 <li class="md-nav__item">
1793 <a href="ft2-raster.html" class="md-nav__link">
1794
1795
1796 <span class="md-ellipsis">
1797 Scanline Converter
1798
1799 </span>
1800
1801
1802 </a>
1803 </li>
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814 <li class="md-nav__item">
1815 <a href="ft2-glyph_stroker.html" class="md-nav__link">
1816
1817
1818 <span class="md-ellipsis">
1819 Glyph Stroker
1820
1821 </span>
1822
1823
1824 </a>
1825 </li>
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836 <li class="md-nav__item">
1837 <a href="ft2-system_interface.html" class="md-nav__link">
1838
1839
1840 <span class="md-ellipsis">
1841 System Interface
1842
1843 </span>
1844
1845
1846 </a>
1847 </li>
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858 <li class="md-nav__item">
1859 <a href="ft2-module_management.html" class="md-nav__link">
1860
1861
1862 <span class="md-ellipsis">
1863 Module Management
1864
1865 </span>
1866
1867
1868 </a>
1869 </li>
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880 <li class="md-nav__item">
1881 <a href="ft2-gzip.html" class="md-nav__link">
1882
1883
1884 <span class="md-ellipsis">
1885 GZIP Streams
1886
1887 </span>
1888
1889
1890 </a>
1891 </li>
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902 <li class="md-nav__item">
1903 <a href="ft2-lzw.html" class="md-nav__link">
1904
1905
1906 <span class="md-ellipsis">
1907 LZW Streams
1908
1909 </span>
1910
1911
1912 </a>
1913 </li>
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 <li class="md-nav__item">
1925 <a href="ft2-bzip2.html" class="md-nav__link">
1926
1927
1928 <span class="md-ellipsis">
1929 BZIP2 Streams
1930
1931 </span>
1932
1933
1934 </a>
1935 </li>
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946 <li class="md-nav__item">
1947 <a href="ft2-debugging_apis.html" class="md-nav__link">
1948
1949
1950 <span class="md-ellipsis">
1951 External Debugging APIs
1952
1953 </span>
1954
1955
1956 </a>
1957 </li>
1958
1959
1960
1961
1962 </ul>
1963 </nav>
1964
1965 </li>
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979 <li class="md-nav__item md-nav__item--nested">
1980
1981
1982
1983 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
1984
1985
1986 <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
1987
1988
1989 <span class="md-ellipsis">
1990 Error Codes
1991
1992 </span>
1993
1994
1995 <span class="md-nav__icon md-icon"></span>
1996 </label>
1997
1998 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
1999 <label class="md-nav__title" for="__nav_10">
2000 <span class="md-nav__icon md-icon"></span>
2001 Error Codes
2002 </label>
2003 <ul class="md-nav__list" data-md-scrollfix>
2004
2005
2006
2007
2008
2009
2010
2011 <li class="md-nav__item">
2012 <a href="ft2-error_enumerations.html" class="md-nav__link">
2013
2014
2015 <span class="md-ellipsis">
2016 Error Enumerations
2017
2018 </span>
2019
2020
2021 </a>
2022 </li>
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 <li class="md-nav__item">
2034 <a href="ft2-error_code_values.html" class="md-nav__link">
2035
2036
2037 <span class="md-ellipsis">
2038 Error Code Values
2039
2040 </span>
2041
2042
2043 </a>
2044 </li>
2045
2046
2047
2048
2049 </ul>
2050 </nav>
2051
2052 </li>
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066 <li class="md-nav__item md-nav__item--nested">
2067
2068
2069
2070 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
2071
2072
2073 <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
2074
2075
2076 <span class="md-ellipsis">
2077 Miscellaneous
2078
2079 </span>
2080
2081
2082 <span class="md-nav__icon md-icon"></span>
2083 </label>
2084
2085 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
2086 <label class="md-nav__title" for="__nav_11">
2087 <span class="md-nav__icon md-icon"></span>
2088 Miscellaneous
2089 </label>
2090 <ul class="md-nav__list" data-md-scrollfix>
2091
2092
2093
2094
2095
2096
2097
2098 <li class="md-nav__item">
2099 <a href="ft2-gx_validation.html" class="md-nav__link">
2100
2101
2102 <span class="md-ellipsis">
2103 TrueTypeGX/AAT Validation
2104
2105 </span>
2106
2107
2108 </a>
2109 </li>
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120 <li class="md-nav__item">
2121 <a href="ft2-incremental.html" class="md-nav__link">
2122
2123
2124 <span class="md-ellipsis">
2125 Incremental Loading
2126
2127 </span>
2128
2129
2130 </a>
2131 </li>
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142 <li class="md-nav__item">
2143 <a href="ft2-truetype_engine.html" class="md-nav__link">
2144
2145
2146 <span class="md-ellipsis">
2147 The TrueType Engine
2148
2149 </span>
2150
2151
2152 </a>
2153 </li>
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164 <li class="md-nav__item">
2165 <a href="ft2-ot_validation.html" class="md-nav__link">
2166
2167
2168 <span class="md-ellipsis">
2169 OpenType Validation
2170
2171 </span>
2172
2173
2174 </a>
2175 </li>
2176
2177
2178
2179
2180 </ul>
2181 </nav>
2182
2183 </li>
2184
2185
2186
2187 </ul>
2188 </nav>
2189 </div>
2190 </div>
2191 </div>
2192
2193
2194
2195 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2196 <div class="md-sidebar__scrollwrap">
2197 <div class="md-sidebar__inner">
2198
2199
2200 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
2201
2202
2203
2204
2205
2206
2207 <label class="md-nav__title" for="__toc">
2208 <span class="md-nav__icon md-icon"></span>
2209 Table of contents
2210 </label>
2211 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2212
2213 <li class="md-nav__item">
2214 <a href="#synopsis" class="md-nav__link">
2215 <span class="md-ellipsis">
2216 Synopsis
2217 </span>
2218 </a>
2219
2220 </li>
2221
2222 <li class="md-nav__item">
2223 <a href="#ft_outline" class="md-nav__link">
2224 <span class="md-ellipsis">
2225 FT_Outline
2226 </span>
2227 </a>
2228
2229 </li>
2230
2231 <li class="md-nav__item">
2232 <a href="#ft_outline_new" class="md-nav__link">
2233 <span class="md-ellipsis">
2234 FT_Outline_New
2235 </span>
2236 </a>
2237
2238 </li>
2239
2240 <li class="md-nav__item">
2241 <a href="#ft_outline_done" class="md-nav__link">
2242 <span class="md-ellipsis">
2243 FT_Outline_Done
2244 </span>
2245 </a>
2246
2247 </li>
2248
2249 <li class="md-nav__item">
2250 <a href="#ft_outline_copy" class="md-nav__link">
2251 <span class="md-ellipsis">
2252 FT_Outline_Copy
2253 </span>
2254 </a>
2255
2256 </li>
2257
2258 <li class="md-nav__item">
2259 <a href="#ft_outline_translate" class="md-nav__link">
2260 <span class="md-ellipsis">
2261 FT_Outline_Translate
2262 </span>
2263 </a>
2264
2265 </li>
2266
2267 <li class="md-nav__item">
2268 <a href="#ft_outline_transform" class="md-nav__link">
2269 <span class="md-ellipsis">
2270 FT_Outline_Transform
2271 </span>
2272 </a>
2273
2274 </li>
2275
2276 <li class="md-nav__item">
2277 <a href="#ft_outline_embolden" class="md-nav__link">
2278 <span class="md-ellipsis">
2279 FT_Outline_Embolden
2280 </span>
2281 </a>
2282
2283 </li>
2284
2285 <li class="md-nav__item">
2286 <a href="#ft_outline_emboldenxy" class="md-nav__link">
2287 <span class="md-ellipsis">
2288 FT_Outline_EmboldenXY
2289 </span>
2290 </a>
2291
2292 </li>
2293
2294 <li class="md-nav__item">
2295 <a href="#ft_outline_reverse" class="md-nav__link">
2296 <span class="md-ellipsis">
2297 FT_Outline_Reverse
2298 </span>
2299 </a>
2300
2301 </li>
2302
2303 <li class="md-nav__item">
2304 <a href="#ft_outline_check" class="md-nav__link">
2305 <span class="md-ellipsis">
2306 FT_Outline_Check
2307 </span>
2308 </a>
2309
2310 </li>
2311
2312 <li class="md-nav__item">
2313 <a href="#ft_outline_get_cbox" class="md-nav__link">
2314 <span class="md-ellipsis">
2315 FT_Outline_Get_CBox
2316 </span>
2317 </a>
2318
2319 </li>
2320
2321 <li class="md-nav__item">
2322 <a href="#ft_outline_get_bbox" class="md-nav__link">
2323 <span class="md-ellipsis">
2324 FT_Outline_Get_BBox
2325 </span>
2326 </a>
2327
2328 </li>
2329
2330 <li class="md-nav__item">
2331 <a href="#ft_outline_get_bitmap" class="md-nav__link">
2332 <span class="md-ellipsis">
2333 FT_Outline_Get_Bitmap
2334 </span>
2335 </a>
2336
2337 </li>
2338
2339 <li class="md-nav__item">
2340 <a href="#ft_outline_render" class="md-nav__link">
2341 <span class="md-ellipsis">
2342 FT_Outline_Render
2343 </span>
2344 </a>
2345
2346 </li>
2347
2348 <li class="md-nav__item">
2349 <a href="#ft_outline_decompose" class="md-nav__link">
2350 <span class="md-ellipsis">
2351 FT_Outline_Decompose
2352 </span>
2353 </a>
2354
2355 </li>
2356
2357 <li class="md-nav__item">
2358 <a href="#ft_outline_funcs" class="md-nav__link">
2359 <span class="md-ellipsis">
2360 FT_Outline_Funcs
2361 </span>
2362 </a>
2363
2364 </li>
2365
2366 <li class="md-nav__item">
2367 <a href="#ft_outline_movetofunc" class="md-nav__link">
2368 <span class="md-ellipsis">
2369 FT_Outline_MoveToFunc
2370 </span>
2371 </a>
2372
2373 </li>
2374
2375 <li class="md-nav__item">
2376 <a href="#ft_outline_linetofunc" class="md-nav__link">
2377 <span class="md-ellipsis">
2378 FT_Outline_LineToFunc
2379 </span>
2380 </a>
2381
2382 </li>
2383
2384 <li class="md-nav__item">
2385 <a href="#ft_outline_conictofunc" class="md-nav__link">
2386 <span class="md-ellipsis">
2387 FT_Outline_ConicToFunc
2388 </span>
2389 </a>
2390
2391 </li>
2392
2393 <li class="md-nav__item">
2394 <a href="#ft_outline_cubictofunc" class="md-nav__link">
2395 <span class="md-ellipsis">
2396 FT_Outline_CubicToFunc
2397 </span>
2398 </a>
2399
2400 </li>
2401
2402 <li class="md-nav__item">
2403 <a href="#ft_orientation" class="md-nav__link">
2404 <span class="md-ellipsis">
2405 FT_Orientation
2406 </span>
2407 </a>
2408
2409 </li>
2410
2411 <li class="md-nav__item">
2412 <a href="#ft_outline_get_orientation" class="md-nav__link">
2413 <span class="md-ellipsis">
2414 FT_Outline_Get_Orientation
2415 </span>
2416 </a>
2417
2418 </li>
2419
2420 <li class="md-nav__item">
2421 <a href="#ft_outline_xxx" class="md-nav__link">
2422 <span class="md-ellipsis">
2423 FT_OUTLINE_XXX
2424 </span>
2425 </a>
2426
2427 </li>
2428
2429 </ul>
2430
2431 </nav>
2432 </div>
2433 </div>
2434 </div>
2435
2436
2437
2438 <div class="md-content" data-md-component="content">
2439 <article class="md-content__inner md-typeset">
2440
2441
2442
2443
2444
2445 <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#support-api">Support API</a> &raquo; Outline Processing</p>
2446 <hr />
2447 <h1 id="outline-processing">Outline Processing<a class="headerlink" href="#outline-processing" title="Permanent link">&para;</a></h1>
2448 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
2449 <p>This section contains routines used to create and destroy scalable glyph images known as &lsquo;outlines&rsquo;. These can also be measured, transformed, and converted into bitmaps and pixmaps.</p>
2450 <h2 id="ft_outline">FT_Outline<a class="headerlink" href="#ft_outline" title="Permanent link">&para;</a></h2>
2451 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
2452 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Outline_
2453 {
2454 <span class="keyword">unsigned</span> <span class="keyword">short</span> n_contours; /* number of contours in glyph */
2455 <span class="keyword">unsigned</span> <span class="keyword">short</span> n_points; /* number of points in the glyph */
2456
2457 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* points; /* the outline's points */
2458 <span class="keyword">unsigned</span> <span class="keyword">char</span>* tags; /* the points flags */
2459 <span class="keyword">unsigned</span> <span class="keyword">short</span>* contours; /* the contour end points */
2460
2461 <span class="keyword">int</span> flags; /* outline masks */
2462
2463 } <b>FT_Outline</b>;
2464 </code></pre></div>
2465
2466 <p>This structure is used to describe an outline to the scan-line converter.</p>
2467 <h4>fields</h4>
2468 <table class="fields">
2469 <tr><td class="val" id="n_contours">n_contours</td><td class="desc">
2470 <p>The number of contours in the outline.</p>
2471 </td></tr>
2472 <tr><td class="val" id="n_points">n_points</td><td class="desc">
2473 <p>The number of points in the outline.</p>
2474 </td></tr>
2475 <tr><td class="val" id="points">points</td><td class="desc">
2476 <p>A pointer to an array of <code>n_points</code> <code><a href="ft2-basic_types.html#ft_vector">FT_Vector</a></code> elements, giving the outline's point coordinates.</p>
2477 </td></tr>
2478 <tr><td class="val" id="tags">tags</td><td class="desc">
2479 <p>A pointer to an array of <code>n_points</code> chars, giving each outline point's type.</p>
2480 <p>If bit 0 is unset, the point is ‘off’ the curve, i.e., a Bezier control point, while it is ‘on’ if set.</p>
2481 <p>Bit 1 is meaningful for ‘off’ points only. If set, it indicates a third-order Bezier arc control point; and a second-order control point if unset.</p>
2482 <p>If bit 2 is set, bits 5-7 contain the drop-out mode (as defined in the OpenType specification; the value is the same as the argument to the ‘SCANTYPE’ instruction).</p>
2483 <p>Bits 3 and 4 are reserved for internal purposes.</p>
2484 </td></tr>
2485 <tr><td class="val" id="contours">contours</td><td class="desc">
2486 <p>An array of <code>n_contours</code> shorts, giving the end point of each contour within the outline. For example, the first contour is defined by the points ‘0’ to <code>contours[0]</code>, the second one is defined by the points <code>contours[0]+1</code> to <code>contours[1]</code>, etc.</p>
2487 </td></tr>
2488 <tr><td class="val" id="flags">flags</td><td class="desc">
2489 <p>A set of bit flags used to characterize the outline and give hints to the scan-converter and hinter on how to convert/grid-fit it. See <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_XXX</a></code>.</p>
2490 </td></tr>
2491 </table>
2492
2493 <h4>note</h4>
2494
2495 <p>The B/W rasterizer only checks bit&nbsp;2 in the <code>tags</code> array for the first point of each contour. The drop-out mode as given with <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_IGNORE_DROPOUTS</a></code>, <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_SMART_DROPOUTS</a></code>, and <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_INCLUDE_STUBS</a></code> in <code>flags</code> is then overridden.</p>
2496 <hr>
2497
2498 <h2 id="ft_outline_new">FT_Outline_New<a class="headerlink" href="#ft_outline_new" title="Permanent link">&para;</a></h2>
2499 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2500 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2501 <b>FT_Outline_New</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2502 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> numPoints,
2503 <a href="ft2-basic_types.html#ft_int">FT_Int</a> numContours,
2504 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a> *anoutline );
2505 </code></pre></div>
2506
2507 <p>Create a new outline of a given size.</p>
2508 <h4>input</h4>
2509 <table class="fields">
2510 <tr><td class="val" id="library">library</td><td class="desc">
2511 <p>A handle to the library object from where the outline is allocated. Note however that the new outline will <strong>not</strong> necessarily be <strong>freed</strong>, when destroying the library, by <code><a href="ft2-library_setup.html#ft_done_freetype">FT_Done_FreeType</a></code>.</p>
2512 </td></tr>
2513 <tr><td class="val" id="numpoints">numPoints</td><td class="desc">
2514 <p>The maximum number of points within the outline. Must be smaller than or equal to 0xFFFF (65535).</p>
2515 </td></tr>
2516 <tr><td class="val" id="numcontours">numContours</td><td class="desc">
2517 <p>The maximum number of contours within the outline. This value must be in the range 0 to <code>numPoints</code>.</p>
2518 </td></tr>
2519 </table>
2520
2521 <h4>output</h4>
2522 <table class="fields">
2523 <tr><td class="val" id="anoutline">anoutline</td><td class="desc">
2524 <p>A handle to the new outline.</p>
2525 </td></tr>
2526 </table>
2527
2528 <h4>return</h4>
2529
2530 <p>FreeType error code. 0&nbsp;means success.</p>
2531 <h4>note</h4>
2532
2533 <p>The reason why this function takes a <code>library</code> parameter is simply to use the library's memory allocator.</p>
2534 <hr>
2535
2536 <h2 id="ft_outline_done">FT_Outline_Done<a class="headerlink" href="#ft_outline_done" title="Permanent link">&para;</a></h2>
2537 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2538 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2539 <b>FT_Outline_Done</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2540 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
2541 </code></pre></div>
2542
2543 <p>Destroy an outline created with <code><a href="ft2-outline_processing.html#ft_outline_new">FT_Outline_New</a></code>.</p>
2544 <h4>input</h4>
2545 <table class="fields">
2546 <tr><td class="val" id="library">library</td><td class="desc">
2547 <p>A handle of the library object used to allocate the outline.</p>
2548 </td></tr>
2549 <tr><td class="val" id="outline">outline</td><td class="desc">
2550 <p>A pointer to the outline object to be discarded.</p>
2551 </td></tr>
2552 </table>
2553
2554 <h4>return</h4>
2555
2556 <p>FreeType error code. 0&nbsp;means success.</p>
2557 <h4>note</h4>
2558
2559 <p>If the outline's &lsquo;owner&rsquo; field is not set, only the outline descriptor will be released.</p>
2560 <hr>
2561
2562 <h2 id="ft_outline_copy">FT_Outline_Copy<a class="headerlink" href="#ft_outline_copy" title="Permanent link">&para;</a></h2>
2563 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2564 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2565 <b>FT_Outline_Copy</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* source,
2566 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a> *target );
2567 </code></pre></div>
2568
2569 <p>Copy an outline into another one. Both objects must have the same sizes (number of points &amp; number of contours) when this function is called.</p>
2570 <h4>input</h4>
2571 <table class="fields">
2572 <tr><td class="val" id="source">source</td><td class="desc">
2573 <p>A handle to the source outline.</p>
2574 </td></tr>
2575 </table>
2576
2577 <h4>output</h4>
2578 <table class="fields">
2579 <tr><td class="val" id="target">target</td><td class="desc">
2580 <p>A handle to the target outline.</p>
2581 </td></tr>
2582 </table>
2583
2584 <h4>return</h4>
2585
2586 <p>FreeType error code. 0&nbsp;means success.</p>
2587 <hr>
2588
2589 <h2 id="ft_outline_translate">FT_Outline_Translate<a class="headerlink" href="#ft_outline_translate" title="Permanent link">&para;</a></h2>
2590 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2591 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2592 <b>FT_Outline_Translate</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2593 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> xOffset,
2594 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> yOffset );
2595 </code></pre></div>
2596
2597 <p>Apply a simple translation to the points of an outline.</p>
2598 <h4>inout</h4>
2599 <table class="fields">
2600 <tr><td class="val" id="outline">outline</td><td class="desc">
2601 <p>A pointer to the target outline descriptor.</p>
2602 </td></tr>
2603 </table>
2604
2605 <h4>input</h4>
2606 <table class="fields">
2607 <tr><td class="val" id="xoffset">xOffset</td><td class="desc">
2608 <p>The horizontal offset.</p>
2609 </td></tr>
2610 <tr><td class="val" id="yoffset">yOffset</td><td class="desc">
2611 <p>The vertical offset.</p>
2612 </td></tr>
2613 </table>
2614
2615 <hr>
2616
2617 <h2 id="ft_outline_transform">FT_Outline_Transform<a class="headerlink" href="#ft_outline_transform" title="Permanent link">&para;</a></h2>
2618 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2619 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2620 <b>FT_Outline_Transform</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2621 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_matrix">FT_Matrix</a>* matrix );
2622 </code></pre></div>
2623
2624 <p>Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc.</p>
2625 <h4>inout</h4>
2626 <table class="fields">
2627 <tr><td class="val" id="outline">outline</td><td class="desc">
2628 <p>A pointer to the target outline descriptor.</p>
2629 </td></tr>
2630 </table>
2631
2632 <h4>input</h4>
2633 <table class="fields">
2634 <tr><td class="val" id="matrix">matrix</td><td class="desc">
2635 <p>A pointer to the transformation matrix.</p>
2636 </td></tr>
2637 </table>
2638
2639 <h4>note</h4>
2640
2641 <p>You can use <code><a href="ft2-outline_processing.html#ft_outline_translate">FT_Outline_Translate</a></code> if you need to translate the outline's points.</p>
2642 <hr>
2643
2644 <h2 id="ft_outline_embolden">FT_Outline_Embolden<a class="headerlink" href="#ft_outline_embolden" title="Permanent link">&para;</a></h2>
2645 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2646 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2647 <b>FT_Outline_Embolden</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2648 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> strength );
2649 </code></pre></div>
2650
2651 <p>Embolden an outline. The new outline will be at most 4&nbsp;times <code>strength</code> pixels wider and higher. You may think of the left and bottom borders as unchanged.</p>
2652 <p>Negative <code>strength</code> values to reduce the outline thickness are possible also.</p>
2653 <h4>inout</h4>
2654 <table class="fields">
2655 <tr><td class="val" id="outline">outline</td><td class="desc">
2656 <p>A handle to the target outline.</p>
2657 </td></tr>
2658 </table>
2659
2660 <h4>input</h4>
2661 <table class="fields">
2662 <tr><td class="val" id="strength">strength</td><td class="desc">
2663 <p>How strong the glyph is emboldened. Expressed in 26.6 pixel format.</p>
2664 </td></tr>
2665 </table>
2666
2667 <h4>return</h4>
2668
2669 <p>FreeType error code. 0&nbsp;means success.</p>
2670 <h4>note</h4>
2671
2672 <p>The used algorithm to increase or decrease the thickness of the glyph doesn't change the number of points; this means that certain situations like acute angles or intersections are sometimes handled incorrectly.</p>
2673 <p>If you need &lsquo;better&rsquo; metrics values you should call <code><a href="ft2-outline_processing.html#ft_outline_get_cbox">FT_Outline_Get_CBox</a></code> or <code><a href="ft2-outline_processing.html#ft_outline_get_bbox">FT_Outline_Get_BBox</a></code>.</p>
2674 <p>To get meaningful results, font scaling values must be set with functions like <code><a href="ft2-sizing_and_scaling.html#ft_set_char_size">FT_Set_Char_Size</a></code> before calling FT_Render_Glyph.</p>
2675 <h4>example</h4>
2676 <div class="highlight"><pre><span></span><code> FT_Load_Glyph( face, index, FT_LOAD_DEFAULT );
2677
2678 if ( face-&gt;glyph-&gt;format == FT_GLYPH_FORMAT_OUTLINE )
2679 FT_Outline_Embolden( &amp;face-&gt;glyph-&gt;outline, strength );
2680 </code></pre></div>
2681 <hr>
2682
2683 <h2 id="ft_outline_emboldenxy">FT_Outline_EmboldenXY<a class="headerlink" href="#ft_outline_emboldenxy" title="Permanent link">&para;</a></h2>
2684 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2685 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2686 <b>FT_Outline_EmboldenXY</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2687 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> xstrength,
2688 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> ystrength );
2689 </code></pre></div>
2690
2691 <p>Embolden an outline. The new outline will be <code>xstrength</code> pixels wider and <code>ystrength</code> pixels higher. Otherwise, it is similar to <code><a href="ft2-outline_processing.html#ft_outline_embolden">FT_Outline_Embolden</a></code>, which uses the same strength in both directions.</p>
2692 <h4>since</h4>
2693
2694 <p>2.4.10</p>
2695 <hr>
2696
2697 <h2 id="ft_outline_reverse">FT_Outline_Reverse<a class="headerlink" href="#ft_outline_reverse" title="Permanent link">&para;</a></h2>
2698 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2699 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2700 <b>FT_Outline_Reverse</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
2701 </code></pre></div>
2702
2703 <p>Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs.</p>
2704 <h4>inout</h4>
2705 <table class="fields">
2706 <tr><td class="val" id="outline">outline</td><td class="desc">
2707 <p>A pointer to the target outline descriptor.</p>
2708 </td></tr>
2709 </table>
2710
2711 <h4>note</h4>
2712
2713 <p>This function toggles the bit flag <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_REVERSE_FILL</a></code> in the outline's <code>flags</code> field.</p>
2714 <p>It shouldn't be used by a normal client application, unless it knows what it is doing.</p>
2715 <hr>
2716
2717 <h2 id="ft_outline_check">FT_Outline_Check<a class="headerlink" href="#ft_outline_check" title="Permanent link">&para;</a></h2>
2718 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2719 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2720 <b>FT_Outline_Check</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
2721 </code></pre></div>
2722
2723 <p>Check the contents of an outline descriptor.</p>
2724 <h4>input</h4>
2725 <table class="fields">
2726 <tr><td class="val" id="outline">outline</td><td class="desc">
2727 <p>A handle to a source outline.</p>
2728 </td></tr>
2729 </table>
2730
2731 <h4>return</h4>
2732
2733 <p>FreeType error code. 0&nbsp;means success.</p>
2734 <h4>note</h4>
2735
2736 <p>An empty outline, or an outline with a single point only is also valid.</p>
2737 <hr>
2738
2739 <h2 id="ft_outline_get_cbox">FT_Outline_Get_CBox<a class="headerlink" href="#ft_outline_get_cbox" title="Permanent link">&para;</a></h2>
2740 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2741 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2742 <b>FT_Outline_Get_CBox</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2743 <a href="ft2-basic_types.html#ft_bbox">FT_BBox</a> *acbox );
2744 </code></pre></div>
2745
2746 <p>Return an outline's &lsquo;control box&rsquo;. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs).</p>
2747 <p>Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the &lsquo;ftbbox&rsquo; component, which is dedicated to this single task.</p>
2748 <h4>input</h4>
2749 <table class="fields">
2750 <tr><td class="val" id="outline">outline</td><td class="desc">
2751 <p>A pointer to the source outline descriptor.</p>
2752 </td></tr>
2753 </table>
2754
2755 <h4>output</h4>
2756 <table class="fields">
2757 <tr><td class="val" id="acbox">acbox</td><td class="desc">
2758 <p>The outline's control box.</p>
2759 </td></tr>
2760 </table>
2761
2762 <h4>note</h4>
2763
2764 <p>See <code><a href="ft2-glyph_management.html#ft_glyph_get_cbox">FT_Glyph_Get_CBox</a></code> for a discussion of tricky fonts.</p>
2765 <hr>
2766
2767 <h2 id="ft_outline_get_bbox">FT_Outline_Get_BBox<a class="headerlink" href="#ft_outline_get_bbox" title="Permanent link">&para;</a></h2>
2768 <p>Defined in FT_BBOX_H (freetype/ftbbox.h).</p>
2769 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2770 <b>FT_Outline_Get_BBox</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2771 <a href="ft2-basic_types.html#ft_bbox">FT_BBox</a> *abbox );
2772 </code></pre></div>
2773
2774 <p>Compute the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm that returns <em>very</em> quickly when the two boxes coincide. Otherwise, the outline Bezier arcs are traversed to extract their extrema.</p>
2775 <h4>input</h4>
2776 <table class="fields">
2777 <tr><td class="val" id="outline">outline</td><td class="desc">
2778 <p>A pointer to the source outline.</p>
2779 </td></tr>
2780 </table>
2781
2782 <h4>output</h4>
2783 <table class="fields">
2784 <tr><td class="val" id="abbox">abbox</td><td class="desc">
2785 <p>The outline's exact bounding box.</p>
2786 </td></tr>
2787 </table>
2788
2789 <h4>return</h4>
2790
2791 <p>FreeType error code. 0&nbsp;means success.</p>
2792 <h4>note</h4>
2793
2794 <p>If the font is tricky and the glyph has been loaded with <code><a href="ft2-glyph_retrieval.html#ft_load_xxx">FT_LOAD_NO_SCALE</a></code>, the resulting BBox is meaningless. To get reasonable values for the BBox it is necessary to load the glyph at a large ppem value (so that the hinting instructions can properly shift and scale the subglyphs), then extracting the BBox, which can be eventually converted back to font units.</p>
2795 <hr>
2796
2797 <h2 id="ft_outline_get_bitmap">FT_Outline_Get_Bitmap<a class="headerlink" href="#ft_outline_get_bitmap" title="Permanent link">&para;</a></h2>
2798 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2799 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2800 <b>FT_Outline_Get_Bitmap</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2801 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2802 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_bitmap">FT_Bitmap</a> *abitmap );
2803 </code></pre></div>
2804
2805 <p>Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap.</p>
2806 <h4>input</h4>
2807 <table class="fields">
2808 <tr><td class="val" id="library">library</td><td class="desc">
2809 <p>A handle to a FreeType library object.</p>
2810 </td></tr>
2811 <tr><td class="val" id="outline">outline</td><td class="desc">
2812 <p>A pointer to the source outline descriptor.</p>
2813 </td></tr>
2814 </table>
2815
2816 <h4>inout</h4>
2817 <table class="fields">
2818 <tr><td class="val" id="abitmap">abitmap</td><td class="desc">
2819 <p>A pointer to the target bitmap descriptor.</p>
2820 </td></tr>
2821 </table>
2822
2823 <h4>return</h4>
2824
2825 <p>FreeType error code. 0&nbsp;means success.</p>
2826 <h4>note</h4>
2827
2828 <p>This function does <strong>not create</strong> the bitmap, it only renders an outline image within the one you pass to it! Consequently, the various fields in <code>abitmap</code> should be set accordingly.</p>
2829 <p>It will use the raster corresponding to the default glyph format.</p>
2830 <p>The value of the <code>num_grays</code> field in <code>abitmap</code> is ignored. If you select the gray-level rasterizer, and you want less than 256 gray levels, you have to use <code><a href="ft2-outline_processing.html#ft_outline_render">FT_Outline_Render</a></code> directly.</p>
2831 <hr>
2832
2833 <h2 id="ft_outline_render">FT_Outline_Render<a class="headerlink" href="#ft_outline_render" title="Permanent link">&para;</a></h2>
2834 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2835 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2836 <b>FT_Outline_Render</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2837 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2838 <a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a>* params );
2839 </code></pre></div>
2840
2841 <p>Render an outline within a bitmap using the current scan-convert.</p>
2842 <h4>input</h4>
2843 <table class="fields">
2844 <tr><td class="val" id="library">library</td><td class="desc">
2845 <p>A handle to a FreeType library object.</p>
2846 </td></tr>
2847 <tr><td class="val" id="outline">outline</td><td class="desc">
2848 <p>A pointer to the source outline descriptor.</p>
2849 </td></tr>
2850 </table>
2851
2852 <h4>inout</h4>
2853 <table class="fields">
2854 <tr><td class="val" id="params">params</td><td class="desc">
2855 <p>A pointer to an <code><a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a></code> structure used to describe the rendering operation.</p>
2856 </td></tr>
2857 </table>
2858
2859 <h4>return</h4>
2860
2861 <p>FreeType error code. 0&nbsp;means success.</p>
2862 <h4>note</h4>
2863
2864 <p>This advanced function uses <code><a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a></code> as an argument. The field <code>params.source</code> will be set to <code>outline</code> before the scan converter is called, which means that the value you give to it is actually ignored. Either <code>params.target</code> must point to preallocated bitmap, or <code><a href="ft2-raster.html#ft_raster_flag_xxx">FT_RASTER_FLAG_DIRECT</a></code> must be set in <code>params.flags</code> allowing FreeType rasterizer to be used for direct composition, translucency, etc. See <code><a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a></code> for more details.</p>
2865 <hr>
2866
2867 <h2 id="ft_outline_decompose">FT_Outline_Decompose<a class="headerlink" href="#ft_outline_decompose" title="Permanent link">&para;</a></h2>
2868 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
2869 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2870 <b>FT_Outline_Decompose</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2871 <span class="keyword">const</span> <a href="ft2-outline_processing.html#ft_outline_funcs">FT_Outline_Funcs</a>* func_interface,
2872 <span class="keyword">void</span>* user );
2873 </code></pre></div>
2874
2875 <p>Walk over an outline's structure to decompose it into individual segments and Bezier arcs. This function also emits &lsquo;move to&rsquo; operations to indicate the start of new contours in the outline.</p>
2876 <h4>input</h4>
2877 <table class="fields">
2878 <tr><td class="val" id="outline">outline</td><td class="desc">
2879 <p>A pointer to the source target.</p>
2880 </td></tr>
2881 <tr><td class="val" id="func_interface">func_interface</td><td class="desc">
2882 <p>A table of ‘emitters’, i.e., function pointers called during decomposition to indicate path operations.</p>
2883 </td></tr>
2884 </table>
2885
2886 <h4>inout</h4>
2887 <table class="fields">
2888 <tr><td class="val" id="user">user</td><td class="desc">
2889 <p>A typeless pointer that is passed to each emitter during the decomposition. It can be used to store the state during the decomposition.</p>
2890 </td></tr>
2891 </table>
2892
2893 <h4>return</h4>
2894
2895 <p>FreeType error code. 0&nbsp;means success.</p>
2896 <h4>note</h4>
2897
2898 <p>Degenerate contours, segments, and Bezier arcs may be reported. In most cases, it is best to filter these out before using the outline for stroking or other path modification purposes (which may cause degenerate segments to become non-degenerate and visible, like when stroke caps are used or the path is otherwise outset). Some glyph outlines may contain deliberate degenerate single points for mark attachement.</p>
2899 <p>Similarly, the function returns success for an empty outline also (doing nothing, that is, not calling any emitter); if necessary, you should filter this out, too.</p>
2900 <hr>
2901
2902 <h2 id="ft_outline_funcs">FT_Outline_Funcs<a class="headerlink" href="#ft_outline_funcs" title="Permanent link">&para;</a></h2>
2903 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
2904 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Outline_Funcs_
2905 {
2906 <a href="ft2-outline_processing.html#ft_outline_movetofunc">FT_Outline_MoveToFunc</a> move_to;
2907 <a href="ft2-outline_processing.html#ft_outline_linetofunc">FT_Outline_LineToFunc</a> line_to;
2908 <a href="ft2-outline_processing.html#ft_outline_conictofunc">FT_Outline_ConicToFunc</a> conic_to;
2909 <a href="ft2-outline_processing.html#ft_outline_cubictofunc">FT_Outline_CubicToFunc</a> cubic_to;
2910
2911 <span class="keyword">int</span> shift;
2912 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> delta;
2913
2914 } <b>FT_Outline_Funcs</b>;
2915 </code></pre></div>
2916
2917 <p>A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Beziers.</p>
2918 <h4>fields</h4>
2919 <table class="fields">
2920 <tr><td class="val" id="move_to">move_to</td><td class="desc">
2921 <p>The ‘move to’ emitter.</p>
2922 </td></tr>
2923 <tr><td class="val" id="line_to">line_to</td><td class="desc">
2924 <p>The segment emitter.</p>
2925 </td></tr>
2926 <tr><td class="val" id="conic_to">conic_to</td><td class="desc">
2927 <p>The second-order Bezier arc emitter.</p>
2928 </td></tr>
2929 <tr><td class="val" id="cubic_to">cubic_to</td><td class="desc">
2930 <p>The third-order Bezier arc emitter.</p>
2931 </td></tr>
2932 <tr><td class="val" id="shift">shift</td><td class="desc">
2933 <p>The shift that is applied to coordinates before they are sent to the emitter.</p>
2934 </td></tr>
2935 <tr><td class="val" id="delta">delta</td><td class="desc">
2936 <p>The delta that is applied to coordinates before they are sent to the emitter, but after the shift.</p>
2937 </td></tr>
2938 </table>
2939
2940 <h4>note</h4>
2941
2942 <p>The point coordinates sent to the emitters are the transformed version of the original coordinates (this is important for high accuracy during scan-conversion). The transformation is simple:
2943 <div class="highlight"><pre><span></span><code> x&#39; = (x &lt;&lt; shift) - delta
2944 y&#39; = (y &lt;&lt; shift) - delta
2945 </code></pre></div></p>
2946 <p>Set the values of <code>shift</code> and <code>delta</code> to&nbsp;0 to get the original point coordinates.</p>
2947 <hr>
2948
2949 <h2 id="ft_outline_movetofunc">FT_Outline_MoveToFunc<a class="headerlink" href="#ft_outline_movetofunc" title="Permanent link">&para;</a></h2>
2950 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
2951 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">int</span>
2952 (*<b>FT_Outline_MoveToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to,
2953 <span class="keyword">void</span>* user );
2954
2955 #<span class="keyword">define</span> FT_Outline_MoveTo_Func <b>FT_Outline_MoveToFunc</b>
2956 </code></pre></div>
2957
2958 <p>A function pointer type used to describe the signature of a &lsquo;move to&rsquo; function during outline walking/decomposition.</p>
2959 <p>A &lsquo;move to&rsquo; is emitted to start a new contour in an outline.</p>
2960 <h4>input</h4>
2961 <table class="fields">
2962 <tr><td class="val" id="to">to</td><td class="desc">
2963 <p>A pointer to the target point of the ‘move to’.</p>
2964 </td></tr>
2965 <tr><td class="val" id="user">user</td><td class="desc">
2966 <p>A typeless pointer, which is passed from the caller of the decomposition function.</p>
2967 </td></tr>
2968 </table>
2969
2970 <h4>return</h4>
2971
2972 <p>Error code. 0&nbsp;means success.</p>
2973 <hr>
2974
2975 <h2 id="ft_outline_linetofunc">FT_Outline_LineToFunc<a class="headerlink" href="#ft_outline_linetofunc" title="Permanent link">&para;</a></h2>
2976 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
2977 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">int</span>
2978 (*<b>FT_Outline_LineToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to,
2979 <span class="keyword">void</span>* user );
2980
2981 #<span class="keyword">define</span> FT_Outline_LineTo_Func <b>FT_Outline_LineToFunc</b>
2982 </code></pre></div>
2983
2984 <p>A function pointer type used to describe the signature of a &lsquo;line to&rsquo; function during outline walking/decomposition.</p>
2985 <p>A &lsquo;line to&rsquo; is emitted to indicate a segment in the outline.</p>
2986 <h4>input</h4>
2987 <table class="fields">
2988 <tr><td class="val" id="to">to</td><td class="desc">
2989 <p>A pointer to the target point of the ‘line to’.</p>
2990 </td></tr>
2991 <tr><td class="val" id="user">user</td><td class="desc">
2992 <p>A typeless pointer, which is passed from the caller of the decomposition function.</p>
2993 </td></tr>
2994 </table>
2995
2996 <h4>return</h4>
2997
2998 <p>Error code. 0&nbsp;means success.</p>
2999 <hr>
3000
3001 <h2 id="ft_outline_conictofunc">FT_Outline_ConicToFunc<a class="headerlink" href="#ft_outline_conictofunc" title="Permanent link">&para;</a></h2>
3002 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
3003 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">int</span>
3004 (*<b>FT_Outline_ConicToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* control,
3005 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to,
3006 <span class="keyword">void</span>* user );
3007
3008 #<span class="keyword">define</span> FT_Outline_ConicTo_Func <b>FT_Outline_ConicToFunc</b>
3009 </code></pre></div>
3010
3011 <p>A function pointer type used to describe the signature of a &lsquo;conic to&rsquo; function during outline walking or decomposition.</p>
3012 <p>A &lsquo;conic to&rsquo; is emitted to indicate a second-order Bezier arc in the outline.</p>
3013 <h4>input</h4>
3014 <table class="fields">
3015 <tr><td class="val" id="control">control</td><td class="desc">
3016 <p>An intermediate control point between the last position and the new target in <code>to</code>.</p>
3017 </td></tr>
3018 <tr><td class="val" id="to">to</td><td class="desc">
3019 <p>A pointer to the target end point of the conic arc.</p>
3020 </td></tr>
3021 <tr><td class="val" id="user">user</td><td class="desc">
3022 <p>A typeless pointer, which is passed from the caller of the decomposition function.</p>
3023 </td></tr>
3024 </table>
3025
3026 <h4>return</h4>
3027
3028 <p>Error code. 0&nbsp;means success.</p>
3029 <hr>
3030
3031 <h2 id="ft_outline_cubictofunc">FT_Outline_CubicToFunc<a class="headerlink" href="#ft_outline_cubictofunc" title="Permanent link">&para;</a></h2>
3032 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
3033 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">int</span>
3034 (*<b>FT_Outline_CubicToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* control1,
3035 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* control2,
3036 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to,
3037 <span class="keyword">void</span>* user );
3038
3039 #<span class="keyword">define</span> FT_Outline_CubicTo_Func <b>FT_Outline_CubicToFunc</b>
3040 </code></pre></div>
3041
3042 <p>A function pointer type used to describe the signature of a &lsquo;cubic to&rsquo; function during outline walking or decomposition.</p>
3043 <p>A &lsquo;cubic to&rsquo; is emitted to indicate a third-order Bezier arc.</p>
3044 <h4>input</h4>
3045 <table class="fields">
3046 <tr><td class="val" id="control1">control1</td><td class="desc">
3047 <p>A pointer to the first Bezier control point.</p>
3048 </td></tr>
3049 <tr><td class="val" id="control2">control2</td><td class="desc">
3050 <p>A pointer to the second Bezier control point.</p>
3051 </td></tr>
3052 <tr><td class="val" id="to">to</td><td class="desc">
3053 <p>A pointer to the target end point.</p>
3054 </td></tr>
3055 <tr><td class="val" id="user">user</td><td class="desc">
3056 <p>A typeless pointer, which is passed from the caller of the decomposition function.</p>
3057 </td></tr>
3058 </table>
3059
3060 <h4>return</h4>
3061
3062 <p>Error code. 0&nbsp;means success.</p>
3063 <hr>
3064
3065 <h2 id="ft_orientation">FT_Orientation<a class="headerlink" href="#ft_orientation" title="Permanent link">&para;</a></h2>
3066 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
3067 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Orientation_
3068 {
3069 <a href="ft2-outline_processing.html#ft_orientation_truetype">FT_ORIENTATION_TRUETYPE</a> = 0,
3070 <a href="ft2-outline_processing.html#ft_orientation_postscript">FT_ORIENTATION_POSTSCRIPT</a> = 1,
3071 <a href="ft2-outline_processing.html#ft_orientation_fill_right">FT_ORIENTATION_FILL_RIGHT</a> = <a href="ft2-outline_processing.html#ft_orientation_truetype">FT_ORIENTATION_TRUETYPE</a>,
3072 <a href="ft2-outline_processing.html#ft_orientation_fill_left">FT_ORIENTATION_FILL_LEFT</a> = <a href="ft2-outline_processing.html#ft_orientation_postscript">FT_ORIENTATION_POSTSCRIPT</a>,
3073 <a href="ft2-outline_processing.html#ft_orientation_none">FT_ORIENTATION_NONE</a>
3074
3075 } <b>FT_Orientation</b>;
3076 </code></pre></div>
3077
3078 <p>A list of values used to describe an outline's contour orientation.</p>
3079 <p>The TrueType and PostScript specifications use different conventions to determine whether outline contours should be filled or unfilled.</p>
3080 <h4>values</h4>
3081 <table class="fields">
3082 <tr><td class="val" id="ft_orientation_truetype">FT_ORIENTATION_TRUETYPE</td><td class="desc">
3083 <p>According to the TrueType specification, clockwise contours must be filled, and counter-clockwise ones must be unfilled.</p>
3084 </td></tr>
3085 <tr><td class="val" id="ft_orientation_postscript">FT_ORIENTATION_POSTSCRIPT</td><td class="desc">
3086 <p>According to the PostScript specification, counter-clockwise contours must be filled, and clockwise ones must be unfilled.</p>
3087 </td></tr>
3088 <tr><td class="val" id="ft_orientation_fill_right">FT_ORIENTATION_FILL_RIGHT</td><td class="desc">
3089 <p>This is identical to <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_TRUETYPE</a></code>, but is used to remember that in TrueType, everything that is to the right of the drawing direction of a contour must be filled.</p>
3090 </td></tr>
3091 <tr><td class="val" id="ft_orientation_fill_left">FT_ORIENTATION_FILL_LEFT</td><td class="desc">
3092 <p>This is identical to <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_POSTSCRIPT</a></code>, but is used to remember that in PostScript, everything that is to the left of the drawing direction of a contour must be filled.</p>
3093 </td></tr>
3094 <tr><td class="val" id="ft_orientation_none">FT_ORIENTATION_NONE</td><td class="desc">
3095 <p>The orientation cannot be determined. That is, different parts of the glyph have different orientation.</p>
3096 </td></tr>
3097 </table>
3098
3099 <hr>
3100
3101 <h2 id="ft_outline_get_orientation">FT_Outline_Get_Orientation<a class="headerlink" href="#ft_outline_get_orientation" title="Permanent link">&para;</a></h2>
3102 <p>Defined in FT_OUTLINE_H (freetype/ftoutln.h).</p>
3103 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-outline_processing.html#ft_orientation">FT_Orientation</a> )
3104 <b>FT_Outline_Get_Orientation</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
3105 </code></pre></div>
3106
3107 <p>This function analyzes a glyph outline and tries to compute its fill orientation (see <code><a href="ft2-outline_processing.html#ft_orientation">FT_Orientation</a></code>). This is done by integrating the total area covered by the outline. The positive integral corresponds to the clockwise orientation and <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_POSTSCRIPT</a></code> is returned. The negative integral corresponds to the counter-clockwise orientation and <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_TRUETYPE</a></code> is returned.</p>
3108 <p>Note that this will return <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_TRUETYPE</a></code> for empty outlines.</p>
3109 <h4>input</h4>
3110 <table class="fields">
3111 <tr><td class="val" id="outline">outline</td><td class="desc">
3112 <p>A handle to the source outline.</p>
3113 </td></tr>
3114 </table>
3115
3116 <h4>return</h4>
3117
3118 <p>The orientation.</p>
3119 <hr>
3120
3121 <h2 id="ft_outline_xxx">FT_OUTLINE_XXX<a class="headerlink" href="#ft_outline_xxx" title="Permanent link">&para;</a></h2>
3122 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
3123 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_none">FT_OUTLINE_NONE</a> 0x0
3124 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_owner">FT_OUTLINE_OWNER</a> 0x1
3125 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_even_odd_fill">FT_OUTLINE_EVEN_ODD_FILL</a> 0x2
3126 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_reverse_fill">FT_OUTLINE_REVERSE_FILL</a> 0x4
3127 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_ignore_dropouts">FT_OUTLINE_IGNORE_DROPOUTS</a> 0x8
3128 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_smart_dropouts">FT_OUTLINE_SMART_DROPOUTS</a> 0x10
3129 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_include_stubs">FT_OUTLINE_INCLUDE_STUBS</a> 0x20
3130 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_overlap">FT_OUTLINE_OVERLAP</a> 0x40
3131
3132 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_high_precision">FT_OUTLINE_HIGH_PRECISION</a> 0x100
3133 #<span class="keyword">define</span> <a href="ft2-outline_processing.html#ft_outline_single_pass">FT_OUTLINE_SINGLE_PASS</a> 0x200
3134
3135
3136 /* these constants are deprecated; use the corresponding */
3137 /* `<b>FT_OUTLINE_XXX</b>` values instead */
3138 #<span class="keyword">define</span> ft_outline_none <a href="ft2-outline_processing.html#ft_outline_none">FT_OUTLINE_NONE</a>
3139 #<span class="keyword">define</span> ft_outline_owner <a href="ft2-outline_processing.html#ft_outline_owner">FT_OUTLINE_OWNER</a>
3140 #<span class="keyword">define</span> ft_outline_even_odd_fill <a href="ft2-outline_processing.html#ft_outline_even_odd_fill">FT_OUTLINE_EVEN_ODD_FILL</a>
3141 #<span class="keyword">define</span> ft_outline_reverse_fill <a href="ft2-outline_processing.html#ft_outline_reverse_fill">FT_OUTLINE_REVERSE_FILL</a>
3142 #<span class="keyword">define</span> ft_outline_ignore_dropouts <a href="ft2-outline_processing.html#ft_outline_ignore_dropouts">FT_OUTLINE_IGNORE_DROPOUTS</a>
3143 #<span class="keyword">define</span> ft_outline_high_precision <a href="ft2-outline_processing.html#ft_outline_high_precision">FT_OUTLINE_HIGH_PRECISION</a>
3144 #<span class="keyword">define</span> ft_outline_single_pass <a href="ft2-outline_processing.html#ft_outline_single_pass">FT_OUTLINE_SINGLE_PASS</a>
3145 </code></pre></div>
3146
3147 <p>A list of bit-field constants used for the flags in an outline's <code>flags</code> field.</p>
3148 <h4>values</h4>
3149 <table class="fields long">
3150 <tr><td class="val" id="ft_outline_none">FT_OUTLINE_NONE</td><td class="desc">
3151 <p>Value 0 is reserved.</p>
3152 </td></tr>
3153 <tr><td class="val" id="ft_outline_owner">FT_OUTLINE_OWNER</td><td class="desc">
3154 <p>If set, this flag indicates that the outline's field arrays (i.e., <code>points</code>, <code>flags</code>, and <code>contours</code>) are ‘owned’ by the outline object, and should thus be freed when it is destroyed.</p>
3155 </td></tr>
3156 <tr><td class="val" id="ft_outline_even_odd_fill">FT_OUTLINE_EVEN_ODD_FILL</td><td class="desc">
3157 <p>By default, outlines are filled using the non-zero winding rule. If set to 1, the outline will be filled using the even-odd fill rule (only works with the smooth rasterizer).</p>
3158 </td></tr>
3159 <tr><td class="val" id="ft_outline_reverse_fill">FT_OUTLINE_REVERSE_FILL</td><td class="desc">
3160 <p>By default, outside contours of an outline are oriented in clock-wise direction, as defined in the TrueType specification. This flag is set if the outline uses the opposite direction (typically for Type 1 fonts). This flag is ignored by the scan converter.</p>
3161 </td></tr>
3162 <tr><td class="val" id="ft_outline_ignore_dropouts">FT_OUTLINE_IGNORE_DROPOUTS</td><td class="desc">
3163 <p>By default, the scan converter will try to detect drop-outs in an outline and correct the glyph bitmap to ensure consistent shape continuity. If set, this flag hints the scan-line converter to ignore such cases. See below for more information.</p>
3164 </td></tr>
3165 <tr><td class="val" id="ft_outline_smart_dropouts">FT_OUTLINE_SMART_DROPOUTS</td><td class="desc">
3166 <p>Select smart dropout control. If unset, use simple dropout control. Ignored if <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_IGNORE_DROPOUTS</a></code> is set. See below for more information.</p>
3167 </td></tr>
3168 <tr><td class="val" id="ft_outline_include_stubs">FT_OUTLINE_INCLUDE_STUBS</td><td class="desc">
3169 <p>If set, turn pixels on for ‘stubs’, otherwise exclude them. Ignored if <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_IGNORE_DROPOUTS</a></code> is set. See below for more information.</p>
3170 </td></tr>
3171 <tr><td class="val" id="ft_outline_overlap">FT_OUTLINE_OVERLAP</td><td class="desc">
3172 <p>[Since 2.10.3] This flag indicates that this outline contains overlapping contours and the anti-aliased renderer should perform oversampling to mitigate possible artifacts. This flag should <em>not</em> be set for well designed glyphs without overlaps because it quadruples the rendering time.</p>
3173 </td></tr>
3174 <tr><td class="val" id="ft_outline_high_precision">FT_OUTLINE_HIGH_PRECISION</td><td class="desc">
3175 <p>This flag indicates that the scan-line converter should try to convert this outline to bitmaps with the highest possible quality. It is typically set for small character sizes. Note that this is only a hint that might be completely ignored by a given scan-converter.</p>
3176 </td></tr>
3177 <tr><td class="val" id="ft_outline_single_pass">FT_OUTLINE_SINGLE_PASS</td><td class="desc">
3178 <p>This flag is set to force a given scan-converter to only use a single pass over the outline to render a bitmap glyph image. Normally, it is set for very large character sizes. It is only a hint that might be completely ignored by a given scan-converter.</p>
3179 </td></tr>
3180 </table>
3181
3182 <h4>note</h4>
3183
3184 <p>The flags <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_IGNORE_DROPOUTS</a></code>, <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_SMART_DROPOUTS</a></code>, and <code><a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_INCLUDE_STUBS</a></code> are ignored by the smooth rasterizer.</p>
3185 <p>There exists a second mechanism to pass the drop-out mode to the B/W rasterizer; see the <code>tags</code> field in <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code>.</p>
3186 <p>Please refer to the description of the &lsquo;SCANTYPE&rsquo; instruction in the <a href="https://learn.microsoft.com/typography/opentype/spec/tt_instructions#scantype">OpenType specification</a> how simple drop-outs, smart drop-outs, and stubs are defined.</p>
3187 <hr>
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201 </article>
3202 </div>
3203
3204
3205 <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
3206 </div>
3207
3208 </main>
3209
3210 <footer class="md-footer">
3211
3212 <div class="md-footer-meta md-typeset">
3213 <div class="md-footer-meta__inner md-grid">
3214 <div class="md-copyright">
3215
3216 <div class="md-copyright__highlight">
3217 Copyright 2026 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
3218 </div>
3219
3220
3221 Made with
3222 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
3223 Material for MkDocs
3224 </a>
3225
3226 </div>
3227
3228 </div>
3229 </div>
3230 </footer>
3231
3232 </div>
3233 <div class="md-dialog" data-md-component="dialog">
3234 <div class="md-dialog__inner md-typeset"></div>
3235 </div>
3236
3237
3238 <script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.f8cc74c7.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
3239
3240
3241 <script src="assets/javascripts/bundle.c8b220af.min.js"></script>
3242
3243 <script src="javascripts/extra.js"></script>
3244
3245
3246 </body>
3247 </html>