Debian Codegraph @

docs/reference/ft2-glyph_stroker.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-glyph_stroker.html">
16
17
18 <link rel="prev" href="ft2-raster.html">
19
20
21 <link rel="next" href="ft2-system_interface.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>Glyph Stroker - 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="#glyph-stroker" 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 Glyph Stroker
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 <li class="md-nav__item">
1470 <a href="ft2-outline_processing.html" class="md-nav__link">
1471
1472
1473 <span class="md-ellipsis">
1474 Outline Processing
1475
1476 </span>
1477
1478
1479 </a>
1480 </li>
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491 <li class="md-nav__item">
1492 <a href="ft2-quick_advance.html" class="md-nav__link">
1493
1494
1495 <span class="md-ellipsis">
1496 Quick retrieval of advance values
1497
1498 </span>
1499
1500
1501 </a>
1502 </li>
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513 <li class="md-nav__item">
1514 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1515
1516
1517 <span class="md-ellipsis">
1518 Bitmap Handling
1519
1520 </span>
1521
1522
1523 </a>
1524 </li>
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535 <li class="md-nav__item">
1536 <a href="ft2-raster.html" class="md-nav__link">
1537
1538
1539 <span class="md-ellipsis">
1540 Scanline Converter
1541
1542 </span>
1543
1544
1545 </a>
1546 </li>
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559 <li class="md-nav__item md-nav__item--active">
1560
1561 <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
1562
1563
1564
1565
1566
1567 <label class="md-nav__link md-nav__link--active" for="__toc">
1568
1569
1570 <span class="md-ellipsis">
1571 Glyph Stroker
1572
1573 </span>
1574
1575
1576 <span class="md-nav__icon md-icon"></span>
1577 </label>
1578
1579 <a href="ft2-glyph_stroker.html" class="md-nav__link md-nav__link--active">
1580
1581
1582 <span class="md-ellipsis">
1583 Glyph Stroker
1584
1585 </span>
1586
1587
1588 </a>
1589
1590
1591
1592 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
1593
1594
1595
1596
1597
1598
1599 <label class="md-nav__title" for="__toc">
1600 <span class="md-nav__icon md-icon"></span>
1601 Table of contents
1602 </label>
1603 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
1604
1605 <li class="md-nav__item">
1606 <a href="#synopsis" class="md-nav__link">
1607 <span class="md-ellipsis">
1608 Synopsis
1609 </span>
1610 </a>
1611
1612 </li>
1613
1614 <li class="md-nav__item">
1615 <a href="#ft_stroker" class="md-nav__link">
1616 <span class="md-ellipsis">
1617 FT_Stroker
1618 </span>
1619 </a>
1620
1621 </li>
1622
1623 <li class="md-nav__item">
1624 <a href="#ft_stroker_linejoin" class="md-nav__link">
1625 <span class="md-ellipsis">
1626 FT_Stroker_LineJoin
1627 </span>
1628 </a>
1629
1630 </li>
1631
1632 <li class="md-nav__item">
1633 <a href="#ft_stroker_linecap" class="md-nav__link">
1634 <span class="md-ellipsis">
1635 FT_Stroker_LineCap
1636 </span>
1637 </a>
1638
1639 </li>
1640
1641 <li class="md-nav__item">
1642 <a href="#ft_strokerborder" class="md-nav__link">
1643 <span class="md-ellipsis">
1644 FT_StrokerBorder
1645 </span>
1646 </a>
1647
1648 </li>
1649
1650 <li class="md-nav__item">
1651 <a href="#ft_outline_getinsideborder" class="md-nav__link">
1652 <span class="md-ellipsis">
1653 FT_Outline_GetInsideBorder
1654 </span>
1655 </a>
1656
1657 </li>
1658
1659 <li class="md-nav__item">
1660 <a href="#ft_outline_getoutsideborder" class="md-nav__link">
1661 <span class="md-ellipsis">
1662 FT_Outline_GetOutsideBorder
1663 </span>
1664 </a>
1665
1666 </li>
1667
1668 <li class="md-nav__item">
1669 <a href="#ft_glyph_stroke" class="md-nav__link">
1670 <span class="md-ellipsis">
1671 FT_Glyph_Stroke
1672 </span>
1673 </a>
1674
1675 </li>
1676
1677 <li class="md-nav__item">
1678 <a href="#ft_glyph_strokeborder" class="md-nav__link">
1679 <span class="md-ellipsis">
1680 FT_Glyph_StrokeBorder
1681 </span>
1682 </a>
1683
1684 </li>
1685
1686 <li class="md-nav__item">
1687 <a href="#ft_stroker_new" class="md-nav__link">
1688 <span class="md-ellipsis">
1689 FT_Stroker_New
1690 </span>
1691 </a>
1692
1693 </li>
1694
1695 <li class="md-nav__item">
1696 <a href="#ft_stroker_set" class="md-nav__link">
1697 <span class="md-ellipsis">
1698 FT_Stroker_Set
1699 </span>
1700 </a>
1701
1702 </li>
1703
1704 <li class="md-nav__item">
1705 <a href="#ft_stroker_rewind" class="md-nav__link">
1706 <span class="md-ellipsis">
1707 FT_Stroker_Rewind
1708 </span>
1709 </a>
1710
1711 </li>
1712
1713 <li class="md-nav__item">
1714 <a href="#ft_stroker_parseoutline" class="md-nav__link">
1715 <span class="md-ellipsis">
1716 FT_Stroker_ParseOutline
1717 </span>
1718 </a>
1719
1720 </li>
1721
1722 <li class="md-nav__item">
1723 <a href="#ft_stroker_done" class="md-nav__link">
1724 <span class="md-ellipsis">
1725 FT_Stroker_Done
1726 </span>
1727 </a>
1728
1729 </li>
1730
1731 <li class="md-nav__item">
1732 <a href="#ft_stroker_beginsubpath" class="md-nav__link">
1733 <span class="md-ellipsis">
1734 FT_Stroker_BeginSubPath
1735 </span>
1736 </a>
1737
1738 </li>
1739
1740 <li class="md-nav__item">
1741 <a href="#ft_stroker_endsubpath" class="md-nav__link">
1742 <span class="md-ellipsis">
1743 FT_Stroker_EndSubPath
1744 </span>
1745 </a>
1746
1747 </li>
1748
1749 <li class="md-nav__item">
1750 <a href="#ft_stroker_lineto" class="md-nav__link">
1751 <span class="md-ellipsis">
1752 FT_Stroker_LineTo
1753 </span>
1754 </a>
1755
1756 </li>
1757
1758 <li class="md-nav__item">
1759 <a href="#ft_stroker_conicto" class="md-nav__link">
1760 <span class="md-ellipsis">
1761 FT_Stroker_ConicTo
1762 </span>
1763 </a>
1764
1765 </li>
1766
1767 <li class="md-nav__item">
1768 <a href="#ft_stroker_cubicto" class="md-nav__link">
1769 <span class="md-ellipsis">
1770 FT_Stroker_CubicTo
1771 </span>
1772 </a>
1773
1774 </li>
1775
1776 <li class="md-nav__item">
1777 <a href="#ft_stroker_getbordercounts" class="md-nav__link">
1778 <span class="md-ellipsis">
1779 FT_Stroker_GetBorderCounts
1780 </span>
1781 </a>
1782
1783 </li>
1784
1785 <li class="md-nav__item">
1786 <a href="#ft_stroker_exportborder" class="md-nav__link">
1787 <span class="md-ellipsis">
1788 FT_Stroker_ExportBorder
1789 </span>
1790 </a>
1791
1792 </li>
1793
1794 <li class="md-nav__item">
1795 <a href="#ft_stroker_getcounts" class="md-nav__link">
1796 <span class="md-ellipsis">
1797 FT_Stroker_GetCounts
1798 </span>
1799 </a>
1800
1801 </li>
1802
1803 <li class="md-nav__item">
1804 <a href="#ft_stroker_export" class="md-nav__link">
1805 <span class="md-ellipsis">
1806 FT_Stroker_Export
1807 </span>
1808 </a>
1809
1810 </li>
1811
1812 </ul>
1813
1814 </nav>
1815
1816 </li>
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827 <li class="md-nav__item">
1828 <a href="ft2-system_interface.html" class="md-nav__link">
1829
1830
1831 <span class="md-ellipsis">
1832 System Interface
1833
1834 </span>
1835
1836
1837 </a>
1838 </li>
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849 <li class="md-nav__item">
1850 <a href="ft2-module_management.html" class="md-nav__link">
1851
1852
1853 <span class="md-ellipsis">
1854 Module Management
1855
1856 </span>
1857
1858
1859 </a>
1860 </li>
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871 <li class="md-nav__item">
1872 <a href="ft2-gzip.html" class="md-nav__link">
1873
1874
1875 <span class="md-ellipsis">
1876 GZIP Streams
1877
1878 </span>
1879
1880
1881 </a>
1882 </li>
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893 <li class="md-nav__item">
1894 <a href="ft2-lzw.html" class="md-nav__link">
1895
1896
1897 <span class="md-ellipsis">
1898 LZW Streams
1899
1900 </span>
1901
1902
1903 </a>
1904 </li>
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 <li class="md-nav__item">
1916 <a href="ft2-bzip2.html" class="md-nav__link">
1917
1918
1919 <span class="md-ellipsis">
1920 BZIP2 Streams
1921
1922 </span>
1923
1924
1925 </a>
1926 </li>
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937 <li class="md-nav__item">
1938 <a href="ft2-debugging_apis.html" class="md-nav__link">
1939
1940
1941 <span class="md-ellipsis">
1942 External Debugging APIs
1943
1944 </span>
1945
1946
1947 </a>
1948 </li>
1949
1950
1951
1952
1953 </ul>
1954 </nav>
1955
1956 </li>
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970 <li class="md-nav__item md-nav__item--nested">
1971
1972
1973
1974 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
1975
1976
1977 <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
1978
1979
1980 <span class="md-ellipsis">
1981 Error Codes
1982
1983 </span>
1984
1985
1986 <span class="md-nav__icon md-icon"></span>
1987 </label>
1988
1989 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
1990 <label class="md-nav__title" for="__nav_10">
1991 <span class="md-nav__icon md-icon"></span>
1992 Error Codes
1993 </label>
1994 <ul class="md-nav__list" data-md-scrollfix>
1995
1996
1997
1998
1999
2000
2001
2002 <li class="md-nav__item">
2003 <a href="ft2-error_enumerations.html" class="md-nav__link">
2004
2005
2006 <span class="md-ellipsis">
2007 Error Enumerations
2008
2009 </span>
2010
2011
2012 </a>
2013 </li>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024 <li class="md-nav__item">
2025 <a href="ft2-error_code_values.html" class="md-nav__link">
2026
2027
2028 <span class="md-ellipsis">
2029 Error Code Values
2030
2031 </span>
2032
2033
2034 </a>
2035 </li>
2036
2037
2038
2039
2040 </ul>
2041 </nav>
2042
2043 </li>
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057 <li class="md-nav__item md-nav__item--nested">
2058
2059
2060
2061 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
2062
2063
2064 <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
2065
2066
2067 <span class="md-ellipsis">
2068 Miscellaneous
2069
2070 </span>
2071
2072
2073 <span class="md-nav__icon md-icon"></span>
2074 </label>
2075
2076 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
2077 <label class="md-nav__title" for="__nav_11">
2078 <span class="md-nav__icon md-icon"></span>
2079 Miscellaneous
2080 </label>
2081 <ul class="md-nav__list" data-md-scrollfix>
2082
2083
2084
2085
2086
2087
2088
2089 <li class="md-nav__item">
2090 <a href="ft2-gx_validation.html" class="md-nav__link">
2091
2092
2093 <span class="md-ellipsis">
2094 TrueTypeGX/AAT Validation
2095
2096 </span>
2097
2098
2099 </a>
2100 </li>
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111 <li class="md-nav__item">
2112 <a href="ft2-incremental.html" class="md-nav__link">
2113
2114
2115 <span class="md-ellipsis">
2116 Incremental Loading
2117
2118 </span>
2119
2120
2121 </a>
2122 </li>
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133 <li class="md-nav__item">
2134 <a href="ft2-truetype_engine.html" class="md-nav__link">
2135
2136
2137 <span class="md-ellipsis">
2138 The TrueType Engine
2139
2140 </span>
2141
2142
2143 </a>
2144 </li>
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155 <li class="md-nav__item">
2156 <a href="ft2-ot_validation.html" class="md-nav__link">
2157
2158
2159 <span class="md-ellipsis">
2160 OpenType Validation
2161
2162 </span>
2163
2164
2165 </a>
2166 </li>
2167
2168
2169
2170
2171 </ul>
2172 </nav>
2173
2174 </li>
2175
2176
2177
2178 </ul>
2179 </nav>
2180 </div>
2181 </div>
2182 </div>
2183
2184
2185
2186 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2187 <div class="md-sidebar__scrollwrap">
2188 <div class="md-sidebar__inner">
2189
2190
2191 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
2192
2193
2194
2195
2196
2197
2198 <label class="md-nav__title" for="__toc">
2199 <span class="md-nav__icon md-icon"></span>
2200 Table of contents
2201 </label>
2202 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2203
2204 <li class="md-nav__item">
2205 <a href="#synopsis" class="md-nav__link">
2206 <span class="md-ellipsis">
2207 Synopsis
2208 </span>
2209 </a>
2210
2211 </li>
2212
2213 <li class="md-nav__item">
2214 <a href="#ft_stroker" class="md-nav__link">
2215 <span class="md-ellipsis">
2216 FT_Stroker
2217 </span>
2218 </a>
2219
2220 </li>
2221
2222 <li class="md-nav__item">
2223 <a href="#ft_stroker_linejoin" class="md-nav__link">
2224 <span class="md-ellipsis">
2225 FT_Stroker_LineJoin
2226 </span>
2227 </a>
2228
2229 </li>
2230
2231 <li class="md-nav__item">
2232 <a href="#ft_stroker_linecap" class="md-nav__link">
2233 <span class="md-ellipsis">
2234 FT_Stroker_LineCap
2235 </span>
2236 </a>
2237
2238 </li>
2239
2240 <li class="md-nav__item">
2241 <a href="#ft_strokerborder" class="md-nav__link">
2242 <span class="md-ellipsis">
2243 FT_StrokerBorder
2244 </span>
2245 </a>
2246
2247 </li>
2248
2249 <li class="md-nav__item">
2250 <a href="#ft_outline_getinsideborder" class="md-nav__link">
2251 <span class="md-ellipsis">
2252 FT_Outline_GetInsideBorder
2253 </span>
2254 </a>
2255
2256 </li>
2257
2258 <li class="md-nav__item">
2259 <a href="#ft_outline_getoutsideborder" class="md-nav__link">
2260 <span class="md-ellipsis">
2261 FT_Outline_GetOutsideBorder
2262 </span>
2263 </a>
2264
2265 </li>
2266
2267 <li class="md-nav__item">
2268 <a href="#ft_glyph_stroke" class="md-nav__link">
2269 <span class="md-ellipsis">
2270 FT_Glyph_Stroke
2271 </span>
2272 </a>
2273
2274 </li>
2275
2276 <li class="md-nav__item">
2277 <a href="#ft_glyph_strokeborder" class="md-nav__link">
2278 <span class="md-ellipsis">
2279 FT_Glyph_StrokeBorder
2280 </span>
2281 </a>
2282
2283 </li>
2284
2285 <li class="md-nav__item">
2286 <a href="#ft_stroker_new" class="md-nav__link">
2287 <span class="md-ellipsis">
2288 FT_Stroker_New
2289 </span>
2290 </a>
2291
2292 </li>
2293
2294 <li class="md-nav__item">
2295 <a href="#ft_stroker_set" class="md-nav__link">
2296 <span class="md-ellipsis">
2297 FT_Stroker_Set
2298 </span>
2299 </a>
2300
2301 </li>
2302
2303 <li class="md-nav__item">
2304 <a href="#ft_stroker_rewind" class="md-nav__link">
2305 <span class="md-ellipsis">
2306 FT_Stroker_Rewind
2307 </span>
2308 </a>
2309
2310 </li>
2311
2312 <li class="md-nav__item">
2313 <a href="#ft_stroker_parseoutline" class="md-nav__link">
2314 <span class="md-ellipsis">
2315 FT_Stroker_ParseOutline
2316 </span>
2317 </a>
2318
2319 </li>
2320
2321 <li class="md-nav__item">
2322 <a href="#ft_stroker_done" class="md-nav__link">
2323 <span class="md-ellipsis">
2324 FT_Stroker_Done
2325 </span>
2326 </a>
2327
2328 </li>
2329
2330 <li class="md-nav__item">
2331 <a href="#ft_stroker_beginsubpath" class="md-nav__link">
2332 <span class="md-ellipsis">
2333 FT_Stroker_BeginSubPath
2334 </span>
2335 </a>
2336
2337 </li>
2338
2339 <li class="md-nav__item">
2340 <a href="#ft_stroker_endsubpath" class="md-nav__link">
2341 <span class="md-ellipsis">
2342 FT_Stroker_EndSubPath
2343 </span>
2344 </a>
2345
2346 </li>
2347
2348 <li class="md-nav__item">
2349 <a href="#ft_stroker_lineto" class="md-nav__link">
2350 <span class="md-ellipsis">
2351 FT_Stroker_LineTo
2352 </span>
2353 </a>
2354
2355 </li>
2356
2357 <li class="md-nav__item">
2358 <a href="#ft_stroker_conicto" class="md-nav__link">
2359 <span class="md-ellipsis">
2360 FT_Stroker_ConicTo
2361 </span>
2362 </a>
2363
2364 </li>
2365
2366 <li class="md-nav__item">
2367 <a href="#ft_stroker_cubicto" class="md-nav__link">
2368 <span class="md-ellipsis">
2369 FT_Stroker_CubicTo
2370 </span>
2371 </a>
2372
2373 </li>
2374
2375 <li class="md-nav__item">
2376 <a href="#ft_stroker_getbordercounts" class="md-nav__link">
2377 <span class="md-ellipsis">
2378 FT_Stroker_GetBorderCounts
2379 </span>
2380 </a>
2381
2382 </li>
2383
2384 <li class="md-nav__item">
2385 <a href="#ft_stroker_exportborder" class="md-nav__link">
2386 <span class="md-ellipsis">
2387 FT_Stroker_ExportBorder
2388 </span>
2389 </a>
2390
2391 </li>
2392
2393 <li class="md-nav__item">
2394 <a href="#ft_stroker_getcounts" class="md-nav__link">
2395 <span class="md-ellipsis">
2396 FT_Stroker_GetCounts
2397 </span>
2398 </a>
2399
2400 </li>
2401
2402 <li class="md-nav__item">
2403 <a href="#ft_stroker_export" class="md-nav__link">
2404 <span class="md-ellipsis">
2405 FT_Stroker_Export
2406 </span>
2407 </a>
2408
2409 </li>
2410
2411 </ul>
2412
2413 </nav>
2414 </div>
2415 </div>
2416 </div>
2417
2418
2419
2420 <div class="md-content" data-md-component="content">
2421 <article class="md-content__inner md-typeset">
2422
2423
2424
2425
2426
2427 <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; Glyph Stroker</p>
2428 <hr />
2429 <h1 id="glyph-stroker">Glyph Stroker<a class="headerlink" href="#glyph-stroker" title="Permanent link">&para;</a></h1>
2430 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
2431 <p>This component generates stroked outlines of a given vectorial glyph. It also allows you to retrieve the &lsquo;outside&rsquo; and/or the &lsquo;inside&rsquo; borders of the stroke.</p>
2432 <p>This can be useful to generate &lsquo;bordered&rsquo; glyph, i.e., glyphs displayed with a colored (and anti-aliased) border around their shape.</p>
2433 <h2 id="ft_stroker">FT_Stroker<a class="headerlink" href="#ft_stroker" title="Permanent link">&para;</a></h2>
2434 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2435 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_StrokerRec_* <b>FT_Stroker</b>;
2436 </code></pre></div>
2437
2438 <p>Opaque handle to a path stroker object.</p>
2439 <hr>
2440
2441 <h2 id="ft_stroker_linejoin">FT_Stroker_LineJoin<a class="headerlink" href="#ft_stroker_linejoin" title="Permanent link">&para;</a></h2>
2442 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2443 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Stroker_LineJoin_
2444 {
2445 <a href="ft2-glyph_stroker.html#ft_stroker_linejoin_round">FT_STROKER_LINEJOIN_ROUND</a> = 0,
2446 <a href="ft2-glyph_stroker.html#ft_stroker_linejoin_bevel">FT_STROKER_LINEJOIN_BEVEL</a> = 1,
2447 <a href="ft2-glyph_stroker.html#ft_stroker_linejoin_miter_variable">FT_STROKER_LINEJOIN_MITER_VARIABLE</a> = 2,
2448 <a href="ft2-glyph_stroker.html#ft_stroker_linejoin_miter">FT_STROKER_LINEJOIN_MITER</a> = <a href="ft2-glyph_stroker.html#ft_stroker_linejoin_miter_variable">FT_STROKER_LINEJOIN_MITER_VARIABLE</a>,
2449 <a href="ft2-glyph_stroker.html#ft_stroker_linejoin_miter_fixed">FT_STROKER_LINEJOIN_MITER_FIXED</a> = 3
2450
2451 } <b>FT_Stroker_LineJoin</b>;
2452 </code></pre></div>
2453
2454 <p>These values determine how two joining lines are rendered in a stroker.</p>
2455 <h4>values</h4>
2456 <table class="fields long">
2457 <tr><td class="val" id="ft_stroker_linejoin_round">FT_STROKER_LINEJOIN_ROUND</td><td class="desc">
2458 <p>Used to render rounded line joins. Circular arcs are used to join two lines smoothly.</p>
2459 </td></tr>
2460 <tr><td class="val" id="ft_stroker_linejoin_bevel">FT_STROKER_LINEJOIN_BEVEL</td><td class="desc">
2461 <p>Used to render beveled line joins. The outer corner of the joined lines is filled by enclosing the triangular region of the corner with a straight line between the outer corners of each stroke.</p>
2462 </td></tr>
2463 <tr><td class="val" id="ft_stroker_linejoin_miter_fixed">FT_STROKER_LINEJOIN_MITER_FIXED</td><td class="desc">
2464 <p>Used to render mitered line joins, with fixed bevels if the miter limit is exceeded. The outer edges of the strokes for the two segments are extended until they meet at an angle. A bevel join (see above) is used if the segments meet at too sharp an angle and the outer edges meet beyond a distance corresponding to the meter limit. This prevents long spikes being created. <code>FT_STROKER_LINEJOIN_MITER_FIXED</code> generates a miter line join as used in PostScript and PDF.</p>
2465 </td></tr>
2466 <tr><td class="val" id="ft_stroker_linejoin_miter_variable">FT_STROKER_LINEJOIN_MITER_VARIABLE</td><td class="desc">
2467
2468 </td></tr>
2469 <tr><td class="val" id="ft_stroker_linejoin_miter">FT_STROKER_LINEJOIN_MITER</td><td class="desc">
2470 <p>Used to render mitered line joins, with variable bevels if the miter limit is exceeded. The intersection of the strokes is clipped perpendicularly to the bisector, at a distance corresponding to the miter limit. This prevents long spikes being created. <code>FT_STROKER_LINEJOIN_MITER_VARIABLE</code> generates a mitered line join as used in XPS. <code>FT_STROKER_LINEJOIN_MITER</code> is an alias for <code>FT_STROKER_LINEJOIN_MITER_VARIABLE</code>, retained for backward compatibility.</p>
2471 </td></tr>
2472 </table>
2473
2474 <hr>
2475
2476 <h2 id="ft_stroker_linecap">FT_Stroker_LineCap<a class="headerlink" href="#ft_stroker_linecap" title="Permanent link">&para;</a></h2>
2477 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2478 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Stroker_LineCap_
2479 {
2480 <a href="ft2-glyph_stroker.html#ft_stroker_linecap_butt">FT_STROKER_LINECAP_BUTT</a> = 0,
2481 <a href="ft2-glyph_stroker.html#ft_stroker_linecap_round">FT_STROKER_LINECAP_ROUND</a>,
2482 <a href="ft2-glyph_stroker.html#ft_stroker_linecap_square">FT_STROKER_LINECAP_SQUARE</a>
2483
2484 } <b>FT_Stroker_LineCap</b>;
2485 </code></pre></div>
2486
2487 <p>These values determine how the end of opened sub-paths are rendered in a stroke.</p>
2488 <h4>values</h4>
2489 <table class="fields">
2490 <tr><td class="val" id="ft_stroker_linecap_butt">FT_STROKER_LINECAP_BUTT</td><td class="desc">
2491 <p>The end of lines is rendered as a full stop on the last point itself.</p>
2492 </td></tr>
2493 <tr><td class="val" id="ft_stroker_linecap_round">FT_STROKER_LINECAP_ROUND</td><td class="desc">
2494 <p>The end of lines is rendered as a half-circle around the last point.</p>
2495 </td></tr>
2496 <tr><td class="val" id="ft_stroker_linecap_square">FT_STROKER_LINECAP_SQUARE</td><td class="desc">
2497 <p>The end of lines is rendered as a square around the last point.</p>
2498 </td></tr>
2499 </table>
2500
2501 <hr>
2502
2503 <h2 id="ft_strokerborder">FT_StrokerBorder<a class="headerlink" href="#ft_strokerborder" title="Permanent link">&para;</a></h2>
2504 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2505 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_StrokerBorder_
2506 {
2507 <a href="ft2-glyph_stroker.html#ft_stroker_border_left">FT_STROKER_BORDER_LEFT</a> = 0,
2508 <a href="ft2-glyph_stroker.html#ft_stroker_border_right">FT_STROKER_BORDER_RIGHT</a>
2509
2510 } <b>FT_StrokerBorder</b>;
2511 </code></pre></div>
2512
2513 <p>These values are used to select a given stroke border in <code><a href="ft2-glyph_stroker.html#ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts</a></code> and <code><a href="ft2-glyph_stroker.html#ft_stroker_exportborder">FT_Stroker_ExportBorder</a></code>.</p>
2514 <h4>values</h4>
2515 <table class="fields">
2516 <tr><td class="val" id="ft_stroker_border_left">FT_STROKER_BORDER_LEFT</td><td class="desc">
2517 <p>Select the left border, relative to the drawing direction.</p>
2518 </td></tr>
2519 <tr><td class="val" id="ft_stroker_border_right">FT_STROKER_BORDER_RIGHT</td><td class="desc">
2520 <p>Select the right border, relative to the drawing direction.</p>
2521 </td></tr>
2522 </table>
2523
2524 <h4>note</h4>
2525
2526 <p>Applications are generally interested in the &lsquo;inside&rsquo; and &lsquo;outside&rsquo; borders. However, there is no direct mapping between these and the &lsquo;left&rsquo; and &lsquo;right&rsquo; ones, since this really depends on the glyph's drawing orientation, which varies between font formats.</p>
2527 <p>You can however use <code><a href="ft2-glyph_stroker.html#ft_outline_getinsideborder">FT_Outline_GetInsideBorder</a></code> and <code><a href="ft2-glyph_stroker.html#ft_outline_getoutsideborder">FT_Outline_GetOutsideBorder</a></code> to get these.</p>
2528 <hr>
2529
2530 <h2 id="ft_outline_getinsideborder">FT_Outline_GetInsideBorder<a class="headerlink" href="#ft_outline_getinsideborder" title="Permanent link">&para;</a></h2>
2531 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2532 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a> )
2533 <b>FT_Outline_GetInsideBorder</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
2534 </code></pre></div>
2535
2536 <p>Retrieve the <code><a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a></code> value corresponding to the &lsquo;inside&rsquo; borders of a given outline.</p>
2537 <h4>input</h4>
2538 <table class="fields">
2539 <tr><td class="val" id="outline">outline</td><td class="desc">
2540 <p>The source outline handle.</p>
2541 </td></tr>
2542 </table>
2543
2544 <h4>return</h4>
2545
2546 <p>The border index. <code><a href="ft2-glyph_stroker.html#ft_strokerborder">FT_STROKER_BORDER_RIGHT</a></code> for empty or invalid outlines.</p>
2547 <hr>
2548
2549 <h2 id="ft_outline_getoutsideborder">FT_Outline_GetOutsideBorder<a class="headerlink" href="#ft_outline_getoutsideborder" title="Permanent link">&para;</a></h2>
2550 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2551 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a> )
2552 <b>FT_Outline_GetOutsideBorder</b>( <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
2553 </code></pre></div>
2554
2555 <p>Retrieve the <code><a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a></code> value corresponding to the &lsquo;outside&rsquo; borders of a given outline.</p>
2556 <h4>input</h4>
2557 <table class="fields">
2558 <tr><td class="val" id="outline">outline</td><td class="desc">
2559 <p>The source outline handle.</p>
2560 </td></tr>
2561 </table>
2562
2563 <h4>return</h4>
2564
2565 <p>The border index. <code><a href="ft2-glyph_stroker.html#ft_strokerborder">FT_STROKER_BORDER_LEFT</a></code> for empty or invalid outlines.</p>
2566 <hr>
2567
2568 <h2 id="ft_glyph_stroke">FT_Glyph_Stroke<a class="headerlink" href="#ft_glyph_stroke" title="Permanent link">&para;</a></h2>
2569 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2570 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2571 <b>FT_Glyph_Stroke</b>( <a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a> *pglyph,
2572 <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2573 <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> destroy );
2574 </code></pre></div>
2575
2576 <p>Stroke a given outline glyph object with a given stroker.</p>
2577 <h4>inout</h4>
2578 <table class="fields">
2579 <tr><td class="val" id="pglyph">pglyph</td><td class="desc">
2580 <p>Source glyph handle on input, new glyph handle on output.</p>
2581 </td></tr>
2582 </table>
2583
2584 <h4>input</h4>
2585 <table class="fields">
2586 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2587 <p>A stroker handle.</p>
2588 </td></tr>
2589 <tr><td class="val" id="destroy">destroy</td><td class="desc">
2590 <p>A Boolean. If 1, the source glyph object is destroyed on success.</p>
2591 </td></tr>
2592 </table>
2593
2594 <h4>return</h4>
2595
2596 <p>FreeType error code. 0&nbsp;means success.</p>
2597 <h4>note</h4>
2598
2599 <p>The source glyph is untouched in case of error.</p>
2600 <p>Adding stroke may yield a significantly wider and taller glyph depending on how large of a radius was used to stroke the glyph. You may need to manually adjust horizontal and vertical advance amounts to account for this added size.</p>
2601 <hr>
2602
2603 <h2 id="ft_glyph_strokeborder">FT_Glyph_StrokeBorder<a class="headerlink" href="#ft_glyph_strokeborder" title="Permanent link">&para;</a></h2>
2604 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2605 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2606 <b>FT_Glyph_StrokeBorder</b>( <a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a> *pglyph,
2607 <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2608 <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> inside,
2609 <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> destroy );
2610 </code></pre></div>
2611
2612 <p>Stroke a given outline glyph object with a given stroker, but only return either its inside or outside border.</p>
2613 <h4>inout</h4>
2614 <table class="fields">
2615 <tr><td class="val" id="pglyph">pglyph</td><td class="desc">
2616 <p>Source glyph handle on input, new glyph handle on output.</p>
2617 </td></tr>
2618 </table>
2619
2620 <h4>input</h4>
2621 <table class="fields">
2622 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2623 <p>A stroker handle.</p>
2624 </td></tr>
2625 <tr><td class="val" id="inside">inside</td><td class="desc">
2626 <p>A Boolean. If 1, return the inside border, otherwise the outside border.</p>
2627 </td></tr>
2628 <tr><td class="val" id="destroy">destroy</td><td class="desc">
2629 <p>A Boolean. If 1, the source glyph object is destroyed on success.</p>
2630 </td></tr>
2631 </table>
2632
2633 <h4>return</h4>
2634
2635 <p>FreeType error code. 0&nbsp;means success.</p>
2636 <h4>note</h4>
2637
2638 <p>The source glyph is untouched in case of error.</p>
2639 <p>Adding stroke may yield a significantly wider and taller glyph depending on how large of a radius was used to stroke the glyph. You may need to manually adjust horizontal and vertical advance amounts to account for this added size.</p>
2640 <hr>
2641
2642 <h2 id="ft_stroker_new">FT_Stroker_New<a class="headerlink" href="#ft_stroker_new" title="Permanent link">&para;</a></h2>
2643 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2644 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2645 <b>FT_Stroker_New</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2646 <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> *astroker );
2647 </code></pre></div>
2648
2649 <p>Create a new stroker object.</p>
2650 <h4>input</h4>
2651 <table class="fields">
2652 <tr><td class="val" id="library">library</td><td class="desc">
2653 <p>FreeType library handle.</p>
2654 </td></tr>
2655 </table>
2656
2657 <h4>output</h4>
2658 <table class="fields">
2659 <tr><td class="val" id="astroker">astroker</td><td class="desc">
2660 <p>A new stroker object handle. <code>NULL</code> in case of error.</p>
2661 </td></tr>
2662 </table>
2663
2664 <h4>return</h4>
2665
2666 <p>FreeType error code. 0&nbsp;means success.</p>
2667 <hr>
2668
2669 <h2 id="ft_stroker_set">FT_Stroker_Set<a class="headerlink" href="#ft_stroker_set" title="Permanent link">&para;</a></h2>
2670 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2671 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2672 <b>FT_Stroker_Set</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2673 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> radius,
2674 <a href="ft2-glyph_stroker.html#ft_stroker_linecap">FT_Stroker_LineCap</a> line_cap,
2675 <a href="ft2-glyph_stroker.html#ft_stroker_linejoin">FT_Stroker_LineJoin</a> line_join,
2676 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> miter_limit );
2677 </code></pre></div>
2678
2679 <p>Reset a stroker object's attributes.</p>
2680 <h4>input</h4>
2681 <table class="fields">
2682 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2683 <p>The target stroker handle.</p>
2684 </td></tr>
2685 <tr><td class="val" id="radius">radius</td><td class="desc">
2686 <p>The border radius.</p>
2687 </td></tr>
2688 <tr><td class="val" id="line_cap">line_cap</td><td class="desc">
2689 <p>The line cap style.</p>
2690 </td></tr>
2691 <tr><td class="val" id="line_join">line_join</td><td class="desc">
2692 <p>The line join style.</p>
2693 </td></tr>
2694 <tr><td class="val" id="miter_limit">miter_limit</td><td class="desc">
2695 <p>The maximum reciprocal sine of half-angle at the miter join, expressed as 16.16 fixed-point value.</p>
2696 </td></tr>
2697 </table>
2698
2699 <h4>note</h4>
2700
2701 <p>The <code>radius</code> is expressed in the same units as the outline coordinates.</p>
2702 <p>The <code>miter_limit</code> multiplied by the <code>radius</code> gives the maximum size of a miter spike, at which it is clipped for <code><a href="ft2-glyph_stroker.html#ft_stroker_linejoin">FT_STROKER_LINEJOIN_MITER_VARIABLE</a></code> or replaced with a bevel join for <code><a href="ft2-glyph_stroker.html#ft_stroker_linejoin">FT_STROKER_LINEJOIN_MITER_FIXED</a></code>.</p>
2703 <p>This function calls <code><a href="ft2-glyph_stroker.html#ft_stroker_rewind">FT_Stroker_Rewind</a></code> automatically.</p>
2704 <hr>
2705
2706 <h2 id="ft_stroker_rewind">FT_Stroker_Rewind<a class="headerlink" href="#ft_stroker_rewind" title="Permanent link">&para;</a></h2>
2707 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2708 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2709 <b>FT_Stroker_Rewind</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker );
2710 </code></pre></div>
2711
2712 <p>Reset a stroker object without changing its attributes. You should call this function before beginning a new series of calls to <code><a href="ft2-glyph_stroker.html#ft_stroker_beginsubpath">FT_Stroker_BeginSubPath</a></code> or <code><a href="ft2-glyph_stroker.html#ft_stroker_endsubpath">FT_Stroker_EndSubPath</a></code>.</p>
2713 <h4>input</h4>
2714 <table class="fields">
2715 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2716 <p>The target stroker handle.</p>
2717 </td></tr>
2718 </table>
2719
2720 <hr>
2721
2722 <h2 id="ft_stroker_parseoutline">FT_Stroker_ParseOutline<a class="headerlink" href="#ft_stroker_parseoutline" title="Permanent link">&para;</a></h2>
2723 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2724 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2725 <b>FT_Stroker_ParseOutline</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2726 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline,
2727 <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> opened );
2728 </code></pre></div>
2729
2730 <p>A convenience function used to parse a whole outline with the stroker. The resulting outline(s) can be retrieved later by functions like <code><a href="ft2-glyph_stroker.html#ft_stroker_getcounts">FT_Stroker_GetCounts</a></code> and <code><a href="ft2-glyph_stroker.html#ft_stroker_export">FT_Stroker_Export</a></code>.</p>
2731 <h4>input</h4>
2732 <table class="fields">
2733 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2734 <p>The target stroker handle.</p>
2735 </td></tr>
2736 <tr><td class="val" id="outline">outline</td><td class="desc">
2737 <p>The source outline.</p>
2738 </td></tr>
2739 <tr><td class="val" id="opened">opened</td><td class="desc">
2740 <p>A boolean. If 1, the outline is treated as an open path instead of a closed one.</p>
2741 </td></tr>
2742 </table>
2743
2744 <h4>return</h4>
2745
2746 <p>FreeType error code. 0&nbsp;means success.</p>
2747 <h4>note</h4>
2748
2749 <p>If <code>opened</code> is&nbsp;0 (the default), the outline is treated as a closed path, and the stroker generates two distinct &lsquo;border&rsquo; outlines.</p>
2750 <p>If <code>opened</code> is&nbsp;1, the outline is processed as an open path, and the stroker generates a single &lsquo;stroke&rsquo; outline.</p>
2751 <p>This function calls <code><a href="ft2-glyph_stroker.html#ft_stroker_rewind">FT_Stroker_Rewind</a></code> automatically.</p>
2752 <hr>
2753
2754 <h2 id="ft_stroker_done">FT_Stroker_Done<a class="headerlink" href="#ft_stroker_done" title="Permanent link">&para;</a></h2>
2755 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2756 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2757 <b>FT_Stroker_Done</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker );
2758 </code></pre></div>
2759
2760 <p>Destroy a stroker object.</p>
2761 <h4>input</h4>
2762 <table class="fields">
2763 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2764 <p>A stroker handle. Can be <code>NULL</code>.</p>
2765 </td></tr>
2766 </table>
2767
2768 <hr>
2769
2770 <h2 id="ft_stroker_beginsubpath">FT_Stroker_BeginSubPath<a class="headerlink" href="#ft_stroker_beginsubpath" title="Permanent link">&para;</a></h2>
2771 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2772 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2773 <b>FT_Stroker_BeginSubPath</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2774 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to,
2775 <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> open );
2776 </code></pre></div>
2777
2778 <p>Start a new sub-path in the stroker.</p>
2779 <h4>input</h4>
2780 <table class="fields">
2781 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2782 <p>The target stroker handle.</p>
2783 </td></tr>
2784 <tr><td class="val" id="to">to</td><td class="desc">
2785 <p>A pointer to the start vector.</p>
2786 </td></tr>
2787 <tr><td class="val" id="open">open</td><td class="desc">
2788 <p>A boolean. If 1, the sub-path is treated as an open one.</p>
2789 </td></tr>
2790 </table>
2791
2792 <h4>return</h4>
2793
2794 <p>FreeType error code. 0&nbsp;means success.</p>
2795 <h4>note</h4>
2796
2797 <p>This function is useful when you need to stroke a path that is not stored as an <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code> object.</p>
2798 <hr>
2799
2800 <h2 id="ft_stroker_endsubpath">FT_Stroker_EndSubPath<a class="headerlink" href="#ft_stroker_endsubpath" title="Permanent link">&para;</a></h2>
2801 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2802 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2803 <b>FT_Stroker_EndSubPath</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker );
2804 </code></pre></div>
2805
2806 <p>Close the current sub-path in the stroker.</p>
2807 <h4>input</h4>
2808 <table class="fields">
2809 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2810 <p>The target stroker handle.</p>
2811 </td></tr>
2812 </table>
2813
2814 <h4>return</h4>
2815
2816 <p>FreeType error code. 0&nbsp;means success.</p>
2817 <h4>note</h4>
2818
2819 <p>You should call this function after <code><a href="ft2-glyph_stroker.html#ft_stroker_beginsubpath">FT_Stroker_BeginSubPath</a></code>. If the subpath was not &lsquo;opened&rsquo;, this function &lsquo;draws&rsquo; a single line segment to the start position when needed.</p>
2820 <hr>
2821
2822 <h2 id="ft_stroker_lineto">FT_Stroker_LineTo<a class="headerlink" href="#ft_stroker_lineto" title="Permanent link">&para;</a></h2>
2823 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2824 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2825 <b>FT_Stroker_LineTo</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2826 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to );
2827 </code></pre></div>
2828
2829 <p>&lsquo;Draw&rsquo; a single line segment in the stroker's current sub-path, from the last position.</p>
2830 <h4>input</h4>
2831 <table class="fields">
2832 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2833 <p>The target stroker handle.</p>
2834 </td></tr>
2835 <tr><td class="val" id="to">to</td><td class="desc">
2836 <p>A pointer to the destination point.</p>
2837 </td></tr>
2838 </table>
2839
2840 <h4>return</h4>
2841
2842 <p>FreeType error code. 0&nbsp;means success.</p>
2843 <h4>note</h4>
2844
2845 <p>You should call this function between <code><a href="ft2-glyph_stroker.html#ft_stroker_beginsubpath">FT_Stroker_BeginSubPath</a></code> and <code><a href="ft2-glyph_stroker.html#ft_stroker_endsubpath">FT_Stroker_EndSubPath</a></code>.</p>
2846 <hr>
2847
2848 <h2 id="ft_stroker_conicto">FT_Stroker_ConicTo<a class="headerlink" href="#ft_stroker_conicto" title="Permanent link">&para;</a></h2>
2849 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2850 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2851 <b>FT_Stroker_ConicTo</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2852 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* control,
2853 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to );
2854 </code></pre></div>
2855
2856 <p>&lsquo;Draw&rsquo; a single quadratic Bezier in the stroker's current sub-path, from the last position.</p>
2857 <h4>input</h4>
2858 <table class="fields">
2859 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2860 <p>The target stroker handle.</p>
2861 </td></tr>
2862 <tr><td class="val" id="control">control</td><td class="desc">
2863 <p>A pointer to a Bezier control point.</p>
2864 </td></tr>
2865 <tr><td class="val" id="to">to</td><td class="desc">
2866 <p>A pointer to the destination point.</p>
2867 </td></tr>
2868 </table>
2869
2870 <h4>return</h4>
2871
2872 <p>FreeType error code. 0&nbsp;means success.</p>
2873 <h4>note</h4>
2874
2875 <p>You should call this function between <code><a href="ft2-glyph_stroker.html#ft_stroker_beginsubpath">FT_Stroker_BeginSubPath</a></code> and <code><a href="ft2-glyph_stroker.html#ft_stroker_endsubpath">FT_Stroker_EndSubPath</a></code>.</p>
2876 <hr>
2877
2878 <h2 id="ft_stroker_cubicto">FT_Stroker_CubicTo<a class="headerlink" href="#ft_stroker_cubicto" title="Permanent link">&para;</a></h2>
2879 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2880 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2881 <b>FT_Stroker_CubicTo</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2882 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* control1,
2883 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* control2,
2884 <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* to );
2885 </code></pre></div>
2886
2887 <p>&lsquo;Draw&rsquo; a single cubic Bezier in the stroker's current sub-path, from the last position.</p>
2888 <h4>input</h4>
2889 <table class="fields">
2890 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2891 <p>The target stroker handle.</p>
2892 </td></tr>
2893 <tr><td class="val" id="control1">control1</td><td class="desc">
2894 <p>A pointer to the first Bezier control point.</p>
2895 </td></tr>
2896 <tr><td class="val" id="control2">control2</td><td class="desc">
2897 <p>A pointer to second Bezier control point.</p>
2898 </td></tr>
2899 <tr><td class="val" id="to">to</td><td class="desc">
2900 <p>A pointer to the destination point.</p>
2901 </td></tr>
2902 </table>
2903
2904 <h4>return</h4>
2905
2906 <p>FreeType error code. 0&nbsp;means success.</p>
2907 <h4>note</h4>
2908
2909 <p>You should call this function between <code><a href="ft2-glyph_stroker.html#ft_stroker_beginsubpath">FT_Stroker_BeginSubPath</a></code> and <code><a href="ft2-glyph_stroker.html#ft_stroker_endsubpath">FT_Stroker_EndSubPath</a></code>.</p>
2910 <hr>
2911
2912 <h2 id="ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts<a class="headerlink" href="#ft_stroker_getbordercounts" title="Permanent link">&para;</a></h2>
2913 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2914 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2915 <b>FT_Stroker_GetBorderCounts</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2916 <a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a> border,
2917 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> *anum_points,
2918 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> *anum_contours );
2919 </code></pre></div>
2920
2921 <p>Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export one of the &lsquo;border&rsquo; or &lsquo;stroke&rsquo; outlines generated by the stroker.</p>
2922 <h4>input</h4>
2923 <table class="fields">
2924 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2925 <p>The target stroker handle.</p>
2926 </td></tr>
2927 <tr><td class="val" id="border">border</td><td class="desc">
2928 <p>The border index.</p>
2929 </td></tr>
2930 </table>
2931
2932 <h4>output</h4>
2933 <table class="fields">
2934 <tr><td class="val" id="anum_points">anum_points</td><td class="desc">
2935 <p>The number of points.</p>
2936 </td></tr>
2937 <tr><td class="val" id="anum_contours">anum_contours</td><td class="desc">
2938 <p>The number of contours.</p>
2939 </td></tr>
2940 </table>
2941
2942 <h4>return</h4>
2943
2944 <p>FreeType error code. 0&nbsp;means success.</p>
2945 <h4>note</h4>
2946
2947 <p>When an outline, or a sub-path, is &lsquo;closed&rsquo;, the stroker generates two independent &lsquo;border&rsquo; outlines, named &lsquo;left&rsquo; and &lsquo;right&rsquo;.</p>
2948 <p>When the outline, or a sub-path, is &lsquo;opened&rsquo;, the stroker merges the &lsquo;border&rsquo; outlines with caps. The &lsquo;left&rsquo; border receives all points, while the &lsquo;right&rsquo; border becomes empty.</p>
2949 <p>Use the function <code><a href="ft2-glyph_stroker.html#ft_stroker_getcounts">FT_Stroker_GetCounts</a></code> instead if you want to retrieve the counts associated to both borders.</p>
2950 <hr>
2951
2952 <h2 id="ft_stroker_exportborder">FT_Stroker_ExportBorder<a class="headerlink" href="#ft_stroker_exportborder" title="Permanent link">&para;</a></h2>
2953 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2954 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2955 <b>FT_Stroker_ExportBorder</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2956 <a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a> border,
2957 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
2958 </code></pre></div>
2959
2960 <p>Call this function after <code><a href="ft2-glyph_stroker.html#ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts</a></code> to export the corresponding border to your own <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code> structure.</p>
2961 <p>Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.</p>
2962 <h4>input</h4>
2963 <table class="fields">
2964 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2965 <p>The target stroker handle.</p>
2966 </td></tr>
2967 <tr><td class="val" id="border">border</td><td class="desc">
2968 <p>The border index.</p>
2969 </td></tr>
2970 <tr><td class="val" id="outline">outline</td><td class="desc">
2971 <p>The target outline handle.</p>
2972 </td></tr>
2973 </table>
2974
2975 <h4>note</h4>
2976
2977 <p>Always call this function after <code><a href="ft2-glyph_stroker.html#ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts</a></code> to get sure that there is enough room in your <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code> object to receive all new data.</p>
2978 <p>When an outline, or a sub-path, is &lsquo;closed&rsquo;, the stroker generates two independent &lsquo;border&rsquo; outlines, named &lsquo;left&rsquo; and &lsquo;right&rsquo;.</p>
2979 <p>When the outline, or a sub-path, is &lsquo;opened&rsquo;, the stroker merges the &lsquo;border&rsquo; outlines with caps. The &lsquo;left&rsquo; border receives all points, while the &lsquo;right&rsquo; border becomes empty.</p>
2980 <p>Use the function <code><a href="ft2-glyph_stroker.html#ft_stroker_export">FT_Stroker_Export</a></code> instead if you want to retrieve all borders at once.</p>
2981 <hr>
2982
2983 <h2 id="ft_stroker_getcounts">FT_Stroker_GetCounts<a class="headerlink" href="#ft_stroker_getcounts" title="Permanent link">&para;</a></h2>
2984 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
2985 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2986 <b>FT_Stroker_GetCounts</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
2987 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> *anum_points,
2988 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> *anum_contours );
2989 </code></pre></div>
2990
2991 <p>Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export all points/borders from the stroked outline/path.</p>
2992 <h4>input</h4>
2993 <table class="fields">
2994 <tr><td class="val" id="stroker">stroker</td><td class="desc">
2995 <p>The target stroker handle.</p>
2996 </td></tr>
2997 </table>
2998
2999 <h4>output</h4>
3000 <table class="fields">
3001 <tr><td class="val" id="anum_points">anum_points</td><td class="desc">
3002 <p>The number of points.</p>
3003 </td></tr>
3004 <tr><td class="val" id="anum_contours">anum_contours</td><td class="desc">
3005 <p>The number of contours.</p>
3006 </td></tr>
3007 </table>
3008
3009 <h4>return</h4>
3010
3011 <p>FreeType error code. 0&nbsp;means success.</p>
3012 <hr>
3013
3014 <h2 id="ft_stroker_export">FT_Stroker_Export<a class="headerlink" href="#ft_stroker_export" title="Permanent link">&para;</a></h2>
3015 <p>Defined in FT_STROKER_H (freetype/ftstroke.h).</p>
3016 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
3017 <b>FT_Stroker_Export</b>( <a href="ft2-glyph_stroker.html#ft_stroker">FT_Stroker</a> stroker,
3018 <a href="ft2-outline_processing.html#ft_outline">FT_Outline</a>* outline );
3019 </code></pre></div>
3020
3021 <p>Call this function after <code><a href="ft2-glyph_stroker.html#ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts</a></code> to export all borders to your own <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code> structure.</p>
3022 <p>Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.</p>
3023 <h4>input</h4>
3024 <table class="fields">
3025 <tr><td class="val" id="stroker">stroker</td><td class="desc">
3026 <p>The target stroker handle.</p>
3027 </td></tr>
3028 <tr><td class="val" id="outline">outline</td><td class="desc">
3029 <p>The target outline handle.</p>
3030 </td></tr>
3031 </table>
3032
3033 <hr>
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047 </article>
3048 </div>
3049
3050
3051 <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
3052 </div>
3053
3054 </main>
3055
3056 <footer class="md-footer">
3057
3058 <div class="md-footer-meta md-typeset">
3059 <div class="md-footer-meta__inner md-grid">
3060 <div class="md-copyright">
3061
3062 <div class="md-copyright__highlight">
3063 Copyright 2026 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
3064 </div>
3065
3066
3067 Made with
3068 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
3069 Material for MkDocs
3070 </a>
3071
3072 </div>
3073
3074 </div>
3075 </div>
3076 </footer>
3077
3078 </div>
3079 <div class="md-dialog" data-md-component="dialog">
3080 <div class="md-dialog__inner md-typeset"></div>
3081 </div>
3082
3083
3084 <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>
3085
3086
3087 <script src="assets/javascripts/bundle.c8b220af.min.js"></script>
3088
3089 <script src="javascripts/extra.js"></script>
3090
3091
3092 </body>
3093 </html>