1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
pub type FT_Int16 = i16;
pub type FT_UInt16 = u16;
pub type FT_Int32 = i32;
pub type FT_UInt32 = u32;
pub type FT_Int64= i64;
pub type FT_UInt64= u64;
pub use FT_Error;
#[repr(C)]
pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>);
impl <T> __BindgenUnionField<T> {
#[inline]
pub fn new() -> Self { __BindgenUnionField(::std::marker::PhantomData) }
#[inline]
pub unsafe fn as_ref(&self) -> &T { ::std::mem::transmute(self) }
#[inline]
pub unsafe fn as_mut(&mut self) -> &mut T { ::std::mem::transmute(self) }
}
impl <T> ::std::default::Default for __BindgenUnionField<T> {
#[inline]
fn default() -> Self { Self::new() }
}
impl <T> ::std::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self { Self::new() }
}
impl <T> ::std::marker::Copy for __BindgenUnionField<T> { }
impl <T> ::std::fmt::Debug for __BindgenUnionField<T> {
fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
fmt.write_str("__BindgenUnionField")
}
}
pub const FT_RENDER_POOL_SIZE: ::std::os::raw::c_uint = 16384;
pub const FT_MAX_MODULES: ::std::os::raw::c_uint = 32;
pub const FT_OUTLINE_NONE: ::std::os::raw::c_uint = 0;
pub const FT_OUTLINE_OWNER: ::std::os::raw::c_uint = 1;
pub const FT_OUTLINE_EVEN_ODD_FILL: ::std::os::raw::c_uint = 2;
pub const FT_OUTLINE_REVERSE_FILL: ::std::os::raw::c_uint = 4;
pub const FT_OUTLINE_IGNORE_DROPOUTS: ::std::os::raw::c_uint = 8;
pub const FT_OUTLINE_SMART_DROPOUTS: ::std::os::raw::c_uint = 16;
pub const FT_OUTLINE_INCLUDE_STUBS: ::std::os::raw::c_uint = 32;
pub const FT_OUTLINE_HIGH_PRECISION: ::std::os::raw::c_uint = 256;
pub const FT_OUTLINE_SINGLE_PASS: ::std::os::raw::c_uint = 512;
pub const FT_CURVE_TAG_ON: ::std::os::raw::c_uint = 1;
pub const FT_CURVE_TAG_CONIC: ::std::os::raw::c_uint = 0;
pub const FT_CURVE_TAG_CUBIC: ::std::os::raw::c_uint = 2;
pub const FT_CURVE_TAG_HAS_SCANMODE: ::std::os::raw::c_uint = 4;
pub const FT_CURVE_TAG_TOUCH_X: ::std::os::raw::c_uint = 8;
pub const FT_CURVE_TAG_TOUCH_Y: ::std::os::raw::c_uint = 16;
pub const FT_CURVE_TAG_TOUCH_BOTH: ::std::os::raw::c_uint = 24;
pub const FT_Curve_Tag_On: ::std::os::raw::c_uint = 1;
pub const FT_Curve_Tag_Conic: ::std::os::raw::c_uint = 0;
pub const FT_Curve_Tag_Cubic: ::std::os::raw::c_uint = 2;
pub const FT_Curve_Tag_Touch_X: ::std::os::raw::c_uint = 8;
pub const FT_Curve_Tag_Touch_Y: ::std::os::raw::c_uint = 16;
pub const FT_RASTER_FLAG_DEFAULT: ::std::os::raw::c_uint = 0;
pub const FT_RASTER_FLAG_AA: ::std::os::raw::c_uint = 1;
pub const FT_RASTER_FLAG_DIRECT: ::std::os::raw::c_uint = 2;
pub const FT_RASTER_FLAG_CLIP: ::std::os::raw::c_uint = 4;
pub const FT_ERR_BASE: ::std::os::raw::c_uint = 0;
pub const FT_FACE_FLAG_SCALABLE: ::std::os::raw::c_uint = 1;
pub const FT_FACE_FLAG_FIXED_SIZES: ::std::os::raw::c_uint = 2;
pub const FT_FACE_FLAG_FIXED_WIDTH: ::std::os::raw::c_uint = 4;
pub const FT_FACE_FLAG_SFNT: ::std::os::raw::c_uint = 8;
pub const FT_FACE_FLAG_HORIZONTAL: ::std::os::raw::c_uint = 16;
pub const FT_FACE_FLAG_VERTICAL: ::std::os::raw::c_uint = 32;
pub const FT_FACE_FLAG_KERNING: ::std::os::raw::c_uint = 64;
pub const FT_FACE_FLAG_FAST_GLYPHS: ::std::os::raw::c_uint = 128;
pub const FT_FACE_FLAG_MULTIPLE_MASTERS: ::std::os::raw::c_uint = 256;
pub const FT_FACE_FLAG_GLYPH_NAMES: ::std::os::raw::c_uint = 512;
pub const FT_FACE_FLAG_EXTERNAL_STREAM: ::std::os::raw::c_uint = 1024;
pub const FT_FACE_FLAG_HINTER: ::std::os::raw::c_uint = 2048;
pub const FT_FACE_FLAG_CID_KEYED: ::std::os::raw::c_uint = 4096;
pub const FT_FACE_FLAG_TRICKY: ::std::os::raw::c_uint = 8192;
pub const FT_FACE_FLAG_COLOR: ::std::os::raw::c_uint = 16384;
pub const FT_STYLE_FLAG_ITALIC: ::std::os::raw::c_uint = 1;
pub const FT_STYLE_FLAG_BOLD: ::std::os::raw::c_uint = 2;
pub const FT_OPEN_MEMORY: ::std::os::raw::c_uint = 1;
pub const FT_OPEN_STREAM: ::std::os::raw::c_uint = 2;
pub const FT_OPEN_PATHNAME: ::std::os::raw::c_uint = 4;
pub const FT_OPEN_DRIVER: ::std::os::raw::c_uint = 8;
pub const FT_OPEN_PARAMS: ::std::os::raw::c_uint = 16;
pub const FT_LOAD_DEFAULT: ::std::os::raw::c_uint = 0;
pub const FT_LOAD_NO_SCALE: ::std::os::raw::c_uint = 1;
pub const FT_LOAD_NO_HINTING: ::std::os::raw::c_uint = 2;
pub const FT_LOAD_RENDER: ::std::os::raw::c_uint = 4;
pub const FT_LOAD_NO_BITMAP: ::std::os::raw::c_uint = 8;
pub const FT_LOAD_VERTICAL_LAYOUT: ::std::os::raw::c_uint = 16;
pub const FT_LOAD_FORCE_AUTOHINT: ::std::os::raw::c_uint = 32;
pub const FT_LOAD_CROP_BITMAP: ::std::os::raw::c_uint = 64;
pub const FT_LOAD_PEDANTIC: ::std::os::raw::c_uint = 128;
pub const FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH: ::std::os::raw::c_uint = 512;
pub const FT_LOAD_NO_RECURSE: ::std::os::raw::c_uint = 1024;
pub const FT_LOAD_IGNORE_TRANSFORM: ::std::os::raw::c_uint = 2048;
pub const FT_LOAD_MONOCHROME: ::std::os::raw::c_uint = 4096;
pub const FT_LOAD_LINEAR_DESIGN: ::std::os::raw::c_uint = 8192;
pub const FT_LOAD_NO_AUTOHINT: ::std::os::raw::c_uint = 32768;
pub const FT_LOAD_COLOR: ::std::os::raw::c_uint = 1048576;
pub const FT_LOAD_COMPUTE_METRICS: ::std::os::raw::c_uint = 2097152;
pub const FT_LOAD_ADVANCE_ONLY: ::std::os::raw::c_uint = 256;
pub const FT_LOAD_SBITS_ONLY: ::std::os::raw::c_uint = 16384;
pub const FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS: ::std::os::raw::c_uint = 1;
pub const FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES: ::std::os::raw::c_uint = 2;
pub const FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID: ::std::os::raw::c_uint = 4;
pub const FT_SUBGLYPH_FLAG_SCALE: ::std::os::raw::c_uint = 8;
pub const FT_SUBGLYPH_FLAG_XY_SCALE: ::std::os::raw::c_uint = 64;
pub const FT_SUBGLYPH_FLAG_2X2: ::std::os::raw::c_uint = 128;
pub const FT_SUBGLYPH_FLAG_USE_MY_METRICS: ::std::os::raw::c_uint = 512;
pub const FT_FSTYPE_INSTALLABLE_EMBEDDING: ::std::os::raw::c_uint = 0;
pub const FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING: ::std::os::raw::c_uint = 2;
pub const FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING: ::std::os::raw::c_uint = 4;
pub const FT_FSTYPE_EDITABLE_EMBEDDING: ::std::os::raw::c_uint = 8;
pub const FT_FSTYPE_NO_SUBSETTING: ::std::os::raw::c_uint = 256;
pub const FT_FSTYPE_BITMAP_EMBEDDING_ONLY: ::std::os::raw::c_uint = 512;
pub const FT_MODULE_FONT_DRIVER: ::std::os::raw::c_uint = 1;
pub const FT_MODULE_RENDERER: ::std::os::raw::c_uint = 2;
pub const FT_MODULE_HINTER: ::std::os::raw::c_uint = 4;
pub const FT_MODULE_STYLER: ::std::os::raw::c_uint = 8;
pub const FT_MODULE_DRIVER_SCALABLE: ::std::os::raw::c_uint = 256;
pub const FT_MODULE_DRIVER_NO_OUTLINES: ::std::os::raw::c_uint = 512;
pub const FT_MODULE_DRIVER_HAS_HINTER: ::std::os::raw::c_uint = 1024;
pub const FT_MODULE_DRIVER_HINTS_LIGHTLY: ::std::os::raw::c_uint = 2048;
pub type FT_Fast = ::std::os::raw::c_int;
pub type FT_UFast = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_MemoryRec_ {
pub user: *mut ::std::os::raw::c_void,
pub alloc: FT_Alloc_Func,
pub free: FT_Free_Func,
pub realloc: FT_Realloc_Func,
}
#[test]
fn bindgen_test_layout_FT_MemoryRec_() {
assert_eq!(::std::mem::size_of::<FT_MemoryRec_>() , 32usize , concat ! (
"Size of: " , stringify ! ( FT_MemoryRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_MemoryRec_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_MemoryRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_MemoryRec_ ) ) . user as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
, stringify ! ( user ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_MemoryRec_ ) ) . alloc as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
, stringify ! ( alloc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_MemoryRec_ ) ) . free as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
, stringify ! ( free ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_MemoryRec_ ) ) . realloc as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
, stringify ! ( realloc ) ));
}
impl Clone for FT_MemoryRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Memory = *mut FT_MemoryRec_;
pub type FT_Alloc_Func =
::std::option::Option<unsafe extern "C" fn(memory: FT_Memory,
size: ::std::os::raw::c_long)
-> *mut ::std::os::raw::c_void>;
pub type FT_Free_Func =
::std::option::Option<unsafe extern "C" fn(memory: FT_Memory,
block:
*mut ::std::os::raw::c_void)>;
pub type FT_Realloc_Func =
::std::option::Option<unsafe extern "C" fn(memory: FT_Memory,
cur_size:
::std::os::raw::c_long,
new_size:
::std::os::raw::c_long,
block:
*mut ::std::os::raw::c_void)
-> *mut ::std::os::raw::c_void>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_StreamRec_ {
pub base: *mut ::std::os::raw::c_uchar,
pub size: ::std::os::raw::c_ulong,
pub pos: ::std::os::raw::c_ulong,
pub descriptor: FT_StreamDesc,
pub pathname: FT_StreamDesc,
pub read: FT_Stream_IoFunc,
pub close: FT_Stream_CloseFunc,
pub memory: FT_Memory,
pub cursor: *mut ::std::os::raw::c_uchar,
pub limit: *mut ::std::os::raw::c_uchar,
}
#[test]
fn bindgen_test_layout_FT_StreamRec_() {
assert_eq!(::std::mem::size_of::<FT_StreamRec_>() , 80usize , concat ! (
"Size of: " , stringify ! ( FT_StreamRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_StreamRec_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_StreamRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . base as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . size as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . pos as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( pos ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . descriptor as * const
_ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( descriptor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . pathname as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( pathname ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . read as * const _ as
usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( read ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . close as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( close ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . memory as * const _
as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( memory ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . cursor as * const _
as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( cursor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamRec_ ) ) . limit as * const _ as
usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
, stringify ! ( limit ) ));
}
impl Clone for FT_StreamRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Stream = *mut FT_StreamRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_StreamDesc_ {
pub value: __BindgenUnionField<::std::os::raw::c_long>,
pub pointer: __BindgenUnionField<*mut ::std::os::raw::c_void>,
pub bindgen_union_field: u64,
}
#[test]
fn bindgen_test_layout_FT_StreamDesc_() {
assert_eq!(::std::mem::size_of::<FT_StreamDesc_>() , 8usize , concat ! (
"Size of: " , stringify ! ( FT_StreamDesc_ ) ));
assert_eq! (::std::mem::align_of::<FT_StreamDesc_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_StreamDesc_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamDesc_ ) ) . value as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamDesc_ ) , "::"
, stringify ! ( value ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_StreamDesc_ ) ) . pointer as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_StreamDesc_ ) , "::"
, stringify ! ( pointer ) ));
}
impl Clone for FT_StreamDesc_ {
fn clone(&self) -> Self { *self }
}
pub type FT_StreamDesc = FT_StreamDesc_;
pub type FT_Stream_IoFunc =
::std::option::Option<unsafe extern "C" fn(stream: FT_Stream,
offset:
::std::os::raw::c_ulong,
buffer:
*mut ::std::os::raw::c_uchar,
count: ::std::os::raw::c_ulong)
-> ::std::os::raw::c_ulong>;
pub type FT_Stream_CloseFunc =
::std::option::Option<unsafe extern "C" fn(stream: FT_Stream)>;
pub type FT_StreamRec = FT_StreamRec_;
pub type FT_Pos = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Vector_ {
pub x: FT_Pos,
pub y: FT_Pos,
}
#[test]
fn bindgen_test_layout_FT_Vector_() {
assert_eq!(::std::mem::size_of::<FT_Vector_>() , 16usize , concat ! (
"Size of: " , stringify ! ( FT_Vector_ ) ));
assert_eq! (::std::mem::align_of::<FT_Vector_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Vector_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Vector_ ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Vector_ ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Vector_ ) ) . y as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Vector_ ) , "::" ,
stringify ! ( y ) ));
}
impl Clone for FT_Vector_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Vector = FT_Vector_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_BBox_ {
pub xMin: FT_Pos,
pub yMin: FT_Pos,
pub xMax: FT_Pos,
pub yMax: FT_Pos,
}
#[test]
fn bindgen_test_layout_FT_BBox_() {
assert_eq!(::std::mem::size_of::<FT_BBox_>() , 32usize , concat ! (
"Size of: " , stringify ! ( FT_BBox_ ) ));
assert_eq! (::std::mem::align_of::<FT_BBox_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_BBox_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_BBox_ ) ) . xMin as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
stringify ! ( xMin ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_BBox_ ) ) . yMin as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
stringify ! ( yMin ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_BBox_ ) ) . xMax as * const _ as usize
} , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
stringify ! ( xMax ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_BBox_ ) ) . yMax as * const _ as usize
} , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
stringify ! ( yMax ) ));
}
impl Clone for FT_BBox_ {
fn clone(&self) -> Self { *self }
}
pub type FT_BBox = FT_BBox_;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Pixel_Mode_ {
FT_PIXEL_MODE_NONE = 0,
FT_PIXEL_MODE_MONO = 1,
FT_PIXEL_MODE_GRAY = 2,
FT_PIXEL_MODE_GRAY2 = 3,
FT_PIXEL_MODE_GRAY4 = 4,
FT_PIXEL_MODE_LCD = 5,
FT_PIXEL_MODE_LCD_V = 6,
FT_PIXEL_MODE_BGRA = 7,
FT_PIXEL_MODE_MAX = 8,
}
pub use self::FT_Pixel_Mode_ as FT_Pixel_Mode;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Bitmap_ {
pub rows: ::std::os::raw::c_uint,
pub width: ::std::os::raw::c_uint,
pub pitch: ::std::os::raw::c_int,
pub buffer: *mut ::std::os::raw::c_uchar,
pub num_grays: ::std::os::raw::c_ushort,
pub pixel_mode: ::std::os::raw::c_uchar,
pub palette_mode: ::std::os::raw::c_uchar,
pub palette: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_FT_Bitmap_() {
assert_eq!(::std::mem::size_of::<FT_Bitmap_>() , 40usize , concat ! (
"Size of: " , stringify ! ( FT_Bitmap_ ) ));
assert_eq! (::std::mem::align_of::<FT_Bitmap_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Bitmap_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . rows as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( rows ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . width as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( width ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . pitch as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( pitch ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . buffer as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( buffer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . num_grays as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( num_grays ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . pixel_mode as * const _
as usize } , 26usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( pixel_mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . palette_mode as * const
_ as usize } , 27usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( palette_mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_ ) ) . palette as * const _ as
usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
stringify ! ( palette ) ));
}
impl Clone for FT_Bitmap_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Bitmap = FT_Bitmap_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Outline_ {
pub n_contours: ::std::os::raw::c_short,
pub n_points: ::std::os::raw::c_short,
pub points: *mut FT_Vector,
pub tags: *mut ::std::os::raw::c_char,
pub contours: *mut ::std::os::raw::c_short,
pub flags: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_FT_Outline_() {
assert_eq!(::std::mem::size_of::<FT_Outline_>() , 40usize , concat ! (
"Size of: " , stringify ! ( FT_Outline_ ) ));
assert_eq! (::std::mem::align_of::<FT_Outline_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Outline_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_ ) ) . n_contours as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
stringify ! ( n_contours ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_ ) ) . n_points as * const _
as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
stringify ! ( n_points ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_ ) ) . points as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
stringify ! ( points ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_ ) ) . tags as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
stringify ! ( tags ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_ ) ) . contours as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
stringify ! ( contours ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_ ) ) . flags as * const _ as
usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
stringify ! ( flags ) ));
}
impl Clone for FT_Outline_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Outline = FT_Outline_;
pub type FT_Outline_MoveToFunc =
::std::option::Option<unsafe extern "C" fn(to: *const FT_Vector,
user:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
pub type FT_Outline_LineToFunc =
::std::option::Option<unsafe extern "C" fn(to: *const FT_Vector,
user:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
pub type FT_Outline_ConicToFunc =
::std::option::Option<unsafe extern "C" fn(control: *const FT_Vector,
to: *const FT_Vector,
user:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
pub type FT_Outline_CubicToFunc =
::std::option::Option<unsafe extern "C" fn(control1: *const FT_Vector,
control2: *const FT_Vector,
to: *const FT_Vector,
user:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Outline_Funcs_ {
pub move_to: FT_Outline_MoveToFunc,
pub line_to: FT_Outline_LineToFunc,
pub conic_to: FT_Outline_ConicToFunc,
pub cubic_to: FT_Outline_CubicToFunc,
pub shift: ::std::os::raw::c_int,
pub delta: FT_Pos,
}
#[test]
fn bindgen_test_layout_FT_Outline_Funcs_() {
assert_eq!(::std::mem::size_of::<FT_Outline_Funcs_>() , 48usize , concat !
( "Size of: " , stringify ! ( FT_Outline_Funcs_ ) ));
assert_eq! (::std::mem::align_of::<FT_Outline_Funcs_>() , 8usize , concat
! ( "Alignment of " , stringify ! ( FT_Outline_Funcs_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_Funcs_ ) ) . move_to as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
"::" , stringify ! ( move_to ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_Funcs_ ) ) . line_to as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
"::" , stringify ! ( line_to ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_Funcs_ ) ) . conic_to as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
"::" , stringify ! ( conic_to ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_Funcs_ ) ) . cubic_to as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
"::" , stringify ! ( cubic_to ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_Funcs_ ) ) . shift as * const
_ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
"::" , stringify ! ( shift ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Outline_Funcs_ ) ) . delta as * const
_ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
"::" , stringify ! ( delta ) ));
}
impl Clone for FT_Outline_Funcs_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Outline_Funcs = FT_Outline_Funcs_;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Glyph_Format_ {
FT_GLYPH_FORMAT_NONE = 0,
FT_GLYPH_FORMAT_COMPOSITE = 1668246896,
FT_GLYPH_FORMAT_BITMAP = 1651078259,
FT_GLYPH_FORMAT_OUTLINE = 1869968492,
FT_GLYPH_FORMAT_PLOTTER = 1886154612,
}
pub use self::FT_Glyph_Format_ as FT_Glyph_Format;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_RasterRec_ {
_unused: [u8; 0],
}
pub type FT_Raster = *mut FT_RasterRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Span_ {
pub x: ::std::os::raw::c_short,
pub len: ::std::os::raw::c_ushort,
pub coverage: ::std::os::raw::c_uchar,
}
#[test]
fn bindgen_test_layout_FT_Span_() {
assert_eq!(::std::mem::size_of::<FT_Span_>() , 6usize , concat ! (
"Size of: " , stringify ! ( FT_Span_ ) ));
assert_eq! (::std::mem::align_of::<FT_Span_>() , 2usize , concat ! (
"Alignment of " , stringify ! ( FT_Span_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Span_ ) ) . x as * const _ as usize }
, 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Span_ ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Span_ ) ) . len as * const _ as usize
} , 2usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Span_ ) , "::" ,
stringify ! ( len ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Span_ ) ) . coverage as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Span_ ) , "::" ,
stringify ! ( coverage ) ));
}
impl Clone for FT_Span_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Span = FT_Span_;
pub type FT_SpanFunc =
::std::option::Option<unsafe extern "C" fn(y: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
spans: *const FT_Span,
user:
*mut ::std::os::raw::c_void)>;
pub type FT_Raster_BitTest_Func =
::std::option::Option<unsafe extern "C" fn(y: ::std::os::raw::c_int,
x: ::std::os::raw::c_int,
user:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
pub type FT_Raster_BitSet_Func =
::std::option::Option<unsafe extern "C" fn(y: ::std::os::raw::c_int,
x: ::std::os::raw::c_int,
user:
*mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Raster_Params_ {
pub target: *const FT_Bitmap,
pub source: *const ::std::os::raw::c_void,
pub flags: ::std::os::raw::c_int,
pub gray_spans: FT_SpanFunc,
pub black_spans: FT_SpanFunc,
pub bit_test: FT_Raster_BitTest_Func,
pub bit_set: FT_Raster_BitSet_Func,
pub user: *mut ::std::os::raw::c_void,
pub clip_box: FT_BBox,
}
#[test]
fn bindgen_test_layout_FT_Raster_Params_() {
assert_eq!(::std::mem::size_of::<FT_Raster_Params_>() , 96usize , concat !
( "Size of: " , stringify ! ( FT_Raster_Params_ ) ));
assert_eq! (::std::mem::align_of::<FT_Raster_Params_>() , 8usize , concat
! ( "Alignment of " , stringify ! ( FT_Raster_Params_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . target as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( target ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . source as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( source ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . flags as * const
_ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( flags ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . gray_spans as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( gray_spans ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . black_spans as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( black_spans ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . bit_test as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( bit_test ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . bit_set as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( bit_set ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . user as * const _
as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( user ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Params_ ) ) . clip_box as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
"::" , stringify ! ( clip_box ) ));
}
impl Clone for FT_Raster_Params_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Raster_Params = FT_Raster_Params_;
pub type FT_Raster_NewFunc =
::std::option::Option<unsafe extern "C" fn(memory:
*mut ::std::os::raw::c_void,
raster: *mut FT_Raster)
-> ::std::os::raw::c_int>;
pub type FT_Raster_DoneFunc =
::std::option::Option<unsafe extern "C" fn(raster: FT_Raster)>;
pub type FT_Raster_ResetFunc =
::std::option::Option<unsafe extern "C" fn(raster: FT_Raster,
pool_base:
*mut ::std::os::raw::c_uchar,
pool_size:
::std::os::raw::c_ulong)>;
pub type FT_Raster_SetModeFunc =
::std::option::Option<unsafe extern "C" fn(raster: FT_Raster,
mode: ::std::os::raw::c_ulong,
args:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
pub type FT_Raster_RenderFunc =
::std::option::Option<unsafe extern "C" fn(raster: FT_Raster,
params:
*const FT_Raster_Params)
-> ::std::os::raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Raster_Funcs_ {
pub glyph_format: FT_Glyph_Format,
pub raster_new: FT_Raster_NewFunc,
pub raster_reset: FT_Raster_ResetFunc,
pub raster_set_mode: FT_Raster_SetModeFunc,
pub raster_render: FT_Raster_RenderFunc,
pub raster_done: FT_Raster_DoneFunc,
}
#[test]
fn bindgen_test_layout_FT_Raster_Funcs_() {
assert_eq!(::std::mem::size_of::<FT_Raster_Funcs_>() , 48usize , concat !
( "Size of: " , stringify ! ( FT_Raster_Funcs_ ) ));
assert_eq! (::std::mem::align_of::<FT_Raster_Funcs_>() , 8usize , concat !
( "Alignment of " , stringify ! ( FT_Raster_Funcs_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Funcs_ ) ) . glyph_format as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
"::" , stringify ! ( glyph_format ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_new as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
"::" , stringify ! ( raster_new ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_reset as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
"::" , stringify ! ( raster_reset ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_set_mode as
* const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
"::" , stringify ! ( raster_set_mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_render as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
"::" , stringify ! ( raster_render ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_done as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
"::" , stringify ! ( raster_done ) ));
}
impl Clone for FT_Raster_Funcs_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Raster_Funcs = FT_Raster_Funcs_;
pub type FT_Bool = ::std::os::raw::c_uchar;
pub type FT_FWord = ::std::os::raw::c_short;
pub type FT_UFWord = ::std::os::raw::c_ushort;
pub type FT_Char = ::std::os::raw::c_schar;
pub type FT_Byte = ::std::os::raw::c_uchar;
pub type FT_Bytes = *const FT_Byte;
pub type FT_Tag = FT_UInt32;
pub type FT_String = ::std::os::raw::c_char;
pub type FT_Short = ::std::os::raw::c_short;
pub type FT_UShort = ::std::os::raw::c_ushort;
pub type FT_Int = ::std::os::raw::c_int;
pub type FT_UInt = ::std::os::raw::c_uint;
pub type FT_Long = ::std::os::raw::c_long;
pub type FT_ULong = ::std::os::raw::c_ulong;
pub type FT_F2Dot14 = ::std::os::raw::c_short;
pub type FT_F26Dot6 = ::std::os::raw::c_long;
pub type FT_Fixed = ::std::os::raw::c_long;
pub type FT_Pointer = *mut ::std::os::raw::c_void;
pub type FT_Offset = usize;
pub type FT_PtrDist = isize;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_UnitVector_ {
pub x: FT_F2Dot14,
pub y: FT_F2Dot14,
}
#[test]
fn bindgen_test_layout_FT_UnitVector_() {
assert_eq!(::std::mem::size_of::<FT_UnitVector_>() , 4usize , concat ! (
"Size of: " , stringify ! ( FT_UnitVector_ ) ));
assert_eq! (::std::mem::align_of::<FT_UnitVector_>() , 2usize , concat ! (
"Alignment of " , stringify ! ( FT_UnitVector_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_UnitVector_ ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_UnitVector_ ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_UnitVector_ ) ) . y as * const _ as
usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( FT_UnitVector_ ) , "::"
, stringify ! ( y ) ));
}
impl Clone for FT_UnitVector_ {
fn clone(&self) -> Self { *self }
}
pub type FT_UnitVector = FT_UnitVector_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Matrix_ {
pub xx: FT_Fixed,
pub xy: FT_Fixed,
pub yx: FT_Fixed,
pub yy: FT_Fixed,
}
#[test]
fn bindgen_test_layout_FT_Matrix_() {
assert_eq!(::std::mem::size_of::<FT_Matrix_>() , 32usize , concat ! (
"Size of: " , stringify ! ( FT_Matrix_ ) ));
assert_eq! (::std::mem::align_of::<FT_Matrix_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Matrix_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Matrix_ ) ) . xx as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
stringify ! ( xx ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Matrix_ ) ) . xy as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
stringify ! ( xy ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Matrix_ ) ) . yx as * const _ as usize
} , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
stringify ! ( yx ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Matrix_ ) ) . yy as * const _ as usize
} , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
stringify ! ( yy ) ));
}
impl Clone for FT_Matrix_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Matrix = FT_Matrix_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Data_ {
pub pointer: *const FT_Byte,
pub length: FT_Int,
}
#[test]
fn bindgen_test_layout_FT_Data_() {
assert_eq!(::std::mem::size_of::<FT_Data_>() , 16usize , concat ! (
"Size of: " , stringify ! ( FT_Data_ ) ));
assert_eq! (::std::mem::align_of::<FT_Data_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Data_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Data_ ) ) . pointer as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Data_ ) , "::" ,
stringify ! ( pointer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Data_ ) ) . length as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Data_ ) , "::" ,
stringify ! ( length ) ));
}
impl Clone for FT_Data_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Data = FT_Data_;
pub type FT_Generic_Finalizer =
::std::option::Option<unsafe extern "C" fn(object:
*mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Generic_ {
pub data: *mut ::std::os::raw::c_void,
pub finalizer: FT_Generic_Finalizer,
}
#[test]
fn bindgen_test_layout_FT_Generic_() {
assert_eq!(::std::mem::size_of::<FT_Generic_>() , 16usize , concat ! (
"Size of: " , stringify ! ( FT_Generic_ ) ));
assert_eq! (::std::mem::align_of::<FT_Generic_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Generic_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Generic_ ) ) . data as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Generic_ ) , "::" ,
stringify ! ( data ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Generic_ ) ) . finalizer as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Generic_ ) , "::" ,
stringify ! ( finalizer ) ));
}
impl Clone for FT_Generic_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Generic = FT_Generic_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_ListNodeRec_ {
pub prev: FT_ListNode,
pub next: FT_ListNode,
pub data: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_FT_ListNodeRec_() {
assert_eq!(::std::mem::size_of::<FT_ListNodeRec_>() , 24usize , concat ! (
"Size of: " , stringify ! ( FT_ListNodeRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_ListNodeRec_>() , 8usize , concat !
( "Alignment of " , stringify ! ( FT_ListNodeRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_ListNodeRec_ ) ) . prev as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_ListNodeRec_ ) ,
"::" , stringify ! ( prev ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_ListNodeRec_ ) ) . next as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_ListNodeRec_ ) ,
"::" , stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_ListNodeRec_ ) ) . data as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_ListNodeRec_ ) ,
"::" , stringify ! ( data ) ));
}
impl Clone for FT_ListNodeRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_ListNode = *mut FT_ListNodeRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_ListRec_ {
pub head: FT_ListNode,
pub tail: FT_ListNode,
}
#[test]
fn bindgen_test_layout_FT_ListRec_() {
assert_eq!(::std::mem::size_of::<FT_ListRec_>() , 16usize , concat ! (
"Size of: " , stringify ! ( FT_ListRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_ListRec_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_ListRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_ListRec_ ) ) . head as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_ListRec_ ) , "::" ,
stringify ! ( head ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_ListRec_ ) ) . tail as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_ListRec_ ) , "::" ,
stringify ! ( tail ) ));
}
impl Clone for FT_ListRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_List = *mut FT_ListRec_;
pub type FT_ListNodeRec = FT_ListNodeRec_;
pub type FT_ListRec = FT_ListRec_;
pub const FT_Mod_Err_Base: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Autofit: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_BDF: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Bzip2: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Cache: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_CFF: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_CID: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Gzip: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_LZW: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_OTvalid: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_PCF: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_PFR: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_PSaux: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_PShinter: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_PSnames: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Raster: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_SFNT: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Smooth: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_TrueType: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Type1: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Type42: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Winfonts: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_GXvalid: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
pub const FT_Mod_Err_Max: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Max;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_1 { FT_Mod_Err_Base = 0, FT_Mod_Err_Max = 1, }
pub const FT_Err_Ok: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Ok;
pub const FT_Err_Cannot_Open_Resource: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Cannot_Open_Resource;
pub const FT_Err_Unknown_File_Format: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Unknown_File_Format;
pub const FT_Err_Invalid_File_Format: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_File_Format;
pub const FT_Err_Invalid_Version: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Version;
pub const FT_Err_Lower_Module_Version: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Lower_Module_Version;
pub const FT_Err_Invalid_Argument: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Argument;
pub const FT_Err_Unimplemented_Feature: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Unimplemented_Feature;
pub const FT_Err_Invalid_Table: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Table;
pub const FT_Err_Invalid_Offset: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Offset;
pub const FT_Err_Array_Too_Large: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Array_Too_Large;
pub const FT_Err_Missing_Module: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Module;
pub const FT_Err_Missing_Property: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Property;
pub const FT_Err_Invalid_Glyph_Index: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Glyph_Index;
pub const FT_Err_Invalid_Character_Code: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Character_Code;
pub const FT_Err_Invalid_Glyph_Format: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Glyph_Format;
pub const FT_Err_Cannot_Render_Glyph: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Cannot_Render_Glyph;
pub const FT_Err_Invalid_Outline: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Outline;
pub const FT_Err_Invalid_Composite: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Composite;
pub const FT_Err_Too_Many_Hints: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Too_Many_Hints;
pub const FT_Err_Invalid_Pixel_Size: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Pixel_Size;
pub const FT_Err_Invalid_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Handle;
pub const FT_Err_Invalid_Library_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Library_Handle;
pub const FT_Err_Invalid_Driver_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Driver_Handle;
pub const FT_Err_Invalid_Face_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Face_Handle;
pub const FT_Err_Invalid_Size_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Size_Handle;
pub const FT_Err_Invalid_Slot_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Slot_Handle;
pub const FT_Err_Invalid_CharMap_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_CharMap_Handle;
pub const FT_Err_Invalid_Cache_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Cache_Handle;
pub const FT_Err_Invalid_Stream_Handle: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Stream_Handle;
pub const FT_Err_Too_Many_Drivers: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Too_Many_Drivers;
pub const FT_Err_Too_Many_Extensions: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Too_Many_Extensions;
pub const FT_Err_Out_Of_Memory: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Out_Of_Memory;
pub const FT_Err_Unlisted_Object: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Unlisted_Object;
pub const FT_Err_Cannot_Open_Stream: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Cannot_Open_Stream;
pub const FT_Err_Invalid_Stream_Seek: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Stream_Seek;
pub const FT_Err_Invalid_Stream_Skip: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Stream_Skip;
pub const FT_Err_Invalid_Stream_Read: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Stream_Read;
pub const FT_Err_Invalid_Stream_Operation: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Stream_Operation;
pub const FT_Err_Invalid_Frame_Operation: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Frame_Operation;
pub const FT_Err_Nested_Frame_Access: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Nested_Frame_Access;
pub const FT_Err_Invalid_Frame_Read: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Frame_Read;
pub const FT_Err_Raster_Uninitialized: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Raster_Uninitialized;
pub const FT_Err_Raster_Corrupted: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Raster_Corrupted;
pub const FT_Err_Raster_Overflow: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Raster_Overflow;
pub const FT_Err_Raster_Negative_Height: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Raster_Negative_Height;
pub const FT_Err_Too_Many_Caches: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Too_Many_Caches;
pub const FT_Err_Invalid_Opcode: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Opcode;
pub const FT_Err_Too_Few_Arguments: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Too_Few_Arguments;
pub const FT_Err_Stack_Overflow: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Stack_Overflow;
pub const FT_Err_Code_Overflow: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Code_Overflow;
pub const FT_Err_Bad_Argument: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Bad_Argument;
pub const FT_Err_Divide_By_Zero: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Divide_By_Zero;
pub const FT_Err_Invalid_Reference: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Reference;
pub const FT_Err_Debug_OpCode: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Debug_OpCode;
pub const FT_Err_ENDF_In_Exec_Stream: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_ENDF_In_Exec_Stream;
pub const FT_Err_Nested_DEFS: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Nested_DEFS;
pub const FT_Err_Invalid_CodeRange: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_CodeRange;
pub const FT_Err_Execution_Too_Long: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Execution_Too_Long;
pub const FT_Err_Too_Many_Function_Defs: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Too_Many_Function_Defs;
pub const FT_Err_Too_Many_Instruction_Defs: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Too_Many_Instruction_Defs;
pub const FT_Err_Table_Missing: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Table_Missing;
pub const FT_Err_Horiz_Header_Missing: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Horiz_Header_Missing;
pub const FT_Err_Locations_Missing: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Locations_Missing;
pub const FT_Err_Name_Table_Missing: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Name_Table_Missing;
pub const FT_Err_CMap_Table_Missing: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_CMap_Table_Missing;
pub const FT_Err_Hmtx_Table_Missing: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Hmtx_Table_Missing;
pub const FT_Err_Post_Table_Missing: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Post_Table_Missing;
pub const FT_Err_Invalid_Horiz_Metrics: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Horiz_Metrics;
pub const FT_Err_Invalid_CharMap_Format: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_CharMap_Format;
pub const FT_Err_Invalid_PPem: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_PPem;
pub const FT_Err_Invalid_Vert_Metrics: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Vert_Metrics;
pub const FT_Err_Could_Not_Find_Context: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Could_Not_Find_Context;
pub const FT_Err_Invalid_Post_Table_Format: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Post_Table_Format;
pub const FT_Err_Invalid_Post_Table: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Invalid_Post_Table;
pub const FT_Err_Syntax_Error: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Syntax_Error;
pub const FT_Err_Stack_Underflow: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Stack_Underflow;
pub const FT_Err_Ignore: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Ignore;
pub const FT_Err_No_Unicode_Glyph_Name: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_No_Unicode_Glyph_Name;
pub const FT_Err_Glyph_Too_Big: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Glyph_Too_Big;
pub const FT_Err_Missing_Startfont_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Startfont_Field;
pub const FT_Err_Missing_Font_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Font_Field;
pub const FT_Err_Missing_Size_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Size_Field;
pub const FT_Err_Missing_Fontboundingbox_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Fontboundingbox_Field;
pub const FT_Err_Missing_Chars_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Chars_Field;
pub const FT_Err_Missing_Startchar_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Startchar_Field;
pub const FT_Err_Missing_Encoding_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Encoding_Field;
pub const FT_Err_Missing_Bbx_Field: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Missing_Bbx_Field;
pub const FT_Err_Bbx_Too_Big: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Bbx_Too_Big;
pub const FT_Err_Corrupted_Font_Header: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Corrupted_Font_Header;
pub const FT_Err_Corrupted_Font_Glyphs: _bindgen_ty_2 =
_bindgen_ty_2::FT_Err_Corrupted_Font_Glyphs;
pub const FT_Err_Max: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Max;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_2 {
FT_Err_Ok = 0,
FT_Err_Cannot_Open_Resource = 1,
FT_Err_Unknown_File_Format = 2,
FT_Err_Invalid_File_Format = 3,
FT_Err_Invalid_Version = 4,
FT_Err_Lower_Module_Version = 5,
FT_Err_Invalid_Argument = 6,
FT_Err_Unimplemented_Feature = 7,
FT_Err_Invalid_Table = 8,
FT_Err_Invalid_Offset = 9,
FT_Err_Array_Too_Large = 10,
FT_Err_Missing_Module = 11,
FT_Err_Missing_Property = 12,
FT_Err_Invalid_Glyph_Index = 16,
FT_Err_Invalid_Character_Code = 17,
FT_Err_Invalid_Glyph_Format = 18,
FT_Err_Cannot_Render_Glyph = 19,
FT_Err_Invalid_Outline = 20,
FT_Err_Invalid_Composite = 21,
FT_Err_Too_Many_Hints = 22,
FT_Err_Invalid_Pixel_Size = 23,
FT_Err_Invalid_Handle = 32,
FT_Err_Invalid_Library_Handle = 33,
FT_Err_Invalid_Driver_Handle = 34,
FT_Err_Invalid_Face_Handle = 35,
FT_Err_Invalid_Size_Handle = 36,
FT_Err_Invalid_Slot_Handle = 37,
FT_Err_Invalid_CharMap_Handle = 38,
FT_Err_Invalid_Cache_Handle = 39,
FT_Err_Invalid_Stream_Handle = 40,
FT_Err_Too_Many_Drivers = 48,
FT_Err_Too_Many_Extensions = 49,
FT_Err_Out_Of_Memory = 64,
FT_Err_Unlisted_Object = 65,
FT_Err_Cannot_Open_Stream = 81,
FT_Err_Invalid_Stream_Seek = 82,
FT_Err_Invalid_Stream_Skip = 83,
FT_Err_Invalid_Stream_Read = 84,
FT_Err_Invalid_Stream_Operation = 85,
FT_Err_Invalid_Frame_Operation = 86,
FT_Err_Nested_Frame_Access = 87,
FT_Err_Invalid_Frame_Read = 88,
FT_Err_Raster_Uninitialized = 96,
FT_Err_Raster_Corrupted = 97,
FT_Err_Raster_Overflow = 98,
FT_Err_Raster_Negative_Height = 99,
FT_Err_Too_Many_Caches = 112,
FT_Err_Invalid_Opcode = 128,
FT_Err_Too_Few_Arguments = 129,
FT_Err_Stack_Overflow = 130,
FT_Err_Code_Overflow = 131,
FT_Err_Bad_Argument = 132,
FT_Err_Divide_By_Zero = 133,
FT_Err_Invalid_Reference = 134,
FT_Err_Debug_OpCode = 135,
FT_Err_ENDF_In_Exec_Stream = 136,
FT_Err_Nested_DEFS = 137,
FT_Err_Invalid_CodeRange = 138,
FT_Err_Execution_Too_Long = 139,
FT_Err_Too_Many_Function_Defs = 140,
FT_Err_Too_Many_Instruction_Defs = 141,
FT_Err_Table_Missing = 142,
FT_Err_Horiz_Header_Missing = 143,
FT_Err_Locations_Missing = 144,
FT_Err_Name_Table_Missing = 145,
FT_Err_CMap_Table_Missing = 146,
FT_Err_Hmtx_Table_Missing = 147,
FT_Err_Post_Table_Missing = 148,
FT_Err_Invalid_Horiz_Metrics = 149,
FT_Err_Invalid_CharMap_Format = 150,
FT_Err_Invalid_PPem = 151,
FT_Err_Invalid_Vert_Metrics = 152,
FT_Err_Could_Not_Find_Context = 153,
FT_Err_Invalid_Post_Table_Format = 154,
FT_Err_Invalid_Post_Table = 155,
FT_Err_Syntax_Error = 160,
FT_Err_Stack_Underflow = 161,
FT_Err_Ignore = 162,
FT_Err_No_Unicode_Glyph_Name = 163,
FT_Err_Glyph_Too_Big = 164,
FT_Err_Missing_Startfont_Field = 176,
FT_Err_Missing_Font_Field = 177,
FT_Err_Missing_Size_Field = 178,
FT_Err_Missing_Fontboundingbox_Field = 179,
FT_Err_Missing_Chars_Field = 180,
FT_Err_Missing_Startchar_Field = 181,
FT_Err_Missing_Encoding_Field = 182,
FT_Err_Missing_Bbx_Field = 183,
FT_Err_Bbx_Too_Big = 184,
FT_Err_Corrupted_Font_Header = 185,
FT_Err_Corrupted_Font_Glyphs = 186,
FT_Err_Max = 187,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Glyph_Metrics_ {
pub width: FT_Pos,
pub height: FT_Pos,
pub horiBearingX: FT_Pos,
pub horiBearingY: FT_Pos,
pub horiAdvance: FT_Pos,
pub vertBearingX: FT_Pos,
pub vertBearingY: FT_Pos,
pub vertAdvance: FT_Pos,
}
#[test]
fn bindgen_test_layout_FT_Glyph_Metrics_() {
assert_eq!(::std::mem::size_of::<FT_Glyph_Metrics_>() , 64usize , concat !
( "Size of: " , stringify ! ( FT_Glyph_Metrics_ ) ));
assert_eq! (::std::mem::align_of::<FT_Glyph_Metrics_>() , 8usize , concat
! ( "Alignment of " , stringify ! ( FT_Glyph_Metrics_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . width as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( width ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . height as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( height ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . horiBearingX as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( horiBearingX ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . horiBearingY as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( horiBearingY ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . horiAdvance as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( horiAdvance ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . vertBearingX as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( vertBearingX ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . vertBearingY as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( vertBearingY ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . vertAdvance as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
"::" , stringify ! ( vertAdvance ) ));
}
impl Clone for FT_Glyph_Metrics_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Glyph_Metrics = FT_Glyph_Metrics_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Bitmap_Size_ {
pub height: FT_Short,
pub width: FT_Short,
pub size: FT_Pos,
pub x_ppem: FT_Pos,
pub y_ppem: FT_Pos,
}
#[test]
fn bindgen_test_layout_FT_Bitmap_Size_() {
assert_eq!(::std::mem::size_of::<FT_Bitmap_Size_>() , 32usize , concat ! (
"Size of: " , stringify ! ( FT_Bitmap_Size_ ) ));
assert_eq! (::std::mem::align_of::<FT_Bitmap_Size_>() , 8usize , concat !
( "Alignment of " , stringify ! ( FT_Bitmap_Size_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_Size_ ) ) . height as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
"::" , stringify ! ( height ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_Size_ ) ) . width as * const _
as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
"::" , stringify ! ( width ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_Size_ ) ) . size as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_Size_ ) ) . x_ppem as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
"::" , stringify ! ( x_ppem ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Bitmap_Size_ ) ) . y_ppem as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
"::" , stringify ! ( y_ppem ) ));
}
impl Clone for FT_Bitmap_Size_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Bitmap_Size = FT_Bitmap_Size_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_LibraryRec_ {
_unused: [u8; 0],
}
pub type FT_Library = *mut FT_LibraryRec_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_ModuleRec_ {
_unused: [u8; 0],
}
pub type FT_Module = *mut FT_ModuleRec_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_DriverRec_ {
_unused: [u8; 0],
}
pub type FT_Driver = *mut FT_DriverRec_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_RendererRec_ {
_unused: [u8; 0],
}
pub type FT_Renderer = *mut FT_RendererRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_FaceRec_ {
pub num_faces: FT_Long,
pub face_index: FT_Long,
pub face_flags: FT_Long,
pub style_flags: FT_Long,
pub num_glyphs: FT_Long,
pub family_name: *mut FT_String,
pub style_name: *mut FT_String,
pub num_fixed_sizes: FT_Int,
pub available_sizes: *mut FT_Bitmap_Size,
pub num_charmaps: FT_Int,
pub charmaps: *mut FT_CharMap,
pub generic: FT_Generic,
pub bbox: FT_BBox,
pub units_per_EM: FT_UShort,
pub ascender: FT_Short,
pub descender: FT_Short,
pub height: FT_Short,
pub max_advance_width: FT_Short,
pub max_advance_height: FT_Short,
pub underline_position: FT_Short,
pub underline_thickness: FT_Short,
pub glyph: FT_GlyphSlot,
pub size: FT_Size,
pub charmap: FT_CharMap,
pub driver: FT_Driver,
pub memory: FT_Memory,
pub stream: FT_Stream,
pub sizes_list: FT_ListRec,
pub autohint: FT_Generic,
pub extensions: *mut ::std::os::raw::c_void,
pub internal: FT_Face_Internal,
}
#[test]
fn bindgen_test_layout_FT_FaceRec_() {
assert_eq!(::std::mem::size_of::<FT_FaceRec_>() , 248usize , concat ! (
"Size of: " , stringify ! ( FT_FaceRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_FaceRec_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_FaceRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . num_faces as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( num_faces ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . face_index as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( face_index ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . face_flags as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( face_flags ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . style_flags as * const
_ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( style_flags ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . num_glyphs as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( num_glyphs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . family_name as * const
_ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( family_name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . style_name as * const _
as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( style_name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . num_fixed_sizes as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( num_fixed_sizes ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . available_sizes as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( available_sizes ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . num_charmaps as * const
_ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( num_charmaps ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . charmaps as * const _
as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( charmaps ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . generic as * const _ as
usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( generic ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . bbox as * const _ as
usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( bbox ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . units_per_EM as * const
_ as usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( units_per_EM ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . ascender as * const _
as usize } , 138usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( ascender ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . descender as * const _
as usize } , 140usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( descender ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . height as * const _ as
usize } , 142usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( height ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . max_advance_width as *
const _ as usize } , 144usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( max_advance_width ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . max_advance_height as *
const _ as usize } , 146usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( max_advance_height ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . underline_position as *
const _ as usize } , 148usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( underline_position ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . underline_thickness as
* const _ as usize } , 150usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( underline_thickness ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . glyph as * const _ as
usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( glyph ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . size as * const _ as
usize } , 160usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . charmap as * const _ as
usize } , 168usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( charmap ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . driver as * const _ as
usize } , 176usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( driver ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . memory as * const _ as
usize } , 184usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( memory ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . stream as * const _ as
usize } , 192usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( stream ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . sizes_list as * const _
as usize } , 200usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( sizes_list ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . autohint as * const _
as usize } , 216usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( autohint ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . extensions as * const _
as usize } , 232usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( extensions ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_FaceRec_ ) ) . internal as * const _
as usize } , 240usize , concat ! (
"Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
stringify ! ( internal ) ));
}
impl Clone for FT_FaceRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Face = *mut FT_FaceRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_SizeRec_ {
pub face: FT_Face,
pub generic: FT_Generic,
pub metrics: FT_Size_Metrics,
pub internal: FT_Size_Internal,
}
#[test]
fn bindgen_test_layout_FT_SizeRec_() {
assert_eq!(::std::mem::size_of::<FT_SizeRec_>() , 88usize , concat ! (
"Size of: " , stringify ! ( FT_SizeRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_SizeRec_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_SizeRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_SizeRec_ ) ) . face as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
stringify ! ( face ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_SizeRec_ ) ) . generic as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
stringify ! ( generic ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_SizeRec_ ) ) . metrics as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
stringify ! ( metrics ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_SizeRec_ ) ) . internal as * const _
as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
stringify ! ( internal ) ));
}
impl Clone for FT_SizeRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Size = *mut FT_SizeRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_GlyphSlotRec_ {
pub library: FT_Library,
pub face: FT_Face,
pub next: FT_GlyphSlot,
pub reserved: FT_UInt,
pub generic: FT_Generic,
pub metrics: FT_Glyph_Metrics,
pub linearHoriAdvance: FT_Fixed,
pub linearVertAdvance: FT_Fixed,
pub advance: FT_Vector,
pub format: FT_Glyph_Format,
pub bitmap: FT_Bitmap,
pub bitmap_left: FT_Int,
pub bitmap_top: FT_Int,
pub outline: FT_Outline,
pub num_subglyphs: FT_UInt,
pub subglyphs: FT_SubGlyph,
pub control_data: *mut ::std::os::raw::c_void,
pub control_len: ::std::os::raw::c_long,
pub lsb_delta: FT_Pos,
pub rsb_delta: FT_Pos,
pub other: *mut ::std::os::raw::c_void,
pub internal: FT_Slot_Internal,
}
#[test]
fn bindgen_test_layout_FT_GlyphSlotRec_() {
assert_eq!(::std::mem::size_of::<FT_GlyphSlotRec_>() , 304usize , concat !
( "Size of: " , stringify ! ( FT_GlyphSlotRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_GlyphSlotRec_>() , 8usize , concat !
( "Alignment of " , stringify ! ( FT_GlyphSlotRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . library as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( library ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . face as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( face ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . next as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . reserved as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( reserved ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . generic as * const
_ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( generic ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . metrics as * const
_ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( metrics ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . linearHoriAdvance
as * const _ as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( linearHoriAdvance ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . linearVertAdvance
as * const _ as usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( linearVertAdvance ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . advance as * const
_ as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( advance ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . format as * const
_ as usize } , 144usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( format ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . bitmap as * const
_ as usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( bitmap ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . bitmap_left as *
const _ as usize } , 192usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( bitmap_left ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . bitmap_top as *
const _ as usize } , 196usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( bitmap_top ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . outline as * const
_ as usize } , 200usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( outline ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . num_subglyphs as *
const _ as usize } , 240usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( num_subglyphs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . subglyphs as *
const _ as usize } , 248usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( subglyphs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . control_data as *
const _ as usize } , 256usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( control_data ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . control_len as *
const _ as usize } , 264usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( control_len ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . lsb_delta as *
const _ as usize } , 272usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( lsb_delta ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . rsb_delta as *
const _ as usize } , 280usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( rsb_delta ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . other as * const _
as usize } , 288usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( other ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . internal as *
const _ as usize } , 296usize , concat ! (
"Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
"::" , stringify ! ( internal ) ));
}
impl Clone for FT_GlyphSlotRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_GlyphSlot = *mut FT_GlyphSlotRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_CharMapRec_ {
pub face: FT_Face,
pub encoding: FT_Encoding,
pub platform_id: FT_UShort,
pub encoding_id: FT_UShort,
}
#[test]
fn bindgen_test_layout_FT_CharMapRec_() {
assert_eq!(::std::mem::size_of::<FT_CharMapRec_>() , 16usize , concat ! (
"Size of: " , stringify ! ( FT_CharMapRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_CharMapRec_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_CharMapRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_CharMapRec_ ) ) . face as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
, stringify ! ( face ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_CharMapRec_ ) ) . encoding as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
, stringify ! ( encoding ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_CharMapRec_ ) ) . platform_id as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
, stringify ! ( platform_id ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_CharMapRec_ ) ) . encoding_id as *
const _ as usize } , 14usize , concat ! (
"Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
, stringify ! ( encoding_id ) ));
}
impl Clone for FT_CharMapRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_CharMap = *mut FT_CharMapRec_;
pub const FT_Encoding__FT_ENCODING_MS_SJIS: FT_Encoding_ =
FT_Encoding_::FT_ENCODING_SJIS;
pub const FT_Encoding__FT_ENCODING_MS_GB2312: FT_Encoding_ =
FT_Encoding_::FT_ENCODING_GB2312;
pub const FT_Encoding__FT_ENCODING_MS_BIG5: FT_Encoding_ =
FT_Encoding_::FT_ENCODING_BIG5;
pub const FT_Encoding__FT_ENCODING_MS_WANSUNG: FT_Encoding_ =
FT_Encoding_::FT_ENCODING_WANSUNG;
pub const FT_Encoding__FT_ENCODING_MS_JOHAB: FT_Encoding_ =
FT_Encoding_::FT_ENCODING_JOHAB;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Encoding_ {
FT_ENCODING_NONE = 0,
FT_ENCODING_MS_SYMBOL = 1937337698,
FT_ENCODING_UNICODE = 1970170211,
FT_ENCODING_SJIS = 1936353651,
FT_ENCODING_GB2312 = 1734484000,
FT_ENCODING_BIG5 = 1651074869,
FT_ENCODING_WANSUNG = 2002873971,
FT_ENCODING_JOHAB = 1785686113,
FT_ENCODING_ADOBE_STANDARD = 1094995778,
FT_ENCODING_ADOBE_EXPERT = 1094992453,
FT_ENCODING_ADOBE_CUSTOM = 1094992451,
FT_ENCODING_ADOBE_LATIN_1 = 1818326065,
FT_ENCODING_OLD_LATIN_2 = 1818326066,
FT_ENCODING_APPLE_ROMAN = 1634889070,
}
pub use self::FT_Encoding_ as FT_Encoding;
pub type FT_CharMapRec = FT_CharMapRec_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_Face_InternalRec_ {
_unused: [u8; 0],
}
pub type FT_Face_Internal = *mut FT_Face_InternalRec_;
pub type FT_FaceRec = FT_FaceRec_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_Size_InternalRec_ {
_unused: [u8; 0],
}
pub type FT_Size_Internal = *mut FT_Size_InternalRec_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Size_Metrics_ {
pub x_ppem: FT_UShort,
pub y_ppem: FT_UShort,
pub x_scale: FT_Fixed,
pub y_scale: FT_Fixed,
pub ascender: FT_Pos,
pub descender: FT_Pos,
pub height: FT_Pos,
pub max_advance: FT_Pos,
}
#[test]
fn bindgen_test_layout_FT_Size_Metrics_() {
assert_eq!(::std::mem::size_of::<FT_Size_Metrics_>() , 56usize , concat !
( "Size of: " , stringify ! ( FT_Size_Metrics_ ) ));
assert_eq! (::std::mem::align_of::<FT_Size_Metrics_>() , 8usize , concat !
( "Alignment of " , stringify ! ( FT_Size_Metrics_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . x_ppem as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( x_ppem ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . y_ppem as * const
_ as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( y_ppem ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . x_scale as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( x_scale ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . y_scale as * const
_ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( y_scale ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . ascender as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( ascender ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . descender as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( descender ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . height as * const
_ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( height ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_Metrics_ ) ) . max_advance as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
"::" , stringify ! ( max_advance ) ));
}
impl Clone for FT_Size_Metrics_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Size_Metrics = FT_Size_Metrics_;
pub type FT_SizeRec = FT_SizeRec_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_SubGlyphRec_ {
_unused: [u8; 0],
}
pub type FT_SubGlyph = *mut FT_SubGlyphRec_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FT_Slot_InternalRec_ {
_unused: [u8; 0],
}
pub type FT_Slot_Internal = *mut FT_Slot_InternalRec_;
pub type FT_GlyphSlotRec = FT_GlyphSlotRec_;
extern "C" {
pub fn FT_Init_FreeType(alibrary: *mut FT_Library) -> FT_Error;
}
extern "C" {
pub fn FT_Done_FreeType(library: FT_Library) -> FT_Error;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Parameter_ {
pub tag: FT_ULong,
pub data: FT_Pointer,
}
#[test]
fn bindgen_test_layout_FT_Parameter_() {
assert_eq!(::std::mem::size_of::<FT_Parameter_>() , 16usize , concat ! (
"Size of: " , stringify ! ( FT_Parameter_ ) ));
assert_eq! (::std::mem::align_of::<FT_Parameter_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Parameter_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Parameter_ ) ) . tag as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Parameter_ ) , "::"
, stringify ! ( tag ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Parameter_ ) ) . data as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Parameter_ ) , "::"
, stringify ! ( data ) ));
}
impl Clone for FT_Parameter_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Parameter = FT_Parameter_;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Open_Args_ {
pub flags: FT_UInt,
pub memory_base: *const FT_Byte,
pub memory_size: FT_Long,
pub pathname: *mut FT_String,
pub stream: FT_Stream,
pub driver: FT_Module,
pub num_params: FT_Int,
pub params: *mut FT_Parameter,
}
#[test]
fn bindgen_test_layout_FT_Open_Args_() {
assert_eq!(::std::mem::size_of::<FT_Open_Args_>() , 64usize , concat ! (
"Size of: " , stringify ! ( FT_Open_Args_ ) ));
assert_eq! (::std::mem::align_of::<FT_Open_Args_>() , 8usize , concat ! (
"Alignment of " , stringify ! ( FT_Open_Args_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . flags as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( flags ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . memory_base as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( memory_base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . memory_size as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( memory_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . pathname as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( pathname ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . stream as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( stream ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . driver as * const _
as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( driver ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . num_params as * const
_ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( num_params ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Open_Args_ ) ) . params as * const _
as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
, stringify ! ( params ) ));
}
impl Clone for FT_Open_Args_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Open_Args = FT_Open_Args_;
extern "C" {
pub fn FT_New_Face(library: FT_Library,
filepathname: *const ::std::os::raw::c_char,
face_index: FT_Long, aface: *mut FT_Face) -> FT_Error;
}
extern "C" {
pub fn FT_New_Memory_Face(library: FT_Library, file_base: *const FT_Byte,
file_size: FT_Long, face_index: FT_Long,
aface: *mut FT_Face) -> FT_Error;
}
extern "C" {
pub fn FT_Open_Face(library: FT_Library, args: *const FT_Open_Args,
face_index: FT_Long, aface: *mut FT_Face) -> FT_Error;
}
extern "C" {
pub fn FT_Attach_File(face: FT_Face,
filepathname: *const ::std::os::raw::c_char)
-> FT_Error;
}
extern "C" {
pub fn FT_Attach_Stream(face: FT_Face, parameters: *mut FT_Open_Args)
-> FT_Error;
}
extern "C" {
pub fn FT_Reference_Face(face: FT_Face) -> FT_Error;
}
extern "C" {
pub fn FT_Done_Face(face: FT_Face) -> FT_Error;
}
extern "C" {
pub fn FT_Select_Size(face: FT_Face, strike_index: FT_Int) -> FT_Error;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Size_Request_Type_ {
FT_SIZE_REQUEST_TYPE_NOMINAL = 0,
FT_SIZE_REQUEST_TYPE_REAL_DIM = 1,
FT_SIZE_REQUEST_TYPE_BBOX = 2,
FT_SIZE_REQUEST_TYPE_CELL = 3,
FT_SIZE_REQUEST_TYPE_SCALES = 4,
FT_SIZE_REQUEST_TYPE_MAX = 5,
}
pub use self::FT_Size_Request_Type_ as FT_Size_Request_Type;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Size_RequestRec_ {
pub type_: FT_Size_Request_Type,
pub width: FT_Long,
pub height: FT_Long,
pub horiResolution: FT_UInt,
pub vertResolution: FT_UInt,
}
#[test]
fn bindgen_test_layout_FT_Size_RequestRec_() {
assert_eq!(::std::mem::size_of::<FT_Size_RequestRec_>() , 32usize , concat
! ( "Size of: " , stringify ! ( FT_Size_RequestRec_ ) ));
assert_eq! (::std::mem::align_of::<FT_Size_RequestRec_>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( FT_Size_RequestRec_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_RequestRec_ ) ) . type_ as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
"::" , stringify ! ( type_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_RequestRec_ ) ) . width as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
"::" , stringify ! ( width ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_RequestRec_ ) ) . height as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
"::" , stringify ! ( height ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_RequestRec_ ) ) . horiResolution
as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
"::" , stringify ! ( horiResolution ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Size_RequestRec_ ) ) . vertResolution
as * const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
"::" , stringify ! ( vertResolution ) ));
}
impl Clone for FT_Size_RequestRec_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Size_RequestRec = FT_Size_RequestRec_;
pub type FT_Size_Request = *mut FT_Size_RequestRec_;
extern "C" {
pub fn FT_Request_Size(face: FT_Face, req: FT_Size_Request) -> FT_Error;
}
extern "C" {
pub fn FT_Set_Char_Size(face: FT_Face, char_width: FT_F26Dot6,
char_height: FT_F26Dot6, horz_resolution: FT_UInt,
vert_resolution: FT_UInt) -> FT_Error;
}
extern "C" {
pub fn FT_Set_Pixel_Sizes(face: FT_Face, pixel_width: FT_UInt,
pixel_height: FT_UInt) -> FT_Error;
}
extern "C" {
pub fn FT_Load_Glyph(face: FT_Face, glyph_index: FT_UInt,
load_flags: FT_Int32) -> FT_Error;
}
extern "C" {
pub fn FT_Load_Char(face: FT_Face, char_code: FT_ULong,
load_flags: FT_Int32) -> FT_Error;
}
extern "C" {
pub fn FT_Set_Transform(face: FT_Face, matrix: *mut FT_Matrix,
delta: *mut FT_Vector);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Render_Mode_ {
FT_RENDER_MODE_NORMAL = 0,
FT_RENDER_MODE_LIGHT = 1,
FT_RENDER_MODE_MONO = 2,
FT_RENDER_MODE_LCD = 3,
FT_RENDER_MODE_LCD_V = 4,
FT_RENDER_MODE_MAX = 5,
}
pub use self::FT_Render_Mode_ as FT_Render_Mode;
extern "C" {
pub fn FT_Render_Glyph(slot: FT_GlyphSlot, render_mode: FT_Render_Mode)
-> FT_Error;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Kerning_Mode_ {
FT_KERNING_DEFAULT = 0,
FT_KERNING_UNFITTED = 1,
FT_KERNING_UNSCALED = 2,
}
pub use self::FT_Kerning_Mode_ as FT_Kerning_Mode;
extern "C" {
pub fn FT_Get_Kerning(face: FT_Face, left_glyph: FT_UInt,
right_glyph: FT_UInt, kern_mode: FT_UInt,
akerning: *mut FT_Vector) -> FT_Error;
}
extern "C" {
pub fn FT_Get_Track_Kerning(face: FT_Face, point_size: FT_Fixed,
degree: FT_Int, akerning: *mut FT_Fixed)
-> FT_Error;
}
extern "C" {
pub fn FT_Get_Glyph_Name(face: FT_Face, glyph_index: FT_UInt,
buffer: FT_Pointer, buffer_max: FT_UInt)
-> FT_Error;
}
extern "C" {
pub fn FT_Get_Postscript_Name(face: FT_Face)
-> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn FT_Select_Charmap(face: FT_Face, encoding: FT_Encoding)
-> FT_Error;
}
extern "C" {
pub fn FT_Set_Charmap(face: FT_Face, charmap: FT_CharMap) -> FT_Error;
}
extern "C" {
pub fn FT_Get_Charmap_Index(charmap: FT_CharMap) -> FT_Int;
}
extern "C" {
pub fn FT_Get_Char_Index(face: FT_Face, charcode: FT_ULong) -> FT_UInt;
}
extern "C" {
pub fn FT_Get_First_Char(face: FT_Face, agindex: *mut FT_UInt)
-> FT_ULong;
}
extern "C" {
pub fn FT_Get_Next_Char(face: FT_Face, char_code: FT_ULong,
agindex: *mut FT_UInt) -> FT_ULong;
}
extern "C" {
pub fn FT_Get_Name_Index(face: FT_Face, glyph_name: *mut FT_String)
-> FT_UInt;
}
extern "C" {
pub fn FT_Get_SubGlyph_Info(glyph: FT_GlyphSlot, sub_index: FT_UInt,
p_index: *mut FT_Int, p_flags: *mut FT_UInt,
p_arg1: *mut FT_Int, p_arg2: *mut FT_Int,
p_transform: *mut FT_Matrix) -> FT_Error;
}
extern "C" {
pub fn FT_Get_FSType_Flags(face: FT_Face) -> FT_UShort;
}
extern "C" {
pub fn FT_Face_GetCharVariantIndex(face: FT_Face, charcode: FT_ULong,
variantSelector: FT_ULong) -> FT_UInt;
}
extern "C" {
pub fn FT_Face_GetCharVariantIsDefault(face: FT_Face, charcode: FT_ULong,
variantSelector: FT_ULong)
-> FT_Int;
}
extern "C" {
pub fn FT_Face_GetVariantSelectors(face: FT_Face) -> *mut FT_UInt32;
}
extern "C" {
pub fn FT_Face_GetVariantsOfChar(face: FT_Face, charcode: FT_ULong)
-> *mut FT_UInt32;
}
extern "C" {
pub fn FT_Face_GetCharsOfVariant(face: FT_Face, variantSelector: FT_ULong)
-> *mut FT_UInt32;
}
extern "C" {
pub fn FT_MulDiv(a: FT_Long, b: FT_Long, c: FT_Long) -> FT_Long;
}
extern "C" {
pub fn FT_MulFix(a: FT_Long, b: FT_Long) -> FT_Long;
}
extern "C" {
pub fn FT_DivFix(a: FT_Long, b: FT_Long) -> FT_Long;
}
extern "C" {
pub fn FT_RoundFix(a: FT_Fixed) -> FT_Fixed;
}
extern "C" {
pub fn FT_CeilFix(a: FT_Fixed) -> FT_Fixed;
}
extern "C" {
pub fn FT_FloorFix(a: FT_Fixed) -> FT_Fixed;
}
extern "C" {
pub fn FT_Vector_Transform(vec: *mut FT_Vector, matrix: *const FT_Matrix);
}
extern "C" {
pub fn FT_Library_Version(library: FT_Library, amajor: *mut FT_Int,
aminor: *mut FT_Int, apatch: *mut FT_Int);
}
extern "C" {
pub fn FT_Face_CheckTrueTypePatents(face: FT_Face) -> FT_Bool;
}
extern "C" {
pub fn FT_Face_SetUnpatentedHinting(face: FT_Face, value: FT_Bool)
-> FT_Bool;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_LcdFilter_ {
FT_LCD_FILTER_NONE = 0,
FT_LCD_FILTER_DEFAULT = 1,
FT_LCD_FILTER_LIGHT = 2,
FT_LCD_FILTER_LEGACY1 = 3,
FT_LCD_FILTER_LEGACY = 16,
FT_LCD_FILTER_MAX = 17,
}
pub use self::FT_LcdFilter_ as FT_LcdFilter;
extern "C" {
pub fn FT_Library_SetLcdFilter(library: FT_Library, filter: FT_LcdFilter)
-> FT_Error;
}
extern "C" {
pub fn FT_Library_SetLcdFilterWeights(library: FT_Library,
weights:
*mut ::std::os::raw::c_uchar)
-> FT_Error;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Sfnt_Tag_ {
FT_SFNT_HEAD = 0,
FT_SFNT_MAXP = 1,
FT_SFNT_OS2 = 2,
FT_SFNT_HHEA = 3,
FT_SFNT_VHEA = 4,
FT_SFNT_POST = 5,
FT_SFNT_PCLT = 6,
FT_SFNT_MAX = 7,
}
pub use self::FT_Sfnt_Tag_ as FT_Sfnt_Tag;
extern "C" {
pub fn FT_Get_Sfnt_Table(face: FT_Face, tag: FT_Sfnt_Tag)
-> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn FT_Load_Sfnt_Table(face: FT_Face, tag: FT_ULong, offset: FT_Long,
buffer: *mut FT_Byte, length: *mut FT_ULong)
-> FT_Error;
}
extern "C" {
pub fn FT_Sfnt_Table_Info(face: FT_Face, table_index: FT_UInt,
tag: *mut FT_ULong, length: *mut FT_ULong)
-> FT_Error;
}
extern "C" {
pub fn FT_Get_CMap_Language_ID(charmap: FT_CharMap) -> FT_ULong;
}
extern "C" {
pub fn FT_Get_CMap_Format(charmap: FT_CharMap) -> FT_Long;
}
pub type FT_Module_Interface = FT_Pointer;
pub type FT_Module_Constructor =
::std::option::Option<unsafe extern "C" fn(module: FT_Module)
-> FT_Error>;
pub type FT_Module_Destructor =
::std::option::Option<unsafe extern "C" fn(module: FT_Module)>;
pub type FT_Module_Requester =
::std::option::Option<unsafe extern "C" fn(module: FT_Module,
name:
*const ::std::os::raw::c_char)
-> FT_Module_Interface>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FT_Module_Class_ {
pub module_flags: FT_ULong,
pub module_size: FT_Long,
pub module_name: *const FT_String,
pub module_version: FT_Fixed,
pub module_requires: FT_Fixed,
pub module_interface: *const ::std::os::raw::c_void,
pub module_init: FT_Module_Constructor,
pub module_done: FT_Module_Destructor,
pub get_interface: FT_Module_Requester,
}
#[test]
fn bindgen_test_layout_FT_Module_Class_() {
assert_eq!(::std::mem::size_of::<FT_Module_Class_>() , 72usize , concat !
( "Size of: " , stringify ! ( FT_Module_Class_ ) ));
assert_eq! (::std::mem::align_of::<FT_Module_Class_>() , 8usize , concat !
( "Alignment of " , stringify ! ( FT_Module_Class_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_flags as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_flags ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_size as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_name as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_version as
* const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_version ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_requires as
* const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_requires ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_interface
as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_interface ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_init as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_init ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . module_done as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( module_done ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const FT_Module_Class_ ) ) . get_interface as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
"::" , stringify ! ( get_interface ) ));
}
impl Clone for FT_Module_Class_ {
fn clone(&self) -> Self { *self }
}
pub type FT_Module_Class = FT_Module_Class_;
extern "C" {
pub fn FT_Add_Module(library: FT_Library, clazz: *const FT_Module_Class)
-> FT_Error;
}
extern "C" {
pub fn FT_Get_Module(library: FT_Library,
module_name: *const ::std::os::raw::c_char)
-> FT_Module;
}
extern "C" {
pub fn FT_Remove_Module(library: FT_Library, module: FT_Module)
-> FT_Error;
}
extern "C" {
pub fn FT_Property_Set(library: FT_Library, module_name: *const FT_String,
property_name: *const FT_String,
value: *const ::std::os::raw::c_void) -> FT_Error;
}
extern "C" {
pub fn FT_Property_Get(library: FT_Library, module_name: *const FT_String,
property_name: *const FT_String,
value: *mut ::std::os::raw::c_void) -> FT_Error;
}
extern "C" {
pub fn FT_Reference_Library(library: FT_Library) -> FT_Error;
}
extern "C" {
pub fn FT_New_Library(memory: FT_Memory, alibrary: *mut FT_Library)
-> FT_Error;
}
extern "C" {
pub fn FT_Done_Library(library: FT_Library) -> FT_Error;
}
pub type FT_DebugHook_Func =
::std::option::Option<unsafe extern "C" fn(arg:
*mut ::std::os::raw::c_void)>;
extern "C" {
pub fn FT_Set_Debug_Hook(library: FT_Library, hook_index: FT_UInt,
debug_hook: FT_DebugHook_Func);
}
extern "C" {
pub fn FT_Add_Default_Modules(library: FT_Library);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_TrueTypeEngineType_ {
FT_TRUETYPE_ENGINE_TYPE_NONE = 0,
FT_TRUETYPE_ENGINE_TYPE_UNPATENTED = 1,
FT_TRUETYPE_ENGINE_TYPE_PATENTED = 2,
}
pub use self::FT_TrueTypeEngineType_ as FT_TrueTypeEngineType;
extern "C" {
pub fn FT_Get_TrueType_Engine_Type(library: FT_Library)
-> FT_TrueTypeEngineType;
}
extern "C" {
pub fn FT_Outline_Decompose(outline: *mut FT_Outline,
func_interface: *const FT_Outline_Funcs,
user: *mut ::std::os::raw::c_void)
-> FT_Error;
}
extern "C" {
pub fn FT_Outline_New(library: FT_Library, numPoints: FT_UInt,
numContours: FT_Int, anoutline: *mut FT_Outline)
-> FT_Error;
}
extern "C" {
pub fn FT_Outline_New_Internal(memory: FT_Memory, numPoints: FT_UInt,
numContours: FT_Int,
anoutline: *mut FT_Outline) -> FT_Error;
}
extern "C" {
pub fn FT_Outline_Done(library: FT_Library, outline: *mut FT_Outline)
-> FT_Error;
}
extern "C" {
pub fn FT_Outline_Done_Internal(memory: FT_Memory,
outline: *mut FT_Outline) -> FT_Error;
}
extern "C" {
pub fn FT_Outline_Check(outline: *mut FT_Outline) -> FT_Error;
}
extern "C" {
pub fn FT_Outline_Get_CBox(outline: *const FT_Outline,
acbox: *mut FT_BBox);
}
extern "C" {
pub fn FT_Outline_Translate(outline: *const FT_Outline, xOffset: FT_Pos,
yOffset: FT_Pos);
}
extern "C" {
pub fn FT_Outline_Copy(source: *const FT_Outline, target: *mut FT_Outline)
-> FT_Error;
}
extern "C" {
pub fn FT_Outline_Transform(outline: *const FT_Outline,
matrix: *const FT_Matrix);
}
extern "C" {
pub fn FT_Outline_Embolden(outline: *mut FT_Outline, strength: FT_Pos)
-> FT_Error;
}
extern "C" {
pub fn FT_Outline_EmboldenXY(outline: *mut FT_Outline, xstrength: FT_Pos,
ystrength: FT_Pos) -> FT_Error;
}
extern "C" {
pub fn FT_Outline_Reverse(outline: *mut FT_Outline);
}
extern "C" {
pub fn FT_Outline_Get_Bitmap(library: FT_Library,
outline: *mut FT_Outline,
abitmap: *const FT_Bitmap) -> FT_Error;
}
extern "C" {
pub fn FT_Outline_Render(library: FT_Library, outline: *mut FT_Outline,
params: *mut FT_Raster_Params) -> FT_Error;
}
pub const FT_Orientation__FT_ORIENTATION_FILL_RIGHT: FT_Orientation_ =
FT_Orientation_::FT_ORIENTATION_TRUETYPE;
pub const FT_Orientation__FT_ORIENTATION_FILL_LEFT: FT_Orientation_ =
FT_Orientation_::FT_ORIENTATION_POSTSCRIPT;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FT_Orientation_ {
FT_ORIENTATION_TRUETYPE = 0,
FT_ORIENTATION_POSTSCRIPT = 1,
FT_ORIENTATION_NONE = 2,
}
pub use self::FT_Orientation_ as FT_Orientation;
extern "C" {
pub fn FT_Outline_Get_Orientation(outline: *mut FT_Outline)
-> FT_Orientation;
}