Debian Codegraph @

docs/reference/ft2-basic_types.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-basic_types.html">
16
17
18 <link rel="prev" href="ft2-user_allocation.html">
19
20
21 <link rel="next" href="ft2-library_setup.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>Basic Data Types - 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="#basic-data-types" 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 Basic Data Types
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
363
364 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
365
366
367
368 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" checked>
369
370
371 <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
372
373
374 <span class="md-ellipsis">
375 Core API
376
377 </span>
378
379
380 <span class="md-nav__icon md-icon"></span>
381 </label>
382
383 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="true">
384 <label class="md-nav__title" for="__nav_4">
385 <span class="md-nav__icon md-icon"></span>
386 Core API
387 </label>
388 <ul class="md-nav__list" data-md-scrollfix>
389
390
391
392
393
394
395
396
397
398 <li class="md-nav__item md-nav__item--active">
399
400 <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
401
402
403
404
405
406 <label class="md-nav__link md-nav__link--active" for="__toc">
407
408
409 <span class="md-ellipsis">
410 Basic Data Types
411
412 </span>
413
414
415 <span class="md-nav__icon md-icon"></span>
416 </label>
417
418 <a href="ft2-basic_types.html" class="md-nav__link md-nav__link--active">
419
420
421 <span class="md-ellipsis">
422 Basic Data Types
423
424 </span>
425
426
427 </a>
428
429
430
431 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
432
433
434
435
436
437
438 <label class="md-nav__title" for="__toc">
439 <span class="md-nav__icon md-icon"></span>
440 Table of contents
441 </label>
442 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
443
444 <li class="md-nav__item">
445 <a href="#synopsis" class="md-nav__link">
446 <span class="md-ellipsis">
447 Synopsis
448 </span>
449 </a>
450
451 </li>
452
453 <li class="md-nav__item">
454 <a href="#ft_byte" class="md-nav__link">
455 <span class="md-ellipsis">
456 FT_Byte
457 </span>
458 </a>
459
460 </li>
461
462 <li class="md-nav__item">
463 <a href="#ft_bytes" class="md-nav__link">
464 <span class="md-ellipsis">
465 FT_Bytes
466 </span>
467 </a>
468
469 </li>
470
471 <li class="md-nav__item">
472 <a href="#ft_char" class="md-nav__link">
473 <span class="md-ellipsis">
474 FT_Char
475 </span>
476 </a>
477
478 </li>
479
480 <li class="md-nav__item">
481 <a href="#ft_int" class="md-nav__link">
482 <span class="md-ellipsis">
483 FT_Int
484 </span>
485 </a>
486
487 </li>
488
489 <li class="md-nav__item">
490 <a href="#ft_uint" class="md-nav__link">
491 <span class="md-ellipsis">
492 FT_UInt
493 </span>
494 </a>
495
496 </li>
497
498 <li class="md-nav__item">
499 <a href="#ft_int16" class="md-nav__link">
500 <span class="md-ellipsis">
501 FT_Int16
502 </span>
503 </a>
504
505 </li>
506
507 <li class="md-nav__item">
508 <a href="#ft_uint16" class="md-nav__link">
509 <span class="md-ellipsis">
510 FT_UInt16
511 </span>
512 </a>
513
514 </li>
515
516 <li class="md-nav__item">
517 <a href="#ft_int32" class="md-nav__link">
518 <span class="md-ellipsis">
519 FT_Int32
520 </span>
521 </a>
522
523 </li>
524
525 <li class="md-nav__item">
526 <a href="#ft_uint32" class="md-nav__link">
527 <span class="md-ellipsis">
528 FT_UInt32
529 </span>
530 </a>
531
532 </li>
533
534 <li class="md-nav__item">
535 <a href="#ft_int64" class="md-nav__link">
536 <span class="md-ellipsis">
537 FT_Int64
538 </span>
539 </a>
540
541 </li>
542
543 <li class="md-nav__item">
544 <a href="#ft_uint64" class="md-nav__link">
545 <span class="md-ellipsis">
546 FT_UInt64
547 </span>
548 </a>
549
550 </li>
551
552 <li class="md-nav__item">
553 <a href="#ft_short" class="md-nav__link">
554 <span class="md-ellipsis">
555 FT_Short
556 </span>
557 </a>
558
559 </li>
560
561 <li class="md-nav__item">
562 <a href="#ft_ushort" class="md-nav__link">
563 <span class="md-ellipsis">
564 FT_UShort
565 </span>
566 </a>
567
568 </li>
569
570 <li class="md-nav__item">
571 <a href="#ft_long" class="md-nav__link">
572 <span class="md-ellipsis">
573 FT_Long
574 </span>
575 </a>
576
577 </li>
578
579 <li class="md-nav__item">
580 <a href="#ft_ulong" class="md-nav__link">
581 <span class="md-ellipsis">
582 FT_ULong
583 </span>
584 </a>
585
586 </li>
587
588 <li class="md-nav__item">
589 <a href="#ft_bool" class="md-nav__link">
590 <span class="md-ellipsis">
591 FT_Bool
592 </span>
593 </a>
594
595 </li>
596
597 <li class="md-nav__item">
598 <a href="#ft_offset" class="md-nav__link">
599 <span class="md-ellipsis">
600 FT_Offset
601 </span>
602 </a>
603
604 </li>
605
606 <li class="md-nav__item">
607 <a href="#ft_ptrdist" class="md-nav__link">
608 <span class="md-ellipsis">
609 FT_PtrDist
610 </span>
611 </a>
612
613 </li>
614
615 <li class="md-nav__item">
616 <a href="#ft_string" class="md-nav__link">
617 <span class="md-ellipsis">
618 FT_String
619 </span>
620 </a>
621
622 </li>
623
624 <li class="md-nav__item">
625 <a href="#ft_tag" class="md-nav__link">
626 <span class="md-ellipsis">
627 FT_Tag
628 </span>
629 </a>
630
631 </li>
632
633 <li class="md-nav__item">
634 <a href="#ft_error" class="md-nav__link">
635 <span class="md-ellipsis">
636 FT_Error
637 </span>
638 </a>
639
640 </li>
641
642 <li class="md-nav__item">
643 <a href="#ft_fixed" class="md-nav__link">
644 <span class="md-ellipsis">
645 FT_Fixed
646 </span>
647 </a>
648
649 </li>
650
651 <li class="md-nav__item">
652 <a href="#ft_pointer" class="md-nav__link">
653 <span class="md-ellipsis">
654 FT_Pointer
655 </span>
656 </a>
657
658 </li>
659
660 <li class="md-nav__item">
661 <a href="#ft_pos" class="md-nav__link">
662 <span class="md-ellipsis">
663 FT_Pos
664 </span>
665 </a>
666
667 </li>
668
669 <li class="md-nav__item">
670 <a href="#ft_vector" class="md-nav__link">
671 <span class="md-ellipsis">
672 FT_Vector
673 </span>
674 </a>
675
676 </li>
677
678 <li class="md-nav__item">
679 <a href="#ft_bbox" class="md-nav__link">
680 <span class="md-ellipsis">
681 FT_BBox
682 </span>
683 </a>
684
685 </li>
686
687 <li class="md-nav__item">
688 <a href="#ft_matrix" class="md-nav__link">
689 <span class="md-ellipsis">
690 FT_Matrix
691 </span>
692 </a>
693
694 </li>
695
696 <li class="md-nav__item">
697 <a href="#ft_fword" class="md-nav__link">
698 <span class="md-ellipsis">
699 FT_FWord
700 </span>
701 </a>
702
703 </li>
704
705 <li class="md-nav__item">
706 <a href="#ft_ufword" class="md-nav__link">
707 <span class="md-ellipsis">
708 FT_UFWord
709 </span>
710 </a>
711
712 </li>
713
714 <li class="md-nav__item">
715 <a href="#ft_f2dot14" class="md-nav__link">
716 <span class="md-ellipsis">
717 FT_F2Dot14
718 </span>
719 </a>
720
721 </li>
722
723 <li class="md-nav__item">
724 <a href="#ft_unitvector" class="md-nav__link">
725 <span class="md-ellipsis">
726 FT_UnitVector
727 </span>
728 </a>
729
730 </li>
731
732 <li class="md-nav__item">
733 <a href="#ft_f26dot6" class="md-nav__link">
734 <span class="md-ellipsis">
735 FT_F26Dot6
736 </span>
737 </a>
738
739 </li>
740
741 <li class="md-nav__item">
742 <a href="#ft_data" class="md-nav__link">
743 <span class="md-ellipsis">
744 FT_Data
745 </span>
746 </a>
747
748 </li>
749
750 <li class="md-nav__item">
751 <a href="#ft_make_tag" class="md-nav__link">
752 <span class="md-ellipsis">
753 FT_MAKE_TAG
754 </span>
755 </a>
756
757 </li>
758
759 <li class="md-nav__item">
760 <a href="#ft_generic" class="md-nav__link">
761 <span class="md-ellipsis">
762 FT_Generic
763 </span>
764 </a>
765
766 </li>
767
768 <li class="md-nav__item">
769 <a href="#ft_generic_finalizer" class="md-nav__link">
770 <span class="md-ellipsis">
771 FT_Generic_Finalizer
772 </span>
773 </a>
774
775 </li>
776
777 <li class="md-nav__item">
778 <a href="#ft_bitmap" class="md-nav__link">
779 <span class="md-ellipsis">
780 FT_Bitmap
781 </span>
782 </a>
783
784 </li>
785
786 <li class="md-nav__item">
787 <a href="#ft_pixel_mode" class="md-nav__link">
788 <span class="md-ellipsis">
789 FT_Pixel_Mode
790 </span>
791 </a>
792
793 </li>
794
795 <li class="md-nav__item">
796 <a href="#ft_glyph_format" class="md-nav__link">
797 <span class="md-ellipsis">
798 FT_Glyph_Format
799 </span>
800 </a>
801
802 </li>
803
804 <li class="md-nav__item">
805 <a href="#ft_image_tag" class="md-nav__link">
806 <span class="md-ellipsis">
807 FT_IMAGE_TAG
808 </span>
809 </a>
810
811 </li>
812
813 </ul>
814
815 </nav>
816
817 </li>
818
819
820
821
822
823
824
825
826
827
828 <li class="md-nav__item">
829 <a href="ft2-library_setup.html" class="md-nav__link">
830
831
832 <span class="md-ellipsis">
833 Library Setup
834
835 </span>
836
837
838 </a>
839 </li>
840
841
842
843
844
845
846
847
848
849
850 <li class="md-nav__item">
851 <a href="ft2-face_creation.html" class="md-nav__link">
852
853
854 <span class="md-ellipsis">
855 Face Creation
856
857 </span>
858
859
860 </a>
861 </li>
862
863
864
865
866
867
868
869
870
871
872 <li class="md-nav__item">
873 <a href="ft2-font_testing_macros.html" class="md-nav__link">
874
875
876 <span class="md-ellipsis">
877 Font Testing Macros
878
879 </span>
880
881
882 </a>
883 </li>
884
885
886
887
888
889
890
891
892
893
894 <li class="md-nav__item">
895 <a href="ft2-sizing_and_scaling.html" class="md-nav__link">
896
897
898 <span class="md-ellipsis">
899 Sizing and Scaling
900
901 </span>
902
903
904 </a>
905 </li>
906
907
908
909
910
911
912
913
914
915
916 <li class="md-nav__item">
917 <a href="ft2-glyph_retrieval.html" class="md-nav__link">
918
919
920 <span class="md-ellipsis">
921 Glyph Retrieval
922
923 </span>
924
925
926 </a>
927 </li>
928
929
930
931
932
933
934
935
936
937
938 <li class="md-nav__item">
939 <a href="ft2-character_mapping.html" class="md-nav__link">
940
941
942 <span class="md-ellipsis">
943 Character Mapping
944
945 </span>
946
947
948 </a>
949 </li>
950
951
952
953
954
955
956
957
958
959
960 <li class="md-nav__item">
961 <a href="ft2-information_retrieval.html" class="md-nav__link">
962
963
964 <span class="md-ellipsis">
965 Information Retrieval
966
967 </span>
968
969
970 </a>
971 </li>
972
973
974
975
976
977
978
979
980
981
982 <li class="md-nav__item">
983 <a href="ft2-other_api_data.html" class="md-nav__link">
984
985
986 <span class="md-ellipsis">
987 Other API Data
988
989 </span>
990
991
992 </a>
993 </li>
994
995
996
997
998 </ul>
999 </nav>
1000
1001 </li>
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015 <li class="md-nav__item md-nav__item--nested">
1016
1017
1018
1019 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
1020
1021
1022 <label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
1023
1024
1025 <span class="md-ellipsis">
1026 Extended API
1027
1028 </span>
1029
1030
1031 <span class="md-nav__icon md-icon"></span>
1032 </label>
1033
1034 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
1035 <label class="md-nav__title" for="__nav_5">
1036 <span class="md-nav__icon md-icon"></span>
1037 Extended API
1038 </label>
1039 <ul class="md-nav__list" data-md-scrollfix>
1040
1041
1042
1043
1044
1045
1046
1047 <li class="md-nav__item">
1048 <a href="ft2-glyph_variants.html" class="md-nav__link">
1049
1050
1051 <span class="md-ellipsis">
1052 Unicode Variation Sequences
1053
1054 </span>
1055
1056
1057 </a>
1058 </li>
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069 <li class="md-nav__item">
1070 <a href="ft2-color_management.html" class="md-nav__link">
1071
1072
1073 <span class="md-ellipsis">
1074 Glyph Color Management
1075
1076 </span>
1077
1078
1079 </a>
1080 </li>
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091 <li class="md-nav__item">
1092 <a href="ft2-layer_management.html" class="md-nav__link">
1093
1094
1095 <span class="md-ellipsis">
1096 Glyph Layer Management
1097
1098 </span>
1099
1100
1101 </a>
1102 </li>
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113 <li class="md-nav__item">
1114 <a href="ft2-glyph_management.html" class="md-nav__link">
1115
1116
1117 <span class="md-ellipsis">
1118 Glyph Management
1119
1120 </span>
1121
1122
1123 </a>
1124 </li>
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135 <li class="md-nav__item">
1136 <a href="ft2-mac_specific.html" class="md-nav__link">
1137
1138
1139 <span class="md-ellipsis">
1140 Mac Specific Interface
1141
1142 </span>
1143
1144
1145 </a>
1146 </li>
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157 <li class="md-nav__item">
1158 <a href="ft2-sizes_management.html" class="md-nav__link">
1159
1160
1161 <span class="md-ellipsis">
1162 Size Management
1163
1164 </span>
1165
1166
1167 </a>
1168 </li>
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179 <li class="md-nav__item">
1180 <a href="ft2-header_file_macros.html" class="md-nav__link">
1181
1182
1183 <span class="md-ellipsis">
1184 Header File Macros
1185
1186 </span>
1187
1188
1189 </a>
1190 </li>
1191
1192
1193
1194
1195 </ul>
1196 </nav>
1197
1198 </li>
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212 <li class="md-nav__item md-nav__item--nested">
1213
1214
1215
1216 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
1217
1218
1219 <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
1220
1221
1222 <span class="md-ellipsis">
1223 Format-Specific API
1224
1225 </span>
1226
1227
1228 <span class="md-nav__icon md-icon"></span>
1229 </label>
1230
1231 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
1232 <label class="md-nav__title" for="__nav_6">
1233 <span class="md-nav__icon md-icon"></span>
1234 Format-Specific API
1235 </label>
1236 <ul class="md-nav__list" data-md-scrollfix>
1237
1238
1239
1240
1241
1242
1243
1244 <li class="md-nav__item">
1245 <a href="ft2-multiple_masters.html" class="md-nav__link">
1246
1247
1248 <span class="md-ellipsis">
1249 OpenType Font Variations, TrueType GX, and Adobe MM Fonts
1250
1251 </span>
1252
1253
1254 </a>
1255 </li>
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266 <li class="md-nav__item">
1267 <a href="ft2-truetype_tables.html" class="md-nav__link">
1268
1269
1270 <span class="md-ellipsis">
1271 TrueType Tables
1272
1273 </span>
1274
1275
1276 </a>
1277 </li>
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288 <li class="md-nav__item">
1289 <a href="ft2-type1_tables.html" class="md-nav__link">
1290
1291
1292 <span class="md-ellipsis">
1293 Type 1 Tables
1294
1295 </span>
1296
1297
1298 </a>
1299 </li>
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310 <li class="md-nav__item">
1311 <a href="ft2-sfnt_names.html" class="md-nav__link">
1312
1313
1314 <span class="md-ellipsis">
1315 SFNT Names
1316
1317 </span>
1318
1319
1320 </a>
1321 </li>
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 <li class="md-nav__item">
1333 <a href="ft2-bdf_fonts.html" class="md-nav__link">
1334
1335
1336 <span class="md-ellipsis">
1337 BDF and PCF Files
1338
1339 </span>
1340
1341
1342 </a>
1343 </li>
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354 <li class="md-nav__item">
1355 <a href="ft2-cid_fonts.html" class="md-nav__link">
1356
1357
1358 <span class="md-ellipsis">
1359 CID Fonts
1360
1361 </span>
1362
1363
1364 </a>
1365 </li>
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376 <li class="md-nav__item">
1377 <a href="ft2-pfr_fonts.html" class="md-nav__link">
1378
1379
1380 <span class="md-ellipsis">
1381 PFR Fonts
1382
1383 </span>
1384
1385
1386 </a>
1387 </li>
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398 <li class="md-nav__item">
1399 <a href="ft2-winfnt_fonts.html" class="md-nav__link">
1400
1401
1402 <span class="md-ellipsis">
1403 Window FNT Files
1404
1405 </span>
1406
1407
1408 </a>
1409 </li>
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420 <li class="md-nav__item">
1421 <a href="ft2-svg_fonts.html" class="md-nav__link">
1422
1423
1424 <span class="md-ellipsis">
1425 OpenType SVG Fonts
1426
1427 </span>
1428
1429
1430 </a>
1431 </li>
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442 <li class="md-nav__item">
1443 <a href="ft2-font_formats.html" class="md-nav__link">
1444
1445
1446 <span class="md-ellipsis">
1447 Font Formats
1448
1449 </span>
1450
1451
1452 </a>
1453 </li>
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464 <li class="md-nav__item">
1465 <a href="ft2-gasp_table.html" class="md-nav__link">
1466
1467
1468 <span class="md-ellipsis">
1469 Gasp Table
1470
1471 </span>
1472
1473
1474 </a>
1475 </li>
1476
1477
1478
1479
1480 </ul>
1481 </nav>
1482
1483 </li>
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497 <li class="md-nav__item md-nav__item--nested">
1498
1499
1500
1501 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
1502
1503
1504 <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
1505
1506
1507 <span class="md-ellipsis">
1508 Controlling FreeType Modules
1509
1510 </span>
1511
1512
1513 <span class="md-nav__icon md-icon"></span>
1514 </label>
1515
1516 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
1517 <label class="md-nav__title" for="__nav_7">
1518 <span class="md-nav__icon md-icon"></span>
1519 Controlling FreeType Modules
1520 </label>
1521 <ul class="md-nav__list" data-md-scrollfix>
1522
1523
1524
1525
1526
1527
1528
1529 <li class="md-nav__item">
1530 <a href="ft2-auto_hinter.html" class="md-nav__link">
1531
1532
1533 <span class="md-ellipsis">
1534 The auto-hinter
1535
1536 </span>
1537
1538
1539 </a>
1540 </li>
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551 <li class="md-nav__item">
1552 <a href="ft2-cff_driver.html" class="md-nav__link">
1553
1554
1555 <span class="md-ellipsis">
1556 The CFF driver
1557
1558 </span>
1559
1560
1561 </a>
1562 </li>
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573 <li class="md-nav__item">
1574 <a href="ft2-t1_cid_driver.html" class="md-nav__link">
1575
1576
1577 <span class="md-ellipsis">
1578 The Type 1 and CID drivers
1579
1580 </span>
1581
1582
1583 </a>
1584 </li>
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595 <li class="md-nav__item">
1596 <a href="ft2-tt_driver.html" class="md-nav__link">
1597
1598
1599 <span class="md-ellipsis">
1600 The TrueType driver
1601
1602 </span>
1603
1604
1605 </a>
1606 </li>
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617 <li class="md-nav__item">
1618 <a href="ft2-pcf_driver.html" class="md-nav__link">
1619
1620
1621 <span class="md-ellipsis">
1622 The PCF driver
1623
1624 </span>
1625
1626
1627 </a>
1628 </li>
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639 <li class="md-nav__item">
1640 <a href="ft2-ot_svg_driver.html" class="md-nav__link">
1641
1642
1643 <span class="md-ellipsis">
1644 The SVG driver
1645
1646 </span>
1647
1648
1649 </a>
1650 </li>
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661 <li class="md-nav__item">
1662 <a href="ft2-properties.html" class="md-nav__link">
1663
1664
1665 <span class="md-ellipsis">
1666 Driver properties
1667
1668 </span>
1669
1670
1671 </a>
1672 </li>
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683 <li class="md-nav__item">
1684 <a href="ft2-parameter_tags.html" class="md-nav__link">
1685
1686
1687 <span class="md-ellipsis">
1688 Parameter Tags
1689
1690 </span>
1691
1692
1693 </a>
1694 </li>
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705 <li class="md-nav__item">
1706 <a href="ft2-lcd_rendering.html" class="md-nav__link">
1707
1708
1709 <span class="md-ellipsis">
1710 Subpixel Rendering
1711
1712 </span>
1713
1714
1715 </a>
1716 </li>
1717
1718
1719
1720
1721 </ul>
1722 </nav>
1723
1724 </li>
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738 <li class="md-nav__item md-nav__item--nested">
1739
1740
1741
1742 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
1743
1744
1745 <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
1746
1747
1748 <span class="md-ellipsis">
1749 Cache Sub-System
1750
1751 </span>
1752
1753
1754 <span class="md-nav__icon md-icon"></span>
1755 </label>
1756
1757 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
1758 <label class="md-nav__title" for="__nav_8">
1759 <span class="md-nav__icon md-icon"></span>
1760 Cache Sub-System
1761 </label>
1762 <ul class="md-nav__list" data-md-scrollfix>
1763
1764
1765
1766
1767
1768
1769
1770 <li class="md-nav__item">
1771 <a href="ft2-cache_subsystem.html" class="md-nav__link">
1772
1773
1774 <span class="md-ellipsis">
1775 Cache Sub-System
1776
1777 </span>
1778
1779
1780 </a>
1781 </li>
1782
1783
1784
1785
1786 </ul>
1787 </nav>
1788
1789 </li>
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803 <li class="md-nav__item md-nav__item--nested">
1804
1805
1806
1807 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
1808
1809
1810 <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
1811
1812
1813 <span class="md-ellipsis">
1814 Support API
1815
1816 </span>
1817
1818
1819 <span class="md-nav__icon md-icon"></span>
1820 </label>
1821
1822 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
1823 <label class="md-nav__title" for="__nav_9">
1824 <span class="md-nav__icon md-icon"></span>
1825 Support API
1826 </label>
1827 <ul class="md-nav__list" data-md-scrollfix>
1828
1829
1830
1831
1832
1833
1834
1835 <li class="md-nav__item">
1836 <a href="ft2-computations.html" class="md-nav__link">
1837
1838
1839 <span class="md-ellipsis">
1840 Computations
1841
1842 </span>
1843
1844
1845 </a>
1846 </li>
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857 <li class="md-nav__item">
1858 <a href="ft2-list_processing.html" class="md-nav__link">
1859
1860
1861 <span class="md-ellipsis">
1862 List Processing
1863
1864 </span>
1865
1866
1867 </a>
1868 </li>
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879 <li class="md-nav__item">
1880 <a href="ft2-outline_processing.html" class="md-nav__link">
1881
1882
1883 <span class="md-ellipsis">
1884 Outline Processing
1885
1886 </span>
1887
1888
1889 </a>
1890 </li>
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901 <li class="md-nav__item">
1902 <a href="ft2-quick_advance.html" class="md-nav__link">
1903
1904
1905 <span class="md-ellipsis">
1906 Quick retrieval of advance values
1907
1908 </span>
1909
1910
1911 </a>
1912 </li>
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923 <li class="md-nav__item">
1924 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1925
1926
1927 <span class="md-ellipsis">
1928 Bitmap Handling
1929
1930 </span>
1931
1932
1933 </a>
1934 </li>
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945 <li class="md-nav__item">
1946 <a href="ft2-raster.html" class="md-nav__link">
1947
1948
1949 <span class="md-ellipsis">
1950 Scanline Converter
1951
1952 </span>
1953
1954
1955 </a>
1956 </li>
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967 <li class="md-nav__item">
1968 <a href="ft2-glyph_stroker.html" class="md-nav__link">
1969
1970
1971 <span class="md-ellipsis">
1972 Glyph Stroker
1973
1974 </span>
1975
1976
1977 </a>
1978 </li>
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989 <li class="md-nav__item">
1990 <a href="ft2-system_interface.html" class="md-nav__link">
1991
1992
1993 <span class="md-ellipsis">
1994 System Interface
1995
1996 </span>
1997
1998
1999 </a>
2000 </li>
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011 <li class="md-nav__item">
2012 <a href="ft2-module_management.html" class="md-nav__link">
2013
2014
2015 <span class="md-ellipsis">
2016 Module Management
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-gzip.html" class="md-nav__link">
2035
2036
2037 <span class="md-ellipsis">
2038 GZIP Streams
2039
2040 </span>
2041
2042
2043 </a>
2044 </li>
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055 <li class="md-nav__item">
2056 <a href="ft2-lzw.html" class="md-nav__link">
2057
2058
2059 <span class="md-ellipsis">
2060 LZW Streams
2061
2062 </span>
2063
2064
2065 </a>
2066 </li>
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077 <li class="md-nav__item">
2078 <a href="ft2-bzip2.html" class="md-nav__link">
2079
2080
2081 <span class="md-ellipsis">
2082 BZIP2 Streams
2083
2084 </span>
2085
2086
2087 </a>
2088 </li>
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099 <li class="md-nav__item">
2100 <a href="ft2-debugging_apis.html" class="md-nav__link">
2101
2102
2103 <span class="md-ellipsis">
2104 External Debugging APIs
2105
2106 </span>
2107
2108
2109 </a>
2110 </li>
2111
2112
2113
2114
2115 </ul>
2116 </nav>
2117
2118 </li>
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132 <li class="md-nav__item md-nav__item--nested">
2133
2134
2135
2136 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
2137
2138
2139 <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
2140
2141
2142 <span class="md-ellipsis">
2143 Error Codes
2144
2145 </span>
2146
2147
2148 <span class="md-nav__icon md-icon"></span>
2149 </label>
2150
2151 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
2152 <label class="md-nav__title" for="__nav_10">
2153 <span class="md-nav__icon md-icon"></span>
2154 Error Codes
2155 </label>
2156 <ul class="md-nav__list" data-md-scrollfix>
2157
2158
2159
2160
2161
2162
2163
2164 <li class="md-nav__item">
2165 <a href="ft2-error_enumerations.html" class="md-nav__link">
2166
2167
2168 <span class="md-ellipsis">
2169 Error Enumerations
2170
2171 </span>
2172
2173
2174 </a>
2175 </li>
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186 <li class="md-nav__item">
2187 <a href="ft2-error_code_values.html" class="md-nav__link">
2188
2189
2190 <span class="md-ellipsis">
2191 Error Code Values
2192
2193 </span>
2194
2195
2196 </a>
2197 </li>
2198
2199
2200
2201
2202 </ul>
2203 </nav>
2204
2205 </li>
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219 <li class="md-nav__item md-nav__item--nested">
2220
2221
2222
2223 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
2224
2225
2226 <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
2227
2228
2229 <span class="md-ellipsis">
2230 Miscellaneous
2231
2232 </span>
2233
2234
2235 <span class="md-nav__icon md-icon"></span>
2236 </label>
2237
2238 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
2239 <label class="md-nav__title" for="__nav_11">
2240 <span class="md-nav__icon md-icon"></span>
2241 Miscellaneous
2242 </label>
2243 <ul class="md-nav__list" data-md-scrollfix>
2244
2245
2246
2247
2248
2249
2250
2251 <li class="md-nav__item">
2252 <a href="ft2-gx_validation.html" class="md-nav__link">
2253
2254
2255 <span class="md-ellipsis">
2256 TrueTypeGX/AAT Validation
2257
2258 </span>
2259
2260
2261 </a>
2262 </li>
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273 <li class="md-nav__item">
2274 <a href="ft2-incremental.html" class="md-nav__link">
2275
2276
2277 <span class="md-ellipsis">
2278 Incremental Loading
2279
2280 </span>
2281
2282
2283 </a>
2284 </li>
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295 <li class="md-nav__item">
2296 <a href="ft2-truetype_engine.html" class="md-nav__link">
2297
2298
2299 <span class="md-ellipsis">
2300 The TrueType Engine
2301
2302 </span>
2303
2304
2305 </a>
2306 </li>
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317 <li class="md-nav__item">
2318 <a href="ft2-ot_validation.html" class="md-nav__link">
2319
2320
2321 <span class="md-ellipsis">
2322 OpenType Validation
2323
2324 </span>
2325
2326
2327 </a>
2328 </li>
2329
2330
2331
2332
2333 </ul>
2334 </nav>
2335
2336 </li>
2337
2338
2339
2340 </ul>
2341 </nav>
2342 </div>
2343 </div>
2344 </div>
2345
2346
2347
2348 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2349 <div class="md-sidebar__scrollwrap">
2350 <div class="md-sidebar__inner">
2351
2352
2353 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
2354
2355
2356
2357
2358
2359
2360 <label class="md-nav__title" for="__toc">
2361 <span class="md-nav__icon md-icon"></span>
2362 Table of contents
2363 </label>
2364 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2365
2366 <li class="md-nav__item">
2367 <a href="#synopsis" class="md-nav__link">
2368 <span class="md-ellipsis">
2369 Synopsis
2370 </span>
2371 </a>
2372
2373 </li>
2374
2375 <li class="md-nav__item">
2376 <a href="#ft_byte" class="md-nav__link">
2377 <span class="md-ellipsis">
2378 FT_Byte
2379 </span>
2380 </a>
2381
2382 </li>
2383
2384 <li class="md-nav__item">
2385 <a href="#ft_bytes" class="md-nav__link">
2386 <span class="md-ellipsis">
2387 FT_Bytes
2388 </span>
2389 </a>
2390
2391 </li>
2392
2393 <li class="md-nav__item">
2394 <a href="#ft_char" class="md-nav__link">
2395 <span class="md-ellipsis">
2396 FT_Char
2397 </span>
2398 </a>
2399
2400 </li>
2401
2402 <li class="md-nav__item">
2403 <a href="#ft_int" class="md-nav__link">
2404 <span class="md-ellipsis">
2405 FT_Int
2406 </span>
2407 </a>
2408
2409 </li>
2410
2411 <li class="md-nav__item">
2412 <a href="#ft_uint" class="md-nav__link">
2413 <span class="md-ellipsis">
2414 FT_UInt
2415 </span>
2416 </a>
2417
2418 </li>
2419
2420 <li class="md-nav__item">
2421 <a href="#ft_int16" class="md-nav__link">
2422 <span class="md-ellipsis">
2423 FT_Int16
2424 </span>
2425 </a>
2426
2427 </li>
2428
2429 <li class="md-nav__item">
2430 <a href="#ft_uint16" class="md-nav__link">
2431 <span class="md-ellipsis">
2432 FT_UInt16
2433 </span>
2434 </a>
2435
2436 </li>
2437
2438 <li class="md-nav__item">
2439 <a href="#ft_int32" class="md-nav__link">
2440 <span class="md-ellipsis">
2441 FT_Int32
2442 </span>
2443 </a>
2444
2445 </li>
2446
2447 <li class="md-nav__item">
2448 <a href="#ft_uint32" class="md-nav__link">
2449 <span class="md-ellipsis">
2450 FT_UInt32
2451 </span>
2452 </a>
2453
2454 </li>
2455
2456 <li class="md-nav__item">
2457 <a href="#ft_int64" class="md-nav__link">
2458 <span class="md-ellipsis">
2459 FT_Int64
2460 </span>
2461 </a>
2462
2463 </li>
2464
2465 <li class="md-nav__item">
2466 <a href="#ft_uint64" class="md-nav__link">
2467 <span class="md-ellipsis">
2468 FT_UInt64
2469 </span>
2470 </a>
2471
2472 </li>
2473
2474 <li class="md-nav__item">
2475 <a href="#ft_short" class="md-nav__link">
2476 <span class="md-ellipsis">
2477 FT_Short
2478 </span>
2479 </a>
2480
2481 </li>
2482
2483 <li class="md-nav__item">
2484 <a href="#ft_ushort" class="md-nav__link">
2485 <span class="md-ellipsis">
2486 FT_UShort
2487 </span>
2488 </a>
2489
2490 </li>
2491
2492 <li class="md-nav__item">
2493 <a href="#ft_long" class="md-nav__link">
2494 <span class="md-ellipsis">
2495 FT_Long
2496 </span>
2497 </a>
2498
2499 </li>
2500
2501 <li class="md-nav__item">
2502 <a href="#ft_ulong" class="md-nav__link">
2503 <span class="md-ellipsis">
2504 FT_ULong
2505 </span>
2506 </a>
2507
2508 </li>
2509
2510 <li class="md-nav__item">
2511 <a href="#ft_bool" class="md-nav__link">
2512 <span class="md-ellipsis">
2513 FT_Bool
2514 </span>
2515 </a>
2516
2517 </li>
2518
2519 <li class="md-nav__item">
2520 <a href="#ft_offset" class="md-nav__link">
2521 <span class="md-ellipsis">
2522 FT_Offset
2523 </span>
2524 </a>
2525
2526 </li>
2527
2528 <li class="md-nav__item">
2529 <a href="#ft_ptrdist" class="md-nav__link">
2530 <span class="md-ellipsis">
2531 FT_PtrDist
2532 </span>
2533 </a>
2534
2535 </li>
2536
2537 <li class="md-nav__item">
2538 <a href="#ft_string" class="md-nav__link">
2539 <span class="md-ellipsis">
2540 FT_String
2541 </span>
2542 </a>
2543
2544 </li>
2545
2546 <li class="md-nav__item">
2547 <a href="#ft_tag" class="md-nav__link">
2548 <span class="md-ellipsis">
2549 FT_Tag
2550 </span>
2551 </a>
2552
2553 </li>
2554
2555 <li class="md-nav__item">
2556 <a href="#ft_error" class="md-nav__link">
2557 <span class="md-ellipsis">
2558 FT_Error
2559 </span>
2560 </a>
2561
2562 </li>
2563
2564 <li class="md-nav__item">
2565 <a href="#ft_fixed" class="md-nav__link">
2566 <span class="md-ellipsis">
2567 FT_Fixed
2568 </span>
2569 </a>
2570
2571 </li>
2572
2573 <li class="md-nav__item">
2574 <a href="#ft_pointer" class="md-nav__link">
2575 <span class="md-ellipsis">
2576 FT_Pointer
2577 </span>
2578 </a>
2579
2580 </li>
2581
2582 <li class="md-nav__item">
2583 <a href="#ft_pos" class="md-nav__link">
2584 <span class="md-ellipsis">
2585 FT_Pos
2586 </span>
2587 </a>
2588
2589 </li>
2590
2591 <li class="md-nav__item">
2592 <a href="#ft_vector" class="md-nav__link">
2593 <span class="md-ellipsis">
2594 FT_Vector
2595 </span>
2596 </a>
2597
2598 </li>
2599
2600 <li class="md-nav__item">
2601 <a href="#ft_bbox" class="md-nav__link">
2602 <span class="md-ellipsis">
2603 FT_BBox
2604 </span>
2605 </a>
2606
2607 </li>
2608
2609 <li class="md-nav__item">
2610 <a href="#ft_matrix" class="md-nav__link">
2611 <span class="md-ellipsis">
2612 FT_Matrix
2613 </span>
2614 </a>
2615
2616 </li>
2617
2618 <li class="md-nav__item">
2619 <a href="#ft_fword" class="md-nav__link">
2620 <span class="md-ellipsis">
2621 FT_FWord
2622 </span>
2623 </a>
2624
2625 </li>
2626
2627 <li class="md-nav__item">
2628 <a href="#ft_ufword" class="md-nav__link">
2629 <span class="md-ellipsis">
2630 FT_UFWord
2631 </span>
2632 </a>
2633
2634 </li>
2635
2636 <li class="md-nav__item">
2637 <a href="#ft_f2dot14" class="md-nav__link">
2638 <span class="md-ellipsis">
2639 FT_F2Dot14
2640 </span>
2641 </a>
2642
2643 </li>
2644
2645 <li class="md-nav__item">
2646 <a href="#ft_unitvector" class="md-nav__link">
2647 <span class="md-ellipsis">
2648 FT_UnitVector
2649 </span>
2650 </a>
2651
2652 </li>
2653
2654 <li class="md-nav__item">
2655 <a href="#ft_f26dot6" class="md-nav__link">
2656 <span class="md-ellipsis">
2657 FT_F26Dot6
2658 </span>
2659 </a>
2660
2661 </li>
2662
2663 <li class="md-nav__item">
2664 <a href="#ft_data" class="md-nav__link">
2665 <span class="md-ellipsis">
2666 FT_Data
2667 </span>
2668 </a>
2669
2670 </li>
2671
2672 <li class="md-nav__item">
2673 <a href="#ft_make_tag" class="md-nav__link">
2674 <span class="md-ellipsis">
2675 FT_MAKE_TAG
2676 </span>
2677 </a>
2678
2679 </li>
2680
2681 <li class="md-nav__item">
2682 <a href="#ft_generic" class="md-nav__link">
2683 <span class="md-ellipsis">
2684 FT_Generic
2685 </span>
2686 </a>
2687
2688 </li>
2689
2690 <li class="md-nav__item">
2691 <a href="#ft_generic_finalizer" class="md-nav__link">
2692 <span class="md-ellipsis">
2693 FT_Generic_Finalizer
2694 </span>
2695 </a>
2696
2697 </li>
2698
2699 <li class="md-nav__item">
2700 <a href="#ft_bitmap" class="md-nav__link">
2701 <span class="md-ellipsis">
2702 FT_Bitmap
2703 </span>
2704 </a>
2705
2706 </li>
2707
2708 <li class="md-nav__item">
2709 <a href="#ft_pixel_mode" class="md-nav__link">
2710 <span class="md-ellipsis">
2711 FT_Pixel_Mode
2712 </span>
2713 </a>
2714
2715 </li>
2716
2717 <li class="md-nav__item">
2718 <a href="#ft_glyph_format" class="md-nav__link">
2719 <span class="md-ellipsis">
2720 FT_Glyph_Format
2721 </span>
2722 </a>
2723
2724 </li>
2725
2726 <li class="md-nav__item">
2727 <a href="#ft_image_tag" class="md-nav__link">
2728 <span class="md-ellipsis">
2729 FT_IMAGE_TAG
2730 </span>
2731 </a>
2732
2733 </li>
2734
2735 </ul>
2736
2737 </nav>
2738 </div>
2739 </div>
2740 </div>
2741
2742
2743
2744 <div class="md-content" data-md-component="content">
2745 <article class="md-content__inner md-typeset">
2746
2747
2748
2749
2750
2751 <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#core-api">Core API</a> &raquo; Basic Data Types</p>
2752 <hr />
2753 <h1 id="basic-data-types">Basic Data Types<a class="headerlink" href="#basic-data-types" title="Permanent link">&para;</a></h1>
2754 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
2755 <p>This section contains the basic data types defined by FreeType&nbsp;2, ranging from simple scalar types to bitmap descriptors. More font-specific structures are defined in a different section. Note that FreeType does not use floating-point data types. Fractional values are represented by fixed-point integers, with lower bits storing the fractional part.</p>
2756 <h2 id="ft_byte">FT_Byte<a class="headerlink" href="#ft_byte" title="Permanent link">&para;</a></h2>
2757 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2758 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">char</span> <b>FT_Byte</b>;
2759 </code></pre></div>
2760
2761 <p>A simple typedef for the <em>unsigned</em> char type.</p>
2762 <hr>
2763
2764 <h2 id="ft_bytes">FT_Bytes<a class="headerlink" href="#ft_bytes" title="Permanent link">&para;</a></h2>
2765 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2766 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_byte">FT_Byte</a>* <b>FT_Bytes</b>;
2767 </code></pre></div>
2768
2769 <p>A typedef for constant memory areas.</p>
2770 <hr>
2771
2772 <h2 id="ft_char">FT_Char<a class="headerlink" href="#ft_char" title="Permanent link">&para;</a></h2>
2773 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2774 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">char</span> <b>FT_Char</b>;
2775 </code></pre></div>
2776
2777 <p>A simple typedef for the <em>signed</em> char type.</p>
2778 <hr>
2779
2780 <h2 id="ft_int">FT_Int<a class="headerlink" href="#ft_int" title="Permanent link">&para;</a></h2>
2781 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2782 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">int</span> <b>FT_Int</b>;
2783 </code></pre></div>
2784
2785 <p>A typedef for the int type.</p>
2786 <hr>
2787
2788 <h2 id="ft_uint">FT_UInt<a class="headerlink" href="#ft_uint" title="Permanent link">&para;</a></h2>
2789 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2790 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> <b>FT_UInt</b>;
2791 </code></pre></div>
2792
2793 <p>A typedef for the unsigned int type.</p>
2794 <hr>
2795
2796 <h2 id="ft_int16">FT_Int16<a class="headerlink" href="#ft_int16" title="Permanent link">&para;</a></h2>
2797 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">short</span> <b>FT_Int16</b>;
2798 </code></pre></div>
2799
2800 <p>A typedef for a 16bit signed integer type.</p>
2801 <hr>
2802
2803 <h2 id="ft_uint16">FT_UInt16<a class="headerlink" href="#ft_uint16" title="Permanent link">&para;</a></h2>
2804 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">short</span> <b>FT_UInt16</b>;
2805 </code></pre></div>
2806
2807 <p>A typedef for a 16bit unsigned integer type.</p>
2808 <hr>
2809
2810 <h2 id="ft_int32">FT_Int32<a class="headerlink" href="#ft_int32" title="Permanent link">&para;</a></h2>
2811 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> XXX <b>FT_Int32</b>;
2812 </code></pre></div>
2813
2814 <p>A typedef for a 32bit signed integer type. The size depends on the configuration.</p>
2815 <hr>
2816
2817 <h2 id="ft_uint32">FT_UInt32<a class="headerlink" href="#ft_uint32" title="Permanent link">&para;</a></h2>
2818 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> XXX <b>FT_UInt32</b>;
2819 </code></pre></div>
2820 <hr>
2821
2822 <h2 id="ft_int64">FT_Int64<a class="headerlink" href="#ft_int64" title="Permanent link">&para;</a></h2>
2823 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> XXX <b>FT_Int64</b>;
2824 </code></pre></div>
2825 <hr>
2826
2827 <h2 id="ft_uint64">FT_UInt64<a class="headerlink" href="#ft_uint64" title="Permanent link">&para;</a></h2>
2828 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> XXX <b>FT_UInt64</b>;
2829 </code></pre></div>
2830 <hr>
2831
2832 <h2 id="ft_short">FT_Short<a class="headerlink" href="#ft_short" title="Permanent link">&para;</a></h2>
2833 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2834 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">short</span> <b>FT_Short</b>;
2835 </code></pre></div>
2836
2837 <p>A typedef for signed short.</p>
2838 <hr>
2839
2840 <h2 id="ft_ushort">FT_UShort<a class="headerlink" href="#ft_ushort" title="Permanent link">&para;</a></h2>
2841 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2842 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">short</span> <b>FT_UShort</b>;
2843 </code></pre></div>
2844
2845 <p>A typedef for unsigned short.</p>
2846 <hr>
2847
2848 <h2 id="ft_long">FT_Long<a class="headerlink" href="#ft_long" title="Permanent link">&para;</a></h2>
2849 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2850 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">long</span> <b>FT_Long</b>;
2851 </code></pre></div>
2852
2853 <p>A typedef for signed long.</p>
2854 <hr>
2855
2856 <h2 id="ft_ulong">FT_ULong<a class="headerlink" href="#ft_ulong" title="Permanent link">&para;</a></h2>
2857 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2858 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">long</span> <b>FT_ULong</b>;
2859 </code></pre></div>
2860
2861 <p>A typedef for unsigned long.</p>
2862 <hr>
2863
2864 <h2 id="ft_bool">FT_Bool<a class="headerlink" href="#ft_bool" title="Permanent link">&para;</a></h2>
2865 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2866 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">char</span> <b>FT_Bool</b>;
2867 </code></pre></div>
2868
2869 <p>A typedef of unsigned char, used for simple booleans. As usual, values 1 and&nbsp;0 represent true and false, respectively.</p>
2870 <hr>
2871
2872 <h2 id="ft_offset">FT_Offset<a class="headerlink" href="#ft_offset" title="Permanent link">&para;</a></h2>
2873 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2874 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> size_t <b>FT_Offset</b>;
2875 </code></pre></div>
2876
2877 <p>This is equivalent to the ANSI&nbsp;C <code>size_t</code> type, i.e., the largest <em>unsigned</em> integer type used to express a file size or position, or a memory block size.</p>
2878 <hr>
2879
2880 <h2 id="ft_ptrdist">FT_PtrDist<a class="headerlink" href="#ft_ptrdist" title="Permanent link">&para;</a></h2>
2881 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2882 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> ft_ptrdiff_t <b>FT_PtrDist</b>;
2883 </code></pre></div>
2884
2885 <p>This is equivalent to the ANSI&nbsp;C <code>ptrdiff_t</code> type, i.e., the largest <em>signed</em> integer type used to express the distance between two pointers.</p>
2886 <hr>
2887
2888 <h2 id="ft_string">FT_String<a class="headerlink" href="#ft_string" title="Permanent link">&para;</a></h2>
2889 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2890 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">char</span> <b>FT_String</b>;
2891 </code></pre></div>
2892
2893 <p>A simple typedef for the char type, usually used for strings.</p>
2894 <hr>
2895
2896 <h2 id="ft_tag">FT_Tag<a class="headerlink" href="#ft_tag" title="Permanent link">&para;</a></h2>
2897 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2898 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a> <b>FT_Tag</b>;
2899 </code></pre></div>
2900
2901 <p>A typedef for 32-bit tags (as used in the SFNT format).</p>
2902 <hr>
2903
2904 <h2 id="ft_error">FT_Error<a class="headerlink" href="#ft_error" title="Permanent link">&para;</a></h2>
2905 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2906 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">int</span> <b>FT_Error</b>;
2907 </code></pre></div>
2908
2909 <p>The FreeType error code type. A value of&nbsp;0 is always interpreted as a successful operation.</p>
2910 <hr>
2911
2912 <h2 id="ft_fixed">FT_Fixed<a class="headerlink" href="#ft_fixed" title="Permanent link">&para;</a></h2>
2913 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2914 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">long</span> <b>FT_Fixed</b>;
2915 </code></pre></div>
2916
2917 <p>This type is used to store 16.16 fixed-point values, like scaling values or matrix coefficients.</p>
2918 <hr>
2919
2920 <h2 id="ft_pointer">FT_Pointer<a class="headerlink" href="#ft_pointer" title="Permanent link">&para;</a></h2>
2921 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2922 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">void</span>* <b>FT_Pointer</b>;
2923 </code></pre></div>
2924
2925 <p>A simple typedef for a typeless pointer.</p>
2926 <hr>
2927
2928 <h2 id="ft_pos">FT_Pos<a class="headerlink" href="#ft_pos" title="Permanent link">&para;</a></h2>
2929 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
2930 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">long</span> <b>FT_Pos</b>;
2931 </code></pre></div>
2932
2933 <p>The type FT_Pos is used to store vectorial coordinates. Depending on the context, these can represent distances in integer font units, or 16.16, or 26.6 fixed-point pixel coordinates.</p>
2934 <hr>
2935
2936 <h2 id="ft_vector">FT_Vector<a class="headerlink" href="#ft_vector" title="Permanent link">&para;</a></h2>
2937 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
2938 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Vector_
2939 {
2940 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> x;
2941 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> y;
2942
2943 } <b>FT_Vector</b>;
2944 </code></pre></div>
2945
2946 <p>A simple structure used to store a 2D vector; coordinates are of the FT_Pos type.</p>
2947 <h4>fields</h4>
2948 <table class="fields">
2949 <tr><td class="val" id="x">x</td><td class="desc">
2950 <p>The horizontal coordinate.</p>
2951 </td></tr>
2952 <tr><td class="val" id="y">y</td><td class="desc">
2953 <p>The vertical coordinate.</p>
2954 </td></tr>
2955 </table>
2956
2957 <hr>
2958
2959 <h2 id="ft_bbox">FT_BBox<a class="headerlink" href="#ft_bbox" title="Permanent link">&para;</a></h2>
2960 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
2961 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_BBox_
2962 {
2963 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> xMin, yMin;
2964 <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> xMax, yMax;
2965
2966 } <b>FT_BBox</b>;
2967 </code></pre></div>
2968
2969 <p>A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions.</p>
2970 <h4>fields</h4>
2971 <table class="fields">
2972 <tr><td class="val" id="xmin">xMin</td><td class="desc">
2973 <p>The horizontal minimum (left-most).</p>
2974 </td></tr>
2975 <tr><td class="val" id="ymin">yMin</td><td class="desc">
2976 <p>The vertical minimum (bottom-most).</p>
2977 </td></tr>
2978 <tr><td class="val" id="xmax">xMax</td><td class="desc">
2979 <p>The horizontal maximum (right-most).</p>
2980 </td></tr>
2981 <tr><td class="val" id="ymax">yMax</td><td class="desc">
2982 <p>The vertical maximum (top-most).</p>
2983 </td></tr>
2984 </table>
2985
2986 <h4>note</h4>
2987
2988 <p>The bounding box is specified with the coordinates of the lower left and the upper right corner. In PostScript, those values are often called (llx,lly) and (urx,ury), respectively.</p>
2989 <p>If <code>yMin</code> is negative, this value gives the glyph's descender. Otherwise, the glyph doesn't descend below the baseline. Similarly, if <code>ymax</code> is positive, this value gives the glyph's ascender.</p>
2990 <p><code>xMin</code> gives the horizontal distance from the glyph's origin to the left edge of the glyph's bounding box. If <code>xMin</code> is negative, the glyph extends to the left of the origin.</p>
2991 <hr>
2992
2993 <h2 id="ft_matrix">FT_Matrix<a class="headerlink" href="#ft_matrix" title="Permanent link">&para;</a></h2>
2994 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
2995 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Matrix_
2996 {
2997 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> xx, xy;
2998 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> yx, yy;
2999
3000 } <b>FT_Matrix</b>;
3001 </code></pre></div>
3002
3003 <p>A simple structure used to store a 2x2 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is:
3004 <div class="highlight"><pre><span></span><code> x&#39; = x*xx + y*xy
3005 y&#39; = x*yx + y*yy
3006 </code></pre></div></p>
3007 <h4>fields</h4>
3008 <table class="fields">
3009 <tr><td class="val" id="xx">xx</td><td class="desc">
3010 <p>Matrix coefficient.</p>
3011 </td></tr>
3012 <tr><td class="val" id="xy">xy</td><td class="desc">
3013 <p>Matrix coefficient.</p>
3014 </td></tr>
3015 <tr><td class="val" id="yx">yx</td><td class="desc">
3016 <p>Matrix coefficient.</p>
3017 </td></tr>
3018 <tr><td class="val" id="yy">yy</td><td class="desc">
3019 <p>Matrix coefficient.</p>
3020 </td></tr>
3021 </table>
3022
3023 <hr>
3024
3025 <h2 id="ft_fword">FT_FWord<a class="headerlink" href="#ft_fword" title="Permanent link">&para;</a></h2>
3026 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3027 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">short</span> <b>FT_FWord</b>; /* distance in FUnits */
3028 </code></pre></div>
3029
3030 <p>A signed 16-bit integer used to store a distance in original font units.</p>
3031 <hr>
3032
3033 <h2 id="ft_ufword">FT_UFWord<a class="headerlink" href="#ft_ufword" title="Permanent link">&para;</a></h2>
3034 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3035 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> <span class="keyword">short</span> <b>FT_UFWord</b>; /* <span class="keyword">unsigned</span> distance */
3036 </code></pre></div>
3037
3038 <p>An unsigned 16-bit integer used to store a distance in original font units.</p>
3039 <hr>
3040
3041 <h2 id="ft_f2dot14">FT_F2Dot14<a class="headerlink" href="#ft_f2dot14" title="Permanent link">&para;</a></h2>
3042 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3043 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">short</span> <b>FT_F2Dot14</b>;
3044 </code></pre></div>
3045
3046 <p>A signed 2.14 fixed-point type used for unit vectors.</p>
3047 <hr>
3048
3049 <h2 id="ft_unitvector">FT_UnitVector<a class="headerlink" href="#ft_unitvector" title="Permanent link">&para;</a></h2>
3050 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3051 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_UnitVector_
3052 {
3053 <a href="ft2-basic_types.html#ft_f2dot14">FT_F2Dot14</a> x;
3054 <a href="ft2-basic_types.html#ft_f2dot14">FT_F2Dot14</a> y;
3055
3056 } <b>FT_UnitVector</b>;
3057 </code></pre></div>
3058
3059 <p>A simple structure used to store a 2D vector unit vector. Uses FT_F2Dot14 types.</p>
3060 <h4>fields</h4>
3061 <table class="fields">
3062 <tr><td class="val" id="x">x</td><td class="desc">
3063 <p>Horizontal coordinate.</p>
3064 </td></tr>
3065 <tr><td class="val" id="y">y</td><td class="desc">
3066 <p>Vertical coordinate.</p>
3067 </td></tr>
3068 </table>
3069
3070 <hr>
3071
3072 <h2 id="ft_f26dot6">FT_F26Dot6<a class="headerlink" href="#ft_f26dot6" title="Permanent link">&para;</a></h2>
3073 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3074 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> <span class="keyword">long</span> <b>FT_F26Dot6</b>;
3075 </code></pre></div>
3076
3077 <p>A signed 26.6 fixed-point type used for vectorial pixel coordinates.</p>
3078 <hr>
3079
3080 <h2 id="ft_data">FT_Data<a class="headerlink" href="#ft_data" title="Permanent link">&para;</a></h2>
3081 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3082 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Data_
3083 {
3084 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_byte">FT_Byte</a>* pointer;
3085 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> length;
3086
3087 } <b>FT_Data</b>;
3088 </code></pre></div>
3089
3090 <p>Read-only binary data represented as a pointer and a length.</p>
3091 <h4>fields</h4>
3092 <table class="fields">
3093 <tr><td class="val" id="pointer">pointer</td><td class="desc">
3094 <p>The data.</p>
3095 </td></tr>
3096 <tr><td class="val" id="length">length</td><td class="desc">
3097 <p>The length of the data in bytes.</p>
3098 </td></tr>
3099 </table>
3100
3101 <hr>
3102
3103 <h2 id="ft_make_tag">FT_MAKE_TAG<a class="headerlink" href="#ft_make_tag" title="Permanent link">&para;</a></h2>
3104 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3105 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_MAKE_TAG</b>( _x1, _x2, _x3, _x4 ) \
3106 ( ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x1 ) &lt;&lt; 24 ) | \
3107 ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x2 ) &lt;&lt; 16 ) | \
3108 ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x3 ) &lt;&lt; 8 ) | \
3109 FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x4 ) )
3110 </code></pre></div>
3111
3112 <p>This macro converts four-letter tags that are used to label TrueType tables into an <code>FT_Tag</code> type, to be used within FreeType.</p>
3113 <h4>note</h4>
3114
3115 <p>The produced values <strong>must</strong> be 32-bit integers. Don't redefine this macro.</p>
3116 <hr>
3117
3118 <h2 id="ft_generic">FT_Generic<a class="headerlink" href="#ft_generic" title="Permanent link">&para;</a></h2>
3119 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3120 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Generic_
3121 {
3122 <span class="keyword">void</span>* data;
3123 <a href="ft2-basic_types.html#ft_generic_finalizer">FT_Generic_Finalizer</a> finalizer;
3124
3125 } <b>FT_Generic</b>;
3126 </code></pre></div>
3127
3128 <p>Client applications often need to associate their own data to a variety of FreeType core objects. For example, a text layout API might want to associate a glyph cache to a given size object.</p>
3129 <p>Some FreeType object contains a <code>generic</code> field, of type <code>FT_Generic</code>, which usage is left to client applications and font servers.</p>
3130 <p>It can be used to store a pointer to client-specific data, as well as the address of a &lsquo;finalizer&rsquo; function, which will be called by FreeType when the object is destroyed (for example, the previous client example would put the address of the glyph cache destructor in the <code>finalizer</code> field).</p>
3131 <h4>fields</h4>
3132 <table class="fields">
3133 <tr><td class="val" id="data">data</td><td class="desc">
3134 <p>A typeless pointer to any client-specified data. This field is completely ignored by the FreeType library.</p>
3135 </td></tr>
3136 <tr><td class="val" id="finalizer">finalizer</td><td class="desc">
3137 <p>A pointer to a ‘generic finalizer’ function, which will be called when the object is destroyed. If this field is set to <code>NULL</code>, no code will be called.</p>
3138 </td></tr>
3139 </table>
3140
3141 <hr>
3142
3143 <h2 id="ft_generic_finalizer">FT_Generic_Finalizer<a class="headerlink" href="#ft_generic_finalizer" title="Permanent link">&para;</a></h2>
3144 <p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
3145 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">void</span> (*<b>FT_Generic_Finalizer</b>)( <span class="keyword">void</span>* object );
3146 </code></pre></div>
3147
3148 <p>Describe a function used to destroy the &lsquo;client&rsquo; data of any FreeType object. See the description of the <code><a href="ft2-basic_types.html#ft_generic">FT_Generic</a></code> type for details of usage.</p>
3149 <h4>input</h4>
3150
3151 <p>The address of the FreeType object that is under finalization. Its client data is accessed through its <code>generic</code> field.</p>
3152 <hr>
3153
3154 <h2 id="ft_bitmap">FT_Bitmap<a class="headerlink" href="#ft_bitmap" title="Permanent link">&para;</a></h2>
3155 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
3156 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Bitmap_
3157 {
3158 <span class="keyword">unsigned</span> <span class="keyword">int</span> rows;
3159 <span class="keyword">unsigned</span> <span class="keyword">int</span> width;
3160 <span class="keyword">int</span> pitch;
3161 <span class="keyword">unsigned</span> <span class="keyword">char</span>* buffer;
3162 <span class="keyword">unsigned</span> <span class="keyword">short</span> num_grays;
3163 <span class="keyword">unsigned</span> <span class="keyword">char</span> pixel_mode;
3164 <span class="keyword">unsigned</span> <span class="keyword">char</span> palette_mode;
3165 <span class="keyword">void</span>* palette;
3166
3167 } <b>FT_Bitmap</b>;
3168 </code></pre></div>
3169
3170 <p>A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the <code>pixel_mode</code> field.</p>
3171 <h4>fields</h4>
3172 <table class="fields">
3173 <tr><td class="val" id="rows">rows</td><td class="desc">
3174 <p>The number of bitmap rows.</p>
3175 </td></tr>
3176 <tr><td class="val" id="width">width</td><td class="desc">
3177 <p>The number of pixels in bitmap row.</p>
3178 </td></tr>
3179 <tr><td class="val" id="pitch">pitch</td><td class="desc">
3180 <p>The pitch's absolute value is the number of bytes taken by one bitmap row, including padding. However, the pitch is positive when the bitmap has a ‘down’ flow, and negative when it has an ‘up’ flow. In all cases, the pitch is an offset to add to a bitmap pointer in order to go down one row.</p>
3181 <p>Note that ‘padding’ means the alignment of a bitmap to a byte border, and FreeType functions normally align to the smallest possible integer value.</p>
3182 <p>For the B/W rasterizer, <code>pitch</code> is always an even number.</p>
3183 <p>To change the pitch of a bitmap (say, to make it a multiple of 4), use <code><a href="ft2-bitmap_handling.html#ft_bitmap_convert">FT_Bitmap_Convert</a></code>. Alternatively, you might use callback functions to directly render to the application's surface; see the file <code>example2.cpp</code> in the tutorial for a demonstration.</p>
3184 </td></tr>
3185 <tr><td class="val" id="buffer">buffer</td><td class="desc">
3186 <p>A typeless pointer to the bitmap buffer. This value should be aligned on 32-bit boundaries in most cases.</p>
3187 </td></tr>
3188 <tr><td class="val" id="num_grays">num_grays</td><td class="desc">
3189 <p>This field is only used with <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_PIXEL_MODE_GRAY</a></code>; it gives the number of gray levels used in the bitmap.</p>
3190 </td></tr>
3191 <tr><td class="val" id="pixel_mode">pixel_mode</td><td class="desc">
3192 <p>The pixel mode, i.e., how pixel bits are stored. See <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_Pixel_Mode</a></code> for possible values.</p>
3193 </td></tr>
3194 <tr><td class="val" id="palette_mode">palette_mode</td><td class="desc">
3195 <p>This field is intended for paletted pixel modes; it indicates how the palette is stored. Not used currently.</p>
3196 </td></tr>
3197 <tr><td class="val" id="palette">palette</td><td class="desc">
3198 <p>A typeless pointer to the bitmap palette; this field is intended for paletted pixel modes. Not used currently.</p>
3199 </td></tr>
3200 </table>
3201
3202 <h4>note</h4>
3203
3204 <p><code>width</code> and <code>rows</code> refer to the <em>physical</em> size of the bitmap, not the <em>logical</em> one. For example, if <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_Pixel_Mode</a></code> is set to <code>FT_PIXEL_MODE_LCD</code>, the logical width is a just a third of the physical one.</p>
3205 <p>An empty bitmap with a NULL <code>buffer</code> is valid, with <code>rows</code> and/or <code>pitch</code> also set to 0. Such bitmaps might be produced while rendering empty or degenerate outlines.</p>
3206 <hr>
3207
3208 <h2 id="ft_pixel_mode">FT_Pixel_Mode<a class="headerlink" href="#ft_pixel_mode" title="Permanent link">&para;</a></h2>
3209 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
3210 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Pixel_Mode_
3211 {
3212 <a href="ft2-basic_types.html#ft_pixel_mode_none">FT_PIXEL_MODE_NONE</a> = 0,
3213 <a href="ft2-basic_types.html#ft_pixel_mode_mono">FT_PIXEL_MODE_MONO</a>,
3214 <a href="ft2-basic_types.html#ft_pixel_mode_gray">FT_PIXEL_MODE_GRAY</a>,
3215 <a href="ft2-basic_types.html#ft_pixel_mode_gray2">FT_PIXEL_MODE_GRAY2</a>,
3216 <a href="ft2-basic_types.html#ft_pixel_mode_gray4">FT_PIXEL_MODE_GRAY4</a>,
3217 <a href="ft2-basic_types.html#ft_pixel_mode_lcd">FT_PIXEL_MODE_LCD</a>,
3218 <a href="ft2-basic_types.html#ft_pixel_mode_lcd_v">FT_PIXEL_MODE_LCD_V</a>,
3219 <a href="ft2-basic_types.html#ft_pixel_mode_bgra">FT_PIXEL_MODE_BGRA</a>,
3220
3221 FT_PIXEL_MODE_MAX /* do not remove */
3222
3223 } <b>FT_Pixel_Mode</b>;
3224
3225
3226 /* these constants are deprecated; use the corresponding `<b>FT_Pixel_Mode</b>` */
3227 /* values instead. */
3228 #<span class="keyword">define</span> ft_pixel_mode_none <a href="ft2-basic_types.html#ft_pixel_mode_none">FT_PIXEL_MODE_NONE</a>
3229 #<span class="keyword">define</span> ft_pixel_mode_mono <a href="ft2-basic_types.html#ft_pixel_mode_mono">FT_PIXEL_MODE_MONO</a>
3230 #<span class="keyword">define</span> ft_pixel_mode_grays <a href="ft2-basic_types.html#ft_pixel_mode_gray">FT_PIXEL_MODE_GRAY</a>
3231 #<span class="keyword">define</span> ft_pixel_mode_pal2 <a href="ft2-basic_types.html#ft_pixel_mode_gray2">FT_PIXEL_MODE_GRAY2</a>
3232 #<span class="keyword">define</span> ft_pixel_mode_pal4 <a href="ft2-basic_types.html#ft_pixel_mode_gray4">FT_PIXEL_MODE_GRAY4</a>
3233 </code></pre></div>
3234
3235 <p>An enumeration type used to describe the format of pixels in a given bitmap. Note that additional formats may be added in the future.</p>
3236 <h4>values</h4>
3237 <table class="fields">
3238 <tr><td class="val" id="ft_pixel_mode_none">FT_PIXEL_MODE_NONE</td><td class="desc">
3239 <p>Value 0 is reserved.</p>
3240 </td></tr>
3241 <tr><td class="val" id="ft_pixel_mode_mono">FT_PIXEL_MODE_MONO</td><td class="desc">
3242 <p>A monochrome bitmap, using 1 bit per pixel. Note that pixels are stored in most-significant order (MSB), which means that the left-most pixel in a byte has value 128.</p>
3243 </td></tr>
3244 <tr><td class="val" id="ft_pixel_mode_gray">FT_PIXEL_MODE_GRAY</td><td class="desc">
3245 <p>An 8-bit bitmap, generally used to represent anti-aliased glyph images. Each pixel is stored in one byte. Note that the number of ‘gray’ levels is stored in the <code>num_grays</code> field of the <code><a href="ft2-basic_types.html#ft_bitmap">FT_Bitmap</a></code> structure (it generally is 256).</p>
3246 </td></tr>
3247 <tr><td class="val" id="ft_pixel_mode_gray2">FT_PIXEL_MODE_GRAY2</td><td class="desc">
3248 <p>A 2-bit per pixel bitmap, used to represent embedded anti-aliased bitmaps in font files according to the OpenType specification. We haven't found a single font using this format, however.</p>
3249 </td></tr>
3250 <tr><td class="val" id="ft_pixel_mode_gray4">FT_PIXEL_MODE_GRAY4</td><td class="desc">
3251 <p>A 4-bit per pixel bitmap, representing embedded anti-aliased bitmaps in font files according to the OpenType specification. We haven't found a single font using this format, however.</p>
3252 </td></tr>
3253 <tr><td class="val" id="ft_pixel_mode_lcd">FT_PIXEL_MODE_LCD</td><td class="desc">
3254 <p>An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on LCD displays; the bitmap is three times wider than the original glyph image. See also <code><a href="ft2-glyph_retrieval.html#ft_render_mode">FT_RENDER_MODE_LCD</a></code>.</p>
3255 </td></tr>
3256 <tr><td class="val" id="ft_pixel_mode_lcd_v">FT_PIXEL_MODE_LCD_V</td><td class="desc">
3257 <p>An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on rotated LCD displays; the bitmap is three times taller than the original glyph image. See also <code><a href="ft2-glyph_retrieval.html#ft_render_mode">FT_RENDER_MODE_LCD_V</a></code>.</p>
3258 </td></tr>
3259 <tr><td class="val" id="ft_pixel_mode_bgra">FT_PIXEL_MODE_BGRA</td><td class="desc">
3260 <p>[Since 2.5] An image with four 8-bit channels per pixel, representing a color image (such as emoticons) with alpha channel. For each pixel, the format is BGRA, which means, the blue channel comes first in memory. The color channels are pre-multiplied and in the sRGB colorspace. For example, full red at half-translucent opacity will be represented as ‘00,00,80,80’, not ‘00,00,FF,80’. See also <code><a href="ft2-glyph_retrieval.html#ft_load_xxx">FT_LOAD_COLOR</a></code>.</p>
3261 </td></tr>
3262 </table>
3263
3264 <hr>
3265
3266 <h2 id="ft_glyph_format">FT_Glyph_Format<a class="headerlink" href="#ft_glyph_format" title="Permanent link">&para;</a></h2>
3267 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
3268 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Glyph_Format_
3269 {
3270 <a href="ft2-basic_types.html#ft_image_tag">FT_IMAGE_TAG</a>( <a href="ft2-basic_types.html#ft_glyph_format_none">FT_GLYPH_FORMAT_NONE</a>, 0, 0, 0, 0 ),
3271
3272 <a href="ft2-basic_types.html#ft_image_tag">FT_IMAGE_TAG</a>( <a href="ft2-basic_types.html#ft_glyph_format_composite">FT_GLYPH_FORMAT_COMPOSITE</a>, 'c', 'o', 'm', 'p' ),
3273 <a href="ft2-basic_types.html#ft_image_tag">FT_IMAGE_TAG</a>( <a href="ft2-basic_types.html#ft_glyph_format_bitmap">FT_GLYPH_FORMAT_BITMAP</a>, 'b', 'i', 't', 's' ),
3274 <a href="ft2-basic_types.html#ft_image_tag">FT_IMAGE_TAG</a>( <a href="ft2-basic_types.html#ft_glyph_format_outline">FT_GLYPH_FORMAT_OUTLINE</a>, 'o', 'u', 't', 'l' ),
3275 <a href="ft2-basic_types.html#ft_image_tag">FT_IMAGE_TAG</a>( <a href="ft2-basic_types.html#ft_glyph_format_plotter">FT_GLYPH_FORMAT_PLOTTER</a>, 'p', 'l', 'o', 't' ),
3276 <a href="ft2-basic_types.html#ft_image_tag">FT_IMAGE_TAG</a>( <a href="ft2-basic_types.html#ft_glyph_format_svg">FT_GLYPH_FORMAT_SVG</a>, 'S', 'V', 'G', ' ' )
3277
3278 } <b>FT_Glyph_Format</b>;
3279
3280
3281 /* these constants are deprecated; use the corresponding */
3282 /* `<b>FT_Glyph_Format</b>` values instead. */
3283 #<span class="keyword">define</span> ft_glyph_format_none <a href="ft2-basic_types.html#ft_glyph_format_none">FT_GLYPH_FORMAT_NONE</a>
3284 #<span class="keyword">define</span> ft_glyph_format_composite <a href="ft2-basic_types.html#ft_glyph_format_composite">FT_GLYPH_FORMAT_COMPOSITE</a>
3285 #<span class="keyword">define</span> ft_glyph_format_bitmap <a href="ft2-basic_types.html#ft_glyph_format_bitmap">FT_GLYPH_FORMAT_BITMAP</a>
3286 #<span class="keyword">define</span> ft_glyph_format_outline <a href="ft2-basic_types.html#ft_glyph_format_outline">FT_GLYPH_FORMAT_OUTLINE</a>
3287 #<span class="keyword">define</span> ft_glyph_format_plotter <a href="ft2-basic_types.html#ft_glyph_format_plotter">FT_GLYPH_FORMAT_PLOTTER</a>
3288 </code></pre></div>
3289
3290 <p>An enumeration type used to describe the format of a given glyph image. Note that this version of FreeType only supports two image formats, even though future font drivers will be able to register their own format.</p>
3291 <h4>values</h4>
3292 <table class="fields">
3293 <tr><td class="val" id="ft_glyph_format_none">FT_GLYPH_FORMAT_NONE</td><td class="desc">
3294 <p>The value 0 is reserved.</p>
3295 </td></tr>
3296 <tr><td class="val" id="ft_glyph_format_composite">FT_GLYPH_FORMAT_COMPOSITE</td><td class="desc">
3297 <p>The glyph image is a composite of several other images. This format is <em>only</em> used with <code><a href="ft2-glyph_retrieval.html#ft_load_xxx">FT_LOAD_NO_RECURSE</a></code>, and is used to report compound glyphs (like accented characters).</p>
3298 </td></tr>
3299 <tr><td class="val" id="ft_glyph_format_bitmap">FT_GLYPH_FORMAT_BITMAP</td><td class="desc">
3300 <p>The glyph image is a bitmap, and can be described as an <code><a href="ft2-basic_types.html#ft_bitmap">FT_Bitmap</a></code>. You generally need to access the <code>bitmap</code> field of the <code><a href="ft2-glyph_retrieval.html#ft_glyphslotrec">FT_GlyphSlotRec</a></code> structure to read it.</p>
3301 </td></tr>
3302 <tr><td class="val" id="ft_glyph_format_outline">FT_GLYPH_FORMAT_OUTLINE</td><td class="desc">
3303 <p>The glyph image is a vectorial outline made of line segments and Bezier arcs; it can be described as an <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code>; you generally want to access the <code>outline</code> field of the <code><a href="ft2-glyph_retrieval.html#ft_glyphslotrec">FT_GlyphSlotRec</a></code> structure to read it.</p>
3304 </td></tr>
3305 <tr><td class="val" id="ft_glyph_format_plotter">FT_GLYPH_FORMAT_PLOTTER</td><td class="desc">
3306 <p>The glyph image is a vectorial path with no inside and outside contours. Some Type 1 fonts, like those in the Hershey family, contain glyphs in this format. These are described as <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code>, but FreeType isn't currently capable of rendering them correctly.</p>
3307 </td></tr>
3308 <tr><td class="val" id="ft_glyph_format_svg">FT_GLYPH_FORMAT_SVG</td><td class="desc">
3309 <p>[Since 2.12] The glyph is represented by an SVG document in the ‘SVG ’ table.</p>
3310 </td></tr>
3311 </table>
3312
3313 <hr>
3314
3315 <h2 id="ft_image_tag">FT_IMAGE_TAG<a class="headerlink" href="#ft_image_tag" title="Permanent link">&para;</a></h2>
3316 <p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
3317 <div class = "codehilite"><pre><code>#<span class="keyword">ifndef</span> <b>FT_IMAGE_TAG</b>
3318
3319 #<span class="keyword">define</span> <b>FT_IMAGE_TAG</b>( value, _x1, _x2, _x3, _x4 ) \
3320 value = ( ( FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x1 ) &lt;&lt; 24 ) | \
3321 ( FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x2 ) &lt;&lt; 16 ) | \
3322 ( FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x3 ) &lt;&lt; 8 ) | \
3323 FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x4 ) )
3324
3325 #<span class="keyword">endif</span> /* <b>FT_IMAGE_TAG</b> */
3326 </code></pre></div>
3327
3328 <p>This macro converts four-letter tags to an unsigned long type.</p>
3329 <h4>note</h4>
3330
3331 <p>Since many 16-bit compilers don't like 32-bit enumerations, you should redefine this macro in case of problems to something like this:
3332 <div class="highlight"><pre><span></span><code> #define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) value
3333 </code></pre></div></p>
3334 <p>to get a simple enumeration without assigning special numbers.</p>
3335 <hr>
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349 </article>
3350 </div>
3351
3352
3353 <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
3354 </div>
3355
3356 </main>
3357
3358 <footer class="md-footer">
3359
3360 <div class="md-footer-meta md-typeset">
3361 <div class="md-footer-meta__inner md-grid">
3362 <div class="md-copyright">
3363
3364 <div class="md-copyright__highlight">
3365 Copyright 2026 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
3366 </div>
3367
3368
3369 Made with
3370 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
3371 Material for MkDocs
3372 </a>
3373
3374 </div>
3375
3376 </div>
3377 </div>
3378 </footer>
3379
3380 </div>
3381 <div class="md-dialog" data-md-component="dialog">
3382 <div class="md-dialog__inner md-typeset"></div>
3383 </div>
3384
3385
3386 <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>
3387
3388
3389 <script src="assets/javascripts/bundle.c8b220af.min.js"></script>
3390
3391 <script src="javascripts/extra.js"></script>
3392
3393
3394 </body>
3395 </html>