* include/freetype/internal/psglobals.h (removed), include/freetype/internal/pshints.h, src/pshinter/pshglob.h: removing obsolete file * include/freetype/internal/tttypes.h, include/freetype/internal/sfnt.h, src/base/ftnames.c, src/cff/cffdrivr.c, src/sfnt/*.c, src/truetype/*.c: updated SFNT/TrueType type definitions
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 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679
diff --git a/ChangeLog b/ChangeLog
index d6ed1d5..6d7c6f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,7 +40,17 @@
src/psaux/psobjs.c, src/psaux/psobjs.h, src/psaux/t1decode.c,
stc/type1/t1load.c, src/type1/t1tokens.h: updated common Postscript
type definitions
-
+
+ * include/freetype/internal/psglobals.h (removed),
+ include/freetype/internal/pshints.h,
+ src/pshinter/pshglob.h: removing obsolete file
+
+ * include/freetype/internal/tttypes.h,
+ include/freetype/internal/sfnt.h,
+ src/base/ftnames.c, src/cff/cffdrivr.c,
+ src/sfnt/*.c, src/truetype/*.c: updated SFNT/TrueType type
+ definitions
+
2002-03-13 Antoine Leca <antoine@oriolnet.com>
diff --git a/include/freetype/internal/pshints.h b/include/freetype/internal/pshints.h
index edec32d..a078fa1 100644
--- a/include/freetype/internal/pshints.h
+++ b/include/freetype/internal/pshints.h
@@ -25,7 +25,6 @@
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_TYPE1_TABLES_H
-#include FT_INTERNAL_POSTSCRIPT_GLOBALS_H
FT_BEGIN_HEADER
diff --git a/include/freetype/internal/sfnt.h b/include/freetype/internal/sfnt.h
index b637c2d..e6fab95 100644
--- a/include/freetype/internal/sfnt.h
+++ b/include/freetype/internal/sfnt.h
@@ -133,7 +133,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <FuncType> */
- /* TT_Load_SFNT_Header_Func */
+ /* TT_Load_SFNT_HeaderRec_Func */
/* */
/* <Description> */
/* Loads the header of a SFNT font file. Supports collections. */
@@ -162,10 +162,10 @@ FT_BEGIN_HEADER
/* values of `search_range', `entry_selector', and `range_shift'. */
/* */
typedef FT_Error
- (*TT_Load_SFNT_Header_Func)( TT_Face face,
+ (*TT_Load_SFNT_HeaderRec_Func)( TT_Face face,
FT_Stream stream,
FT_Long face_index,
- SFNT_Header* sfnt );
+ SFNT_Header sfnt );
/*************************************************************************/
@@ -194,7 +194,7 @@ FT_BEGIN_HEADER
typedef FT_Error
(*TT_Load_Directory_Func)( TT_Face face,
FT_Stream stream,
- SFNT_Header* sfnt );
+ SFNT_Header sfnt );
/*************************************************************************/
@@ -284,7 +284,7 @@ FT_BEGIN_HEADER
FT_UInt load_flags,
FT_Stream stream,
FT_Bitmap *amap,
- TT_SBit_Metrics *ametrics );
+ TT_SBit_MetricsRec *ametrics );
/*************************************************************************/
@@ -392,7 +392,7 @@ FT_BEGIN_HEADER
/* */
typedef FT_Error
(*TT_CharMap_Load_Func)( TT_Face face,
- TT_CMapTable* cmap,
+ TT_CMapTable cmap,
FT_Stream input );
@@ -414,7 +414,7 @@ FT_BEGIN_HEADER
/* */
typedef FT_Error
(*TT_CharMap_Free_Func)( TT_Face face,
- TT_CMapTable* cmap );
+ TT_CMapTable cmap );
/*************************************************************************/
@@ -479,7 +479,7 @@ FT_BEGIN_HEADER
SFNT_Get_Interface_Func get_interface;
TT_Load_Any_Func load_any;
- TT_Load_SFNT_Header_Func load_sfnt_header;
+ TT_Load_SFNT_HeaderRec_Func load_sfnt_header;
TT_Load_Directory_Func load_directory;
/* these functions are called by `load_face' but they can also */
diff --git a/include/freetype/internal/tttypes.h b/include/freetype/internal/tttypes.h
index 5cab5ff..5d5bc67 100644
--- a/include/freetype/internal/tttypes.h
+++ b/include/freetype/internal/tttypes.h
@@ -45,7 +45,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Struct> */
- /* TTC_Header */
+ /* TTC_HeaderRec */
/* */
/* <Description> */
/* TrueType collection header. This table contains the offsets of */
@@ -63,20 +63,20 @@ FT_BEGIN_HEADER
/* */
/* offsets :: The offsets of the font headers, one per face. */
/* */
- typedef struct TTC_Header_
+ typedef struct TTC_HeaderRec_
{
FT_ULong tag;
FT_Fixed version;
FT_Long count;
FT_ULong* offsets;
- } TTC_Header;
+ } TTC_HeaderRec;
/*************************************************************************/
/* */
/* <Struct> */
- /* SFNT_Header */
+ /* SFNT_HeaderRec */
/* */
/* <Description> */
/* SFNT file format header. */
@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
/* */
/* range_shift :: Must be num_tables*16 - search_range. */
/* */
- typedef struct SFNT_Header_
+ typedef struct SFNT_HeaderRec_
{
FT_ULong format_tag;
FT_UShort num_tables;
@@ -100,13 +100,13 @@ FT_BEGIN_HEADER
FT_UShort entry_selector;
FT_UShort range_shift;
- } SFNT_Header;
+ } SFNT_HeaderRec, *SFNT_Header;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_TableDir */
+ /* TT_TableDirRec */
/* */
/* <Description> */
/* This structure models a TrueType table directory. It is used to */
@@ -126,7 +126,7 @@ FT_BEGIN_HEADER
/* <Note> */
/* This structure is only used during font opening. */
/* */
- typedef struct TT_TableDir_
+ typedef struct TT_TableDirRec_
{
FT_Fixed version; /* should be 0x10000 */
FT_UShort numTables; /* number of tables */
@@ -135,13 +135,13 @@ FT_BEGIN_HEADER
FT_UShort entrySelector; /* for a dichotomy search in the */
FT_UShort rangeShift; /* directory. We ignore them. */
- } TT_TableDir;
+ } TT_TableDirRec;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_Table */
+ /* TT_TableRec */
/* */
/* <Description> */
/* This structure describes a given table of a TrueType font. */
@@ -156,20 +156,20 @@ FT_BEGIN_HEADER
/* */
/* Length :: The table length (in bytes). */
/* */
- typedef struct TT_Table_
+ typedef struct TT_TableRec_
{
FT_ULong Tag; /* table type */
FT_ULong CheckSum; /* table checksum */
FT_ULong Offset; /* table file offset */
FT_ULong Length; /* table length */
- } TT_Table;
+ } TT_TableRec, *TT_Table;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_CMapDir */
+ /* TT_CMapDirRec */
/* */
/* <Description> */
/* This structure describes the directory of the `cmap' table, */
@@ -183,18 +183,18 @@ FT_BEGIN_HEADER
/* <Note> */
/* This structure is only used during font loading. */
/* */
- typedef struct TT_CMapDir_
+ typedef struct TT_CMapDirRec_
{
FT_UShort tableVersionNumber;
FT_UShort numCMaps;
- } TT_CMapDir;
+ } TT_CMapDirRec, *TT_CMapDir;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_CMapDirEntry */
+ /* TT_CMapDirEntryRec */
/* */
/* <Description> */
/* This structure describes a charmap in a TrueType font. */
@@ -212,19 +212,19 @@ FT_BEGIN_HEADER
/* <Note> */
/* This structure is only used during font loading. */
/* */
- typedef struct TT_CMapDirEntry_
+ typedef struct TT_CMapDirEntryRec_
{
FT_UShort platformID;
FT_UShort platformEncodingID;
FT_Long offset;
- } TT_CMapDirEntry;
+ } TT_CMapDirEntryRec, *TT_CMapDirEntry;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_LongMetrics */
+ /* TT_LongMetricsRec */
/* */
/* <Description> */
/* A structure modeling the long metrics of the `hmtx' and `vmtx' */
@@ -235,12 +235,12 @@ FT_BEGIN_HEADER
/* */
/* bearing :: The left-side or top-side bearing for the glyph. */
/* */
- typedef struct TT_LongMetrics_
+ typedef struct TT_LongMetricsRec_
{
FT_UShort advance;
FT_Short bearing;
- } TT_LongMetrics;
+ } TT_LongMetricsRec, *TT_LongMetrics;
/*************************************************************************/
@@ -257,7 +257,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_NameRec */
+ /* TT_NameEntryRec */
/* */
/* <Description> */
/* A structure modeling TrueType name records. Name records are used */
@@ -281,7 +281,7 @@ FT_BEGIN_HEADER
/* string :: A pointer to the string's bytes. Note that these */
/* are usually UTF-16 encoded characters. */
/* */
- typedef struct TT_NameRec_
+ typedef struct TT_NameEntryRec_
{
FT_UShort platformID;
FT_UShort encodingID;
@@ -295,13 +295,13 @@ FT_BEGIN_HEADER
FT_Byte* string;
- } TT_NameRec;
+ } TT_NameEntryRec, *TT_NameEntry;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_NameTable */
+ /* TT_NameTableRec */
/* */
/* <Description> */
/* A structure modeling the TrueType name table. */
@@ -318,15 +318,15 @@ FT_BEGIN_HEADER
/* */
/* storage :: The names storage area. */
/* */
- typedef struct TT_NameTable_
+ typedef struct TT_NameTableRec_
{
- FT_UShort format;
- FT_UShort numNameRecords;
- FT_UShort storageOffset;
- TT_NameRec* names;
- FT_Byte* storage;
+ FT_UShort format;
+ FT_UShort numNameRecords;
+ FT_UShort storageOffset;
+ TT_NameEntryRec* names;
+ FT_Byte* storage;
- } TT_NameTable;
+ } TT_NameTableRec, *TT_NameTable;
/*************************************************************************/
@@ -345,7 +345,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_GaspRange */
+ /* TT_GaspRangeRec */
/* */
/* <Description> */
/* A tiny structure used to model a gasp range according to the */
@@ -357,12 +357,12 @@ FT_BEGIN_HEADER
/* gaspFlag :: A flag describing the grid-fitting and anti-aliasing */
/* modes to be used. */
/* */
- typedef struct TT_GaspRange_
+ typedef struct TT_GaspRangeRec_
{
FT_UShort maxPPEM;
FT_UShort gaspFlag;
- } TT_GaspRange;
+ } TT_GaspRangeRec, *TT_GaspRange;
#define TT_GASP_GRIDFIT 0x01
@@ -372,7 +372,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_Gasp */
+ /* TT_GaspRec */
/* */
/* <Description> */
/* A structure modeling the TrueType `gasp' table used to specify */
@@ -389,15 +389,15 @@ FT_BEGIN_HEADER
{
FT_UShort version;
FT_UShort numRanges;
- TT_GaspRange* gaspRanges;
+ TT_GaspRange gaspRanges;
- } TT_Gasp;
+ } TT_GaspRec;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_HdmxRec */
+ /* TT_HdmxEntryRec */
/* */
/* <Description> */
/* A small structure used to model the pre-computed widths of a given */
@@ -410,19 +410,19 @@ FT_BEGIN_HEADER
/* */
/* widths :: An array of widths. Note: These are 8-bit bytes. */
/* */
- typedef struct TT_HdmxRec_
+ typedef struct TT_HdmxEntryRec_
{
FT_Byte ppem;
FT_Byte max_width;
FT_Byte* widths;
- } TT_HdmxRec;
+ } TT_HdmxEntryRec, *TT_HdmxEntry;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_Hdmx */
+ /* TT_HdmxRec */
/* */
/* <Description> */
/* A structure used to model the `hdmx' table, which contains */
@@ -435,19 +435,19 @@ FT_BEGIN_HEADER
/* */
/* records :: An array of hdmx records. */
/* */
- typedef struct TT_Hdmx_
+ typedef struct TT_HdmxRec_
{
- FT_UShort version;
- FT_Short num_records;
- TT_HdmxRec* records;
+ FT_UShort version;
+ FT_Short num_records;
+ TT_HdmxEntry records;
- } TT_Hdmx;
+ } TT_HdmxRec, *TT_Hdmx;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_Kern_0_Pair */
+ /* TT_Kern0_PairRec */
/* */
/* <Description> */
/* A structure used to model a kerning pair for the kerning table */
@@ -462,13 +462,13 @@ FT_BEGIN_HEADER
/* value :: The kerning distance. A positive value spaces the */
/* glyphs, a negative one makes them closer. */
/* */
- typedef struct TT_Kern_0_Pair_
+ typedef struct TT_Kern0_PairRec_
{
FT_UShort left; /* index of left glyph in pair */
FT_UShort right; /* index of right glyph in pair */
FT_FWord value; /* kerning value */
- } TT_Kern_0_Pair;
+ } TT_Kern0_PairRec, *TT_Kern0_Pair;
/*************************************************************************/
@@ -487,7 +487,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_SBit_Metrics */
+ /* TT_SBit_MetricsRec */
/* */
/* <Description> */
/* A structure used to hold the big metrics of a given glyph bitmap */
@@ -511,7 +511,7 @@ FT_BEGIN_HEADER
/* */
/* vertAdvance :: The vertical advance. */
/* */
- typedef struct TT_SBit_Metrics_
+ typedef struct TT_SBit_MetricsRec_
{
FT_Byte height;
FT_Byte width;
@@ -524,13 +524,13 @@ FT_BEGIN_HEADER
FT_Char vertBearingY;
FT_Byte vertAdvance;
- } TT_SBit_Metrics;
+ } TT_SBit_MetricsRec, *TT_SBit_Metrics;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_SBit_Small_Metrics */
+ /* TT_SBit_SmallMetricsRec */
/* */
/* <Description> */
/* A structure used to hold the small metrics of a given glyph bitmap */
@@ -557,13 +557,13 @@ FT_BEGIN_HEADER
FT_Char bearingY;
FT_Byte advance;
- } TT_SBit_Small_Metrics;
+ } TT_SBit_SmallMetricsRec, *TT_SBit_SmallMetrics;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_SBit_Line_Metrics */
+ /* TT_SBit_LineMetricsRec */
/* */
/* <Description> */
/* A structure used to describe the text line metrics of a given */
@@ -611,7 +611,7 @@ FT_BEGIN_HEADER
/* pads :: Unused (to make the size of the record */
/* a multiple of 32 bits. */
/* */
- typedef struct TT_SBit_Line_Metrics_
+ typedef struct TT_SBit_LineMetricsRec_
{
FT_Char ascender;
FT_Char descender;
@@ -625,13 +625,13 @@ FT_BEGIN_HEADER
FT_Char min_after_BL;
FT_Char pads[2];
- } TT_SBit_Line_Metrics;
+ } TT_SBit_LineMetricsRec, *TT_SBit_LineMetrics;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_SBit_Range */
+ /* TT_SBit_RangeRec */
/* */
/* <Description> */
/* A TrueType/OpenType subIndexTable as defined in the `EBLC' */
@@ -665,7 +665,7 @@ FT_BEGIN_HEADER
/* table_offset :: The offset of the index table in the `EBLC' */
/* table. Only used during strike loading. */
/* */
- typedef struct TT_SBit_Range
+ typedef struct TT_SBit_RangeRec
{
FT_UShort first_glyph;
FT_UShort last_glyph;
@@ -675,7 +675,7 @@ FT_BEGIN_HEADER
FT_ULong image_offset;
FT_ULong image_size;
- TT_SBit_Metrics metrics;
+ TT_SBit_MetricsRec metrics;
FT_ULong num_glyphs;
FT_ULong* glyph_offsets;
@@ -683,13 +683,13 @@ FT_BEGIN_HEADER
FT_ULong table_offset;
- } TT_SBit_Range;
+ } TT_SBit_RangeRec, *TT_SBit_Range;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_SBit_Strike */
+ /* TT_SBit_StrikeRec */
/* */
/* <Description> */
/* A structure used describe a given bitmap strike in the `EBLC' */
@@ -729,33 +729,33 @@ FT_BEGIN_HEADER
/* http://fonts.apple.com/ */
/* TTRefMan/RM06/Chap6bloc.html */
/* */
- typedef struct TT_SBit_Strike_
+ typedef struct TT_SBit_StrikeRec_
{
- FT_Int num_ranges;
- TT_SBit_Range* sbit_ranges;
- FT_ULong ranges_offset;
+ FT_Int num_ranges;
+ TT_SBit_Range sbit_ranges;
+ FT_ULong ranges_offset;
- FT_ULong color_ref;
+ FT_ULong color_ref;
- TT_SBit_Line_Metrics hori;
- TT_SBit_Line_Metrics vert;
+ TT_SBit_LineMetricsRec hori;
+ TT_SBit_LineMetricsRec vert;
- FT_UShort start_glyph;
- FT_UShort end_glyph;
+ FT_UShort start_glyph;
+ FT_UShort end_glyph;
- FT_Byte x_ppem;
- FT_Byte y_ppem;
+ FT_Byte x_ppem;
+ FT_Byte y_ppem;
- FT_Byte bit_depth;
- FT_Char flags;
+ FT_Byte bit_depth;
+ FT_Char flags;
- } TT_SBit_Strike;
+ } TT_SBit_StrikeRec, *TT_SBit_Strike;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_SBit_Component */
+ /* TT_SBit_ComponentRec */
/* */
/* <Description> */
/* A simple structure to describe a compound sbit element. */
@@ -767,19 +767,19 @@ FT_BEGIN_HEADER
/* */
/* y_offset :: The element's top bearing. */
/* */
- typedef struct TT_SBit_Component_
+ typedef struct TT_SBit_ComponentRec_
{
FT_UShort glyph_code;
FT_Char x_offset;
FT_Char y_offset;
- } TT_SBit_Component;
+ } TT_SBit_ComponentRec, *TT_SBit_Component;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_SBit_Scale */
+ /* TT_SBit_ScaleRec */
/* */
/* <Description> */
/* A structure used describe a given bitmap scaling table, as defined */
@@ -798,10 +798,10 @@ FT_BEGIN_HEADER
/* */
/* y_ppem_substitute :: Substitution y_ppem value. */
/* */
- typedef struct TT_SBit_Scale_
+ typedef struct TT_SBit_ScaleRec_
{
- TT_SBit_Line_Metrics hori;
- TT_SBit_Line_Metrics vert;
+ TT_SBit_LineMetricsRec hori;
+ TT_SBit_LineMetricsRec vert;
FT_Byte x_ppem;
FT_Byte y_ppem;
@@ -809,7 +809,7 @@ FT_BEGIN_HEADER
FT_Byte x_ppem_substitute;
FT_Byte y_ppem_substitute;
- } TT_SBit_Scale;
+ } TT_SBit_ScaleRec, *TT_SBit_Scale;
/*************************************************************************/
@@ -828,7 +828,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_Post_20 */
+ /* TT_Post_20Rec */
/* */
/* <Description> */
/* Postscript names sub-table, format 2.0. Stores the PS name of */
@@ -843,20 +843,20 @@ FT_BEGIN_HEADER
/* */
/* glyph_names :: The PS names not in Mac Encoding. */
/* */
- typedef struct TT_Post_20_
+ typedef struct TT_Post_20Rec_
{
FT_UShort num_glyphs;
FT_UShort num_names;
FT_UShort* glyph_indices;
FT_Char** glyph_names;
- } TT_Post_20;
+ } TT_Post_20Rec, *TT_Post_20;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_Post_25 */
+ /* TT_Post_25Rec */
/* */
/* <Description> */
/* Postscript names sub-table, format 2.5. Stores the PS name of */
@@ -873,13 +873,13 @@ FT_BEGIN_HEADER
FT_UShort num_glyphs;
FT_Char* offsets;
- } TT_Post_25;
+ } TT_Post_25Rec, *TT_Post_25;
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_Post_Names */
+ /* TT_Post_NamesRec */
/* */
/* <Description> */
/* Postscript names table, either format 2.0 or 2.5. */
@@ -891,18 +891,18 @@ FT_BEGIN_HEADER
/* */
/* format_25 :: The sub-table used for format 2.5. */
/* */
- typedef struct TT_Post_Names_
+ typedef struct TT_Post_NamesRec_
{
FT_Bool loaded;
union
{
- TT_Post_20 format_20;
- TT_Post_25 format_25;
+ TT_Post_20Rec format_20;
+ TT_Post_25Rec format_25;
} names;
- } TT_Post_Names;
+ } TT_Post_NamesRec, *TT_Post_Names;
/*************************************************************************/
@@ -926,22 +926,22 @@ FT_BEGIN_HEADER
FT_Byte* glyphIdArray;
- } TT_CMap0;
+ } TT_CMap0Rec, *TT_CMap0;
/* format 2 */
- typedef struct TT_CMap2SubHeader_
+ typedef struct TT_CMap2SubHeaderRec_
{
FT_UShort firstCode; /* first valid low byte */
FT_UShort entryCount; /* number of valid low bytes */
FT_Short idDelta; /* delta value to glyphIndex */
FT_UShort idRangeOffset; /* offset from here to 1st code */
- } TT_CMap2SubHeader;
+ } TT_CMap2SubHeaderRec, *TT_CMap2SubHeader;
- typedef struct TT_CMap2_
+ typedef struct TT_CMap2Rec_
{
FT_ULong language; /* for Mac fonts (originally ushort) */
@@ -949,11 +949,11 @@ FT_BEGIN_HEADER
/* high byte mapping table */
/* value = subHeader index * 8 */
- TT_CMap2SubHeader* subHeaders;
+ TT_CMap2SubHeader subHeaders;
FT_UShort* glyphIdArray;
FT_UShort numGlyphId; /* control value */
- } TT_CMap2;
+ } TT_CMap2Rec, *TT_CMap2;
/* format 4 */
@@ -965,10 +965,10 @@ FT_BEGIN_HEADER
FT_Short idDelta;
FT_UShort idRangeOffset;
- } TT_CMap4Segment;
+ } TT_CMap4SegmentRec, *TT_CMap4Segment;
- typedef struct TT_CMap4_
+ typedef struct TT_CMap4Rec_
{
FT_ULong language; /* for Mac fonts (originally ushort) */
@@ -977,13 +977,13 @@ FT_BEGIN_HEADER
FT_UShort entrySelector; /* for a binary search */
FT_UShort rangeShift;
- TT_CMap4Segment* segments;
+ TT_CMap4Segment segments;
FT_UShort* glyphIdArray;
FT_UShort numGlyphId; /* control value */
- TT_CMap4Segment* last_segment; /* last used segment; this is a small */
+ TT_CMap4Segment last_segment; /* last used segment; this is a small */
/* cache to potentially increase speed */
- } TT_CMap4;
+ } TT_CMap4Rec, *TT_CMap4;
/* format 6 */
@@ -997,18 +997,18 @@ FT_BEGIN_HEADER
FT_UShort* glyphIdArray;
- } TT_CMap6;
+ } TT_CMap6Rec, *TT_CMap6;
/* auxiliary table for format 8 and 12 */
- typedef struct TT_CMapGroup_
+ typedef struct TT_CMapGroupRec_
{
FT_ULong startCharCode;
FT_ULong endCharCode;
FT_ULong startGlyphID;
- } TT_CMapGroup;
+ } TT_CMapGroupRec, *TT_CMapGroup;
/* FreeType handles format 8 and 12 identically. It is not necessary to
@@ -1016,21 +1016,21 @@ FT_BEGIN_HEADER
for input character codes -- converting Unicode surrogates to 32bit
character codes must be done by the application. */
- typedef struct TT_CMap8_12_
+ typedef struct TT_CMap8_12Rec_
{
FT_ULong language; /* for Mac fonts */
FT_ULong nGroups;
- TT_CMapGroup* groups;
+ TT_CMapGroup groups;
- TT_CMapGroup* last_group; /* last used group; this is a small */
+ TT_CMapGroup last_group; /* last used group; this is a small */
/* cache to potentially increase speed */
- } TT_CMap8_12;
+ } TT_CMap8_12Rec, *TT_CMap8_12;
/* format 10 */
- typedef struct TT_CMap10_
+ typedef struct TT_CMap10Rec_
{
FT_ULong language; /* for Mac fonts */
@@ -1039,23 +1039,23 @@ FT_BEGIN_HEADER
FT_UShort* glyphs;
- } TT_CMap10;
+ } TT_CMap10Rec, *TT_CMap10;
- typedef struct TT_CMapTable_ TT_CMapTable;
+ typedef struct TT_CMapTableRec_* TT_CMapTable;
typedef FT_UInt
- (*TT_CharMap_Func)( TT_CMapTable* charmap,
+ (*TT_CharMap_Func)( TT_CMapTable charmap,
FT_ULong char_code );
typedef FT_ULong
- (*TT_CharNext_Func)( TT_CMapTable* charmap,
+ (*TT_CharNext_Func)( TT_CMapTable charmap,
FT_ULong char_code );
/* charmap table */
- struct TT_CMapTable_
+ typedef struct TT_CMapTableRec_
{
FT_UShort platformID;
FT_UShort platformEncodingID;
@@ -1067,17 +1067,18 @@ FT_BEGIN_HEADER
union
{
- TT_CMap0 cmap0;
- TT_CMap2 cmap2;
- TT_CMap4 cmap4;
- TT_CMap6 cmap6;
- TT_CMap8_12 cmap8_12;
- TT_CMap10 cmap10;
+ TT_CMap0Rec cmap0;
+ TT_CMap2Rec cmap2;
+ TT_CMap4Rec cmap4;
+ TT_CMap6Rec cmap6;
+ TT_CMap8_12Rec cmap8_12;
+ TT_CMap10Rec cmap10;
} c;
TT_CharMap_Func get_index;
TT_CharNext_Func get_next_char;
- };
+
+ } TT_CMapTableRec;
/*************************************************************************/
@@ -1095,8 +1096,8 @@ FT_BEGIN_HEADER
/* */
typedef struct TT_CharMapRec_
{
- FT_CharMapRec root;
- TT_CMapTable cmap;
+ FT_CharMapRec root;
+ TT_CMapTableRec cmap;
} TT_CharMapRec;
@@ -1161,7 +1162,7 @@ FT_BEGIN_HEADER
(*TT_Interpreter)( void* exec_context );
/* forward declaration */
- typedef struct TT_Loader_ TT_Loader;
+ typedef struct TT_LoaderRec_* TT_Loader;
/*************************************************************************/
@@ -1199,7 +1200,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <FuncType> */
- /* TT_Access_Glyph_Frame_Func */
+ /* TT_Loader_StartGlyphFunc */
/* */
/* <Description> */
/* Seeks a stream to the start of a given glyph element, and opens a */
@@ -1225,7 +1226,7 @@ FT_BEGIN_HEADER
/* different. */
/* */
typedef FT_Error
- (*TT_Access_Glyph_Frame_Func)( TT_Loader* loader,
+ (*TT_Loader_StartGlyphFunc)( TT_Loader loader,
FT_UInt glyph_index,
FT_ULong offset,
FT_UInt byte_count );
@@ -1234,7 +1235,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <FuncType> */
- /* TT_Load_Glyph_Element_Func */
+ /* TT_Loader_ReadGlyphFunc */
/* */
/* <Description> */
/* Reads one glyph element (its header, a simple glyph, or a */
@@ -1247,13 +1248,13 @@ FT_BEGIN_HEADER
/* FreeType error code. 0 means success. */
/* */
typedef FT_Error
- (*TT_Load_Glyph_Element_Func)( TT_Loader* loader );
+ (*TT_Loader_ReadGlyphFunc)( TT_Loader loader );
/*************************************************************************/
/* */
/* <FuncType> */
- /* TT_Forget_Glyph_Frame_Func */
+ /* TT_Loader_EndGlyphFunc */
/* */
/* <Description> */
/* Closes the current loader stream frame for the glyph. */
@@ -1262,7 +1263,7 @@ FT_BEGIN_HEADER
/* loader :: The current TrueType glyph loader object. */
/* */
typedef void
- (*TT_Forget_Glyph_Frame_Func)( TT_Loader* loader );
+ (*TT_Loader_EndGlyphFunc)( TT_Loader loader );
@@ -1452,11 +1453,11 @@ FT_BEGIN_HEADER
{
FT_FaceRec root;
- TTC_Header ttc_header;
+ TTC_HeaderRec ttc_header;
FT_ULong format_tag;
FT_UShort num_tables;
- TT_Table* dir_tables;
+ TT_Table dir_tables;
TT_Header header; /* TrueType header table */
TT_HoriHeader horizontal; /* TrueType horizontal header */
@@ -1468,7 +1469,7 @@ FT_BEGIN_HEADER
TT_VertHeader vertical; /* TT Vertical header, if present */
FT_UShort num_names; /* number of name records */
- TT_NameTable name_table; /* name table */
+ TT_NameTableRec name_table; /* name table */
TT_OS2 os2; /* TrueType OS/2 table */
TT_Postscript postscript; /* TrueType Postscript table */
@@ -1487,11 +1488,11 @@ FT_BEGIN_HEADER
TT_Goto_Table_Func goto_table;
- TT_Access_Glyph_Frame_Func access_glyph_frame;
- TT_Load_Glyph_Element_Func read_glyph_header;
- TT_Load_Glyph_Element_Func read_simple_glyph;
- TT_Load_Glyph_Element_Func read_composite_glyph;
- TT_Forget_Glyph_Frame_Func forget_glyph_frame;
+ TT_Loader_StartGlyphFunc access_glyph_frame;
+ TT_Loader_EndGlyphFunc forget_glyph_frame;
+ TT_Loader_ReadGlyphFunc read_glyph_header;
+ TT_Loader_ReadGlyphFunc read_simple_glyph;
+ TT_Loader_ReadGlyphFunc read_composite_glyph;
/* a typeless pointer to the SFNT_Interface table used to load */
/* the basic TrueType tables in the face object */
@@ -1508,23 +1509,23 @@ FT_BEGIN_HEADER
/***********************************************************************/
/* horizontal device metrics */
- TT_Hdmx hdmx;
+ TT_HdmxRec hdmx;
/* grid-fitting and scaling table */
- TT_Gasp gasp; /* the `gasp' table */
+ TT_GaspRec gasp; /* the `gasp' table */
/* PCL 5 table */
TT_PCLT pclt;
/* embedded bitmaps support */
FT_Int num_sbit_strikes;
- TT_SBit_Strike* sbit_strikes;
+ TT_SBit_Strike sbit_strikes;
FT_Int num_sbit_scales;
- TT_SBit_Scale* sbit_scales;
+ TT_SBit_Scale sbit_scales;
/* postscript names table */
- TT_Post_Names postscript_names;
+ TT_Post_NamesRec postscript_names;
/***********************************************************************/
@@ -1552,7 +1553,7 @@ FT_BEGIN_HEADER
/* the format 0 kerning table, if any */
FT_Int num_kern_pairs;
FT_Int kern_table_index;
- TT_Kern_0_Pair* kern_pairs;
+ TT_Kern0_Pair kern_pairs;
/* A pointer to the bytecode interpreter to use. This is also */
/* used to hook the debugger for the `ttdebug' utility. */
@@ -1566,7 +1567,7 @@ FT_BEGIN_HEADER
/* */
/***********************************************************************/
- FT_Generic extra;
+ FT_Generic extra;
} TT_FaceRec;
@@ -1574,7 +1575,7 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Struct> */
- /* TT_GlyphZone */
+ /* TT_GlyphZoneRec */
/* */
/* <Description> */
/* A glyph zone is used to load, scale and hint glyph outline */
@@ -1600,7 +1601,7 @@ FT_BEGIN_HEADER
/* */
/* contours :: The contours end points. */
/* */
- typedef struct TT_GlyphZone_
+ typedef struct TT_GlyphZoneRec_
{
FT_Memory memory;
FT_UShort max_points;
@@ -1614,14 +1615,14 @@ FT_BEGIN_HEADER
FT_Byte* tags; /* current touch flags */
FT_UShort* contours; /* contour end points */
- } TT_GlyphZone;
+ } TT_GlyphZoneRec, *TT_GlyphZone;
/* handle to execution context */
typedef struct TT_ExecContextRec_* TT_ExecContext;
/* glyph loader structure */
- struct TT_Loader_
+ typedef struct TT_LoaderRec_
{
FT_Face face;
FT_Size size;
@@ -1647,8 +1648,8 @@ FT_BEGIN_HEADER
FT_ULong glyf_offset;
/* the zone where we load our glyphs */
- TT_GlyphZone base;
- TT_GlyphZone zone;
+ TT_GlyphZoneRec base;
+ TT_GlyphZoneRec zone;
TT_ExecContext exec;
FT_Byte* instructions;
@@ -1656,7 +1657,8 @@ FT_BEGIN_HEADER
/* for possible extensibility in other formats */
void* other;
- };
+
+ } TT_LoaderRec;
FT_END_HEADER
diff --git a/src/base/ftnames.c b/src/base/ftnames.c
index 43c6cf1..0b77cca 100644
--- a/src/base/ftnames.c
+++ b/src/base/ftnames.c
@@ -53,7 +53,7 @@
if ( idx < (FT_UInt)ttface->num_names )
{
- TT_NameRec* name = ttface->name_table.names + idx;
+ TT_NameEntryRec* name = ttface->name_table.names + idx;
aname->platform_id = name->platformID;
diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c
index 77b9d81..5082cd4 100644
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -97,7 +97,7 @@
FT_UInt right_glyph,
FT_Vector* kerning )
{
- TT_Kern_0_Pair* pair;
+ TT_Kern0_Pair pair;
if ( !face )
@@ -295,7 +295,7 @@
{
FT_Error error;
CFF_Face face;
- TT_CMapTable* cmap;
+ TT_CMapTable cmap;
cmap = &charmap->cmap;
@@ -339,7 +339,7 @@
{
FT_Error error;
CFF_Face face;
- TT_CMapTable* cmap;
+ TT_CMapTable cmap;
cmap = &charmap->cmap;
diff --git a/src/pshinter/pshglob.h b/src/pshinter/pshglob.h
index 0c666b7..bdb5e12 100644
--- a/src/pshinter/pshglob.h
+++ b/src/pshinter/pshglob.h
@@ -21,7 +21,6 @@
#include FT_FREETYPE_H
-#include FT_INTERNAL_POSTSCRIPT_GLOBALS_H
#include FT_INTERNAL_POSTSCRIPT_HINTS_H
diff --git a/src/sfnt/sfdriver.c b/src/sfnt/sfdriver.c
index af92ed2..b8b07c3 100644
--- a/src/sfnt/sfdriver.c
+++ b/src/sfnt/sfdriver.c
@@ -128,7 +128,7 @@
for ( n = 0; n < face->num_names; n++ )
{
- TT_NameRec* name = face->name_table.names + n;
+ TT_NameEntryRec* name = face->name_table.names + n;
if ( name->nameID == 6 && name->string != NULL )
@@ -148,7 +148,7 @@
if ( found_win )
{
FT_Memory memory = face->root.memory;
- TT_NameRec* name = face->name_table.names + found_win;
+ TT_NameEntryRec* name = face->name_table.names + found_win;
FT_UInt len = name->stringLength/2;
FT_Error error;
FT_String* result;
@@ -171,7 +171,7 @@
if ( found_apple )
{
FT_Memory memory = face->root.memory;
- TT_NameRec* name = face->name_table.names + found_win;
+ TT_NameEntryRec* name = face->name_table.names + found_win;
FT_UInt len = name->stringLength;
FT_Error error;
FT_String* result;
@@ -223,7 +223,7 @@
SFNT_Get_Interface,
TT_Load_Any,
- TT_Load_SFNT_Header,
+ TT_Load_SFNT_HeaderRec,
TT_Load_Directory,
TT_Load_Header,
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 03db182..82dfb3d 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -59,7 +59,7 @@
{
FT_Memory memory = face->root.memory;
FT_UShort n;
- TT_NameRec* rec;
+ TT_NameEntryRec* rec;
FT_Bool wide_chars = 1;
FT_Int found_apple = -1;
FT_Int found_win = -1;
@@ -215,7 +215,7 @@
FT_Error error;
FT_Library library = face->root.driver->root.library;
SFNT_Service sfnt;
- SFNT_Header sfnt_header;
+ SFNT_HeaderRec sfnt_header;
/* for now, parameters are unused */
FT_UNUSED( num_params );
diff --git a/src/sfnt/ttcmap.c b/src/sfnt/ttcmap.c
index 8bb3aea..aed6ca5 100644
--- a/src/sfnt/ttcmap.c
+++ b/src/sfnt/ttcmap.c
@@ -35,51 +35,51 @@
FT_CALLBACK_DEF( FT_UInt )
- code_to_index0( TT_CMapTable* charmap,
+ code_to_index0( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_ULong )
- code_to_next0( TT_CMapTable* charmap,
+ code_to_next0( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_UInt )
- code_to_index2( TT_CMapTable* charmap,
+ code_to_index2( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_ULong )
- code_to_next2( TT_CMapTable* charmap,
+ code_to_next2( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_UInt )
- code_to_index4( TT_CMapTable* charmap,
+ code_to_index4( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_ULong )
- code_to_next4( TT_CMapTable* charmap,
+ code_to_next4( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_UInt )
- code_to_index6( TT_CMapTable* charmap,
+ code_to_index6( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_ULong )
- code_to_next6( TT_CMapTable* charmap,
+ code_to_next6( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_UInt )
- code_to_index8_12( TT_CMapTable* charmap,
+ code_to_index8_12( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_ULong )
- code_to_next8_12( TT_CMapTable* charmap,
+ code_to_next8_12( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_UInt )
- code_to_index10( TT_CMapTable* charmap,
+ code_to_index10( TT_CMapTable charmap,
FT_ULong char_code );
FT_CALLBACK_DEF( FT_ULong )
- code_to_next10( TT_CMapTable* charmap,
+ code_to_next10( TT_CMapTable charmap,
FT_ULong char_code );
@@ -108,7 +108,7 @@
/* */
FT_LOCAL_DEF( FT_Error )
TT_CharMap_Load( TT_Face face,
- TT_CMapTable* cmap,
+ TT_CMapTable cmap,
FT_Stream stream )
{
FT_Error error;
@@ -118,16 +118,16 @@
FT_UShort u, l;
- TT_CMap0* cmap0;
- TT_CMap2* cmap2;
- TT_CMap4* cmap4;
- TT_CMap6* cmap6;
- TT_CMap8_12* cmap8_12;
- TT_CMap10* cmap10;
+ TT_CMap0 cmap0;
+ TT_CMap2 cmap2;
+ TT_CMap4 cmap4;
+ TT_CMap6 cmap6;
+ TT_CMap8_12 cmap8_12;
+ TT_CMap10 cmap10;
- TT_CMap2SubHeader* cmap2sub;
- TT_CMap4Segment* segments;
- TT_CMapGroup* groups;
+ TT_CMap2SubHeader cmap2sub;
+ TT_CMap4Segment segments;
+ TT_CMapGroup groups;
if ( cmap->loaded )
@@ -182,7 +182,7 @@
if ( ALLOC_ARRAY( cmap2->subHeaders,
num_SH + 1,
- TT_CMap2SubHeader ) ||
+ TT_CMap2SubHeaderRec ) ||
ACCESS_Frame( ( num_SH + 1 ) * 8L ) )
{
FREE( cmap2->subHeaderKeys );
@@ -246,7 +246,7 @@
if ( ALLOC_ARRAY( cmap4->segments,
num_Seg,
- TT_CMap4Segment ) ||
+ TT_CMap4SegmentRec ) ||
ACCESS_Frame( ( num_Seg * 4 + 1 ) * 2L ) )
goto Fail;
@@ -338,7 +338,7 @@
n = cmap8_12->nGroups;
- if ( ALLOC_ARRAY( cmap8_12->groups, n, TT_CMapGroup ) ||
+ if ( ALLOC_ARRAY( cmap8_12->groups, n, TT_CMapGroupRec ) ||
ACCESS_Frame( n * 3 * 4L ) )
goto Fail;
@@ -416,7 +416,7 @@
/* */
FT_LOCAL_DEF( FT_Error )
TT_CharMap_Free( TT_Face face,
- TT_CMapTable* cmap )
+ TT_CMapTable cmap )
{
FT_Memory memory;
@@ -488,10 +488,10 @@
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
/* */
FT_CALLBACK_DEF( FT_UInt )
- code_to_index0( TT_CMapTable* cmap,
+ code_to_index0( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap0* cmap0 = &cmap->c.cmap0;
+ TT_CMap0 cmap0 = &cmap->c.cmap0;
return ( charCode <= 0xFF ? cmap0->glyphIdArray[charCode] : 0 );
@@ -516,10 +516,10 @@
/* Next char code. 0 if no higher one is encoded. */
/* */
FT_CALLBACK_DEF( FT_ULong )
- code_to_next0( TT_CMapTable* cmap,
+ code_to_next0( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap0* cmap0 = &cmap->c.cmap0;
+ TT_CMap0 cmap0 = &cmap->c.cmap0;
while ( ++charCode <= 0xFF )
@@ -545,14 +545,14 @@
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
/* */
FT_CALLBACK_DEF( FT_UInt )
- code_to_index2( TT_CMapTable* cmap,
+ code_to_index2( TT_CMapTable cmap,
FT_ULong charCode )
{
FT_UInt result, index1, offset;
FT_UInt char_lo;
FT_ULong char_hi;
- TT_CMap2SubHeader* sh2;
- TT_CMap2* cmap2;
+ TT_CMap2SubHeader sh2;
+ TT_CMap2 cmap2;
cmap2 = &cmap->c.cmap2;
@@ -610,14 +610,14 @@
/* Next encoded character. 0 if none exists. */
/* */
FT_CALLBACK_DEF( FT_ULong )
- code_to_next2( TT_CMapTable* cmap,
+ code_to_next2( TT_CMapTable cmap,
FT_ULong charCode )
{
FT_UInt index1, offset;
FT_UInt char_lo;
FT_ULong char_hi;
- TT_CMap2SubHeader* sh2;
- TT_CMap2* cmap2;
+ TT_CMap2SubHeader sh2;
+ TT_CMap2 cmap2;
cmap2 = &cmap->c.cmap2;
@@ -693,12 +693,12 @@
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
/* */
FT_CALLBACK_DEF( FT_UInt )
- code_to_index4( TT_CMapTable* cmap,
+ code_to_index4( TT_CMapTable cmap,
FT_ULong charCode )
{
FT_UInt result, index1, segCount;
- TT_CMap4* cmap4;
- TT_CMap4Segment *seg4, *limit;
+ TT_CMap4 cmap4;
+ TT_CMap4SegmentRec *seg4, *limit;
cmap4 = &cmap->c.cmap4;
@@ -777,12 +777,12 @@
/* Next encoded character. 0 if none exists. */
/* */
FT_CALLBACK_DEF( FT_ULong )
- code_to_next4( TT_CMapTable* cmap,
+ code_to_next4( TT_CMapTable cmap,
FT_ULong charCode )
{
FT_UInt index1, segCount;
- TT_CMap4* cmap4;
- TT_CMap4Segment *seg4, *limit;
+ TT_CMap4 cmap4;
+ TT_CMap4SegmentRec *seg4, *limit;
cmap4 = &cmap->c.cmap4;
@@ -844,10 +844,10 @@
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
/* */
FT_CALLBACK_DEF( FT_UInt )
- code_to_index6( TT_CMapTable* cmap,
+ code_to_index6( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap6* cmap6;
+ TT_CMap6 cmap6;
FT_UInt result = 0;
@@ -877,10 +877,10 @@
/* Next encoded character. 0 if none exists. */
/* */
FT_CALLBACK_DEF( FT_ULong )
- code_to_next6( TT_CMapTable* cmap,
+ code_to_next6( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap6* cmap6;
+ TT_CMap6 cmap6;
charCode++;
@@ -920,11 +920,11 @@
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
/* */
FT_CALLBACK_DEF( FT_UInt )
- code_to_index8_12( TT_CMapTable* cmap,
+ code_to_index8_12( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap8_12* cmap8_12;
- TT_CMapGroup *group, *limit;
+ TT_CMap8_12 cmap8_12;
+ TT_CMapGroupRec *group, *limit;
cmap8_12 = &cmap->c.cmap8_12;
@@ -984,11 +984,11 @@
/* Next encoded character. 0 if none exists. */
/* */
FT_CALLBACK_DEF( FT_ULong )
- code_to_next8_12( TT_CMapTable* cmap,
+ code_to_next8_12( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap8_12* cmap8_12;
- TT_CMapGroup *group, *limit;
+ TT_CMap8_12 cmap8_12;
+ TT_CMapGroupRec *group, *limit;
charCode++;
@@ -1030,10 +1030,10 @@
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
/* */
FT_CALLBACK_DEF( FT_UInt )
- code_to_index10( TT_CMapTable* cmap,
+ code_to_index10( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap10* cmap10;
+ TT_CMap10 cmap10;
FT_UInt result = 0;
@@ -1067,10 +1067,10 @@
/* Next encoded character. 0 if none exists. */
/* */
FT_CALLBACK_DEF( FT_ULong )
- code_to_next10( TT_CMapTable* cmap,
+ code_to_next10( TT_CMapTable cmap,
FT_ULong charCode )
{
- TT_CMap10* cmap10;
+ TT_CMap10 cmap10;
charCode++;
diff --git a/src/sfnt/ttcmap.h b/src/sfnt/ttcmap.h
index 13861a8..b05aba6 100644
--- a/src/sfnt/ttcmap.h
+++ b/src/sfnt/ttcmap.h
@@ -29,12 +29,12 @@ FT_BEGIN_HEADER
FT_LOCAL( FT_Error )
TT_CharMap_Load( TT_Face face,
- TT_CMapTable* cmap,
+ TT_CMapTable cmap,
FT_Stream input );
FT_LOCAL( FT_Error )
TT_CharMap_Free( TT_Face face,
- TT_CMapTable* cmap );
+ TT_CMapTable cmap );
FT_END_HEADER
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index 84ae9bc..41b98cd 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -53,12 +53,12 @@
/* <Return> */
/* A pointer to the table directory entry. 0 if not found. */
/* */
- FT_LOCAL_DEF( TT_Table* )
+ FT_LOCAL_DEF( TT_Table )
TT_LookUp_Table( TT_Face face,
FT_ULong tag )
{
- TT_Table* entry;
- TT_Table* limit;
+ TT_Table entry;
+ TT_Table limit;
FT_TRACE3(( "TT_LookUp_Table: %08p, `%c%c%c%c' -- ",
@@ -110,7 +110,7 @@
FT_Stream stream,
FT_ULong* length )
{
- TT_Table* table;
+ TT_Table table;
FT_Error error;
@@ -134,7 +134,7 @@
/*************************************************************************/
/* */
/* <Function> */
- /* TT_Load_SFNT_Header */
+ /* TT_Load_SFNT_HeaderRec */
/* */
/* <Description> */
/* Loads the header of a SFNT font file. Supports collections. */
@@ -160,10 +160,10 @@
/* values of `search_range', `entry_selector', and `range_shift'. */
/* */
FT_LOCAL_DEF( FT_Error )
- TT_Load_SFNT_Header( TT_Face face,
+ TT_Load_SFNT_HeaderRec( TT_Face face,
FT_Stream stream,
FT_Long face_index,
- SFNT_Header* sfnt )
+ SFNT_Header sfnt )
{
FT_Error error;
FT_ULong format_tag;
@@ -172,7 +172,7 @@
const FT_Frame_Field sfnt_header_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE SFNT_Header
+#define FT_STRUCTURE SFNT_HeaderRec
FT_FRAME_START( 8 ),
FT_FRAME_USHORT( num_tables ),
@@ -185,7 +185,7 @@
const FT_Frame_Field ttc_header_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TTC_Header
+#define FT_STRUCTURE TTC_HeaderRec
FT_FRAME_START( 8 ),
FT_FRAME_LONG( version ),
@@ -193,7 +193,7 @@
FT_FRAME_END };
- FT_TRACE2(( "TT_Load_SFNT_Header: %08p, %ld\n",
+ FT_TRACE2(( "TT_Load_SFNT_HeaderRec: %08p, %ld\n",
face, face_index ));
face->ttc_header.tag = 0;
@@ -213,7 +213,7 @@
FT_Int n;
- FT_TRACE3(( "TT_Load_SFNT_Header: file is a collection\n" ));
+ FT_TRACE3(( "TT_Load_SFNT_HeaderRec: file is a collection\n" ));
/* it's a TrueType collection, i.e. a file containing several */
/* font files. Read the font directory now */
@@ -263,7 +263,7 @@
entry_selector > num_tables ||
entry_selector * 2 <= num_tables )
{
- FT_TRACE2(( "TT_Load_SFNT_Header: file is not SFNT!\n" ));
+ FT_TRACE2(( "TT_Load_SFNT_HeaderRec: file is not SFNT!\n" ));
error = SFNT_Err_Unknown_File_Format;
}
}
@@ -297,12 +297,12 @@
FT_LOCAL_DEF( FT_Error )
TT_Load_Directory( TT_Face face,
FT_Stream stream,
- SFNT_Header* sfnt )
+ SFNT_Header sfnt )
{
FT_Error error;
FT_Memory memory = stream->memory;
- TT_Table *entry, *limit;
+ TT_TableRec *entry, *limit;
FT_TRACE2(( "TT_Load_Directory: %08p\n", face ));
@@ -314,7 +314,7 @@
if ( ALLOC_ARRAY( face->dir_tables,
face->num_tables,
- TT_Table ) )
+ TT_TableRec ) )
goto Exit;
if ( ACCESS_Frame( face->num_tables * 16L ) )
@@ -397,7 +397,7 @@
{
FT_Error error;
FT_Stream stream;
- TT_Table* table;
+ TT_Table table;
FT_ULong size;
@@ -687,7 +687,7 @@
FT_ULong table_len;
FT_Long num_shorts, num_longs, num_shorts_checked;
- TT_LongMetrics** longs;
+ TT_LongMetrics * longs;
TT_ShortMetrics** shorts;
@@ -715,7 +715,7 @@
}
num_longs = face->vertical.number_Of_VMetrics;
- longs = (TT_LongMetrics**)&face->vertical.long_metrics;
+ longs = (TT_LongMetrics *)&face->vertical.long_metrics;
shorts = (TT_ShortMetrics**)&face->vertical.short_metrics;
}
else
@@ -729,7 +729,7 @@
}
num_longs = face->horizontal.number_Of_HMetrics;
- longs = (TT_LongMetrics**)&face->horizontal.long_metrics;
+ longs = (TT_LongMetrics *)&face->horizontal.long_metrics;
shorts = (TT_ShortMetrics**)&face->horizontal.short_metrics;
}
@@ -749,7 +749,7 @@
goto Exit;
}
- if ( ALLOC_ARRAY( *longs, num_longs, TT_LongMetrics ) ||
+ if ( ALLOC_ARRAY( *longs, num_longs, TT_LongMetricsRec ) ||
ALLOC_ARRAY( *shorts, num_shorts, TT_ShortMetrics ) )
goto Exit;
@@ -757,8 +757,8 @@
goto Exit;
{
- TT_LongMetrics* cur = *longs;
- TT_LongMetrics* limit = cur + num_longs;
+ TT_LongMetrics cur = *longs;
+ TT_LongMetrics limit = cur + num_longs;
for ( ; cur < limit; cur++ )
@@ -926,12 +926,12 @@
FT_ULong storageOffset, storageSize;
FT_Byte* storage;
- TT_NameTable* names;
+ TT_NameTable names;
const FT_Frame_Field name_table_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_NameTable
+#define FT_STRUCTURE TT_NameTableRec
FT_FRAME_START( 6 ),
FT_FRAME_USHORT( format ),
@@ -943,7 +943,7 @@
const FT_Frame_Field name_record_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_NameRec
+#define FT_STRUCTURE TT_NameEntryRec
/* no FT_FRAME_START */
FT_FRAME_USHORT( platformID ),
@@ -988,7 +988,7 @@
/* Allocate the array of name records. */
if ( ALLOC( names->names,
- names->numNameRecords*sizeof(TT_NameRec) + storageSize ) ||
+ names->numNameRecords*sizeof(TT_NameEntryRec) + storageSize ) ||
ACCESS_Frame( names->numNameRecords * 12L ) )
goto Exit;
@@ -997,8 +997,8 @@
/* Load the name records and determine how much storage is needed */
/* to hold the strings themselves. */
{
- TT_NameRec* cur = names->names;
- TT_NameRec* limit = cur + names->numNameRecords;
+ TT_NameEntryRec* cur = names->names;
+ TT_NameEntryRec* limit = cur + names->numNameRecords;
for ( ; cur < limit; cur ++ )
@@ -1033,8 +1033,8 @@
/* Print Name Record Table in case of debugging */
{
- TT_NameRec* cur = names->names;
- TT_NameRec* limit = cur + names->numNameRecords;
+ TT_NameEntryRec* cur = names->names;
+ TT_NameEntryRec* limit = cur + names->numNameRecords;
for ( ; cur < limit; cur++ )
@@ -1093,7 +1093,7 @@
TT_Free_Names( TT_Face face )
{
FT_Memory memory = face->root.driver->root.memory;
- TT_NameTable* names = &face->name_table;
+ TT_NameTable names = &face->name_table;
/* free strings table */
@@ -1128,15 +1128,15 @@
TT_Load_CMap( TT_Face face,
FT_Stream stream )
{
- FT_Error error;
- FT_Memory memory = stream->memory;
- FT_Long table_start;
- TT_CMapDir cmap_dir;
+ FT_Error error;
+ FT_Memory memory = stream->memory;
+ FT_Long table_start;
+ TT_CMapDirRec cmap_dir;
const FT_Frame_Field cmap_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_CMapDir
+#define FT_STRUCTURE TT_CMapDirRec
FT_FRAME_START( 4 ),
FT_FRAME_USHORT( tableVersionNumber ),
@@ -1147,7 +1147,7 @@
const FT_Frame_Field cmap_rec_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_CMapTable
+#define FT_STRUCTURE TT_CMapTableRec
FT_FRAME_START( 4 ),
FT_FRAME_USHORT( format ),
@@ -1188,7 +1188,7 @@
for ( ; charmap < limit; charmap++ )
{
- TT_CMapTable* cmap;
+ TT_CMapTable cmap;
charmap->root.face = (FT_Face)face;
@@ -1205,7 +1205,7 @@
/* now read the rest of each table */
for ( charmap = face->charmaps; charmap < limit; charmap++ )
{
- TT_CMapTable* cmap = &charmap->cmap;
+ TT_CMapTable cmap = &charmap->cmap;
if ( FILE_Seek( table_start + (FT_Long)cmap->offset ) ||
@@ -1513,7 +1513,7 @@
FT_Memory memory = stream->memory;
FT_UInt j,num_ranges;
- TT_GaspRange* gaspranges;
+ TT_GaspRange gaspranges;
FT_TRACE2(( "TT_Load_Gasp: %08p\n", face ));
@@ -1534,7 +1534,7 @@
num_ranges = face->gasp.numRanges;
FT_TRACE3(( "number of ranges = %d\n", num_ranges ));
- if ( ALLOC_ARRAY( gaspranges, num_ranges, TT_GaspRange ) ||
+ if ( ALLOC_ARRAY( gaspranges, num_ranges, TT_GaspRangeRec ) ||
ACCESS_Frame( num_ranges * 4L ) )
goto Exit;
@@ -1623,8 +1623,8 @@
if ( coverage == 0x0001 )
{
FT_UInt num_pairs;
- TT_Kern_0_Pair* pair;
- TT_Kern_0_Pair* limit;
+ TT_Kern0_Pair pair;
+ TT_Kern0_Pair limit;
/* found a horizontal format 0 kerning table! */
@@ -1638,7 +1638,7 @@
FORGET_Frame();
/* allocate array of kerning pairs */
- if ( ALLOC_ARRAY( face->kern_pairs, num_pairs, TT_Kern_0_Pair ) ||
+ if ( ALLOC_ARRAY( face->kern_pairs, num_pairs, TT_Kern0_PairRec ) ||
ACCESS_Frame( 6L * num_pairs ) )
goto Exit;
@@ -1660,7 +1660,7 @@
/* fonts have unsorted tables!) */
{
FT_UInt i;
- TT_Kern_0_Pair* pair0;
+ TT_Kern0_Pair pair0;
pair0 = face->kern_pairs;
@@ -1670,7 +1670,7 @@
if ( tt_kern_pair_compare( pair0, pair0 + 1 ) != -1 )
{
qsort( (void*)face->kern_pairs, (int)num_pairs,
- sizeof ( TT_Kern_0_Pair ), tt_kern_pair_compare );
+ sizeof ( TT_Kern0_PairRec ), tt_kern_pair_compare );
break;
}
}
@@ -1700,8 +1700,8 @@
tt_kern_pair_compare( const void* a,
const void* b )
{
- TT_Kern_0_Pair* pair1 = (TT_Kern_0_Pair*)a;
- TT_Kern_0_Pair* pair2 = (TT_Kern_0_Pair*)b;
+ TT_Kern0_Pair pair1 = (TT_Kern0_Pair)a;
+ TT_Kern0_Pair pair2 = (TT_Kern0_Pair)b;
FT_ULong index1 = TT_KERN_INDEX( pair1->left, pair1->right );
FT_ULong index2 = TT_KERN_INDEX( pair2->left, pair2->right );
@@ -1736,7 +1736,7 @@
FT_Error error;
FT_Memory memory = stream->memory;
- TT_Hdmx* hdmx = &face->hdmx;
+ TT_Hdmx hdmx = &face->hdmx;
FT_Long num_glyphs;
FT_Long record_size;
@@ -1763,15 +1763,15 @@
if ( hdmx->version != 0 )
goto Exit;
- if ( ALLOC_ARRAY( hdmx->records, hdmx->num_records, TT_HdmxRec ) )
+ if ( ALLOC_ARRAY( hdmx->records, hdmx->num_records, TT_HdmxEntryRec ) )
goto Exit;
num_glyphs = face->root.num_glyphs;
record_size -= num_glyphs + 2;
{
- TT_HdmxRec* cur = hdmx->records;
- TT_HdmxRec* limit = cur + hdmx->num_records;
+ TT_HdmxEntry cur = hdmx->records;
+ TT_HdmxEntry limit = cur + hdmx->num_records;
for ( ; cur < limit; cur++ )
diff --git a/src/sfnt/ttload.h b/src/sfnt/ttload.h
index 45e1ba1..a4b0f6c 100644
--- a/src/sfnt/ttload.h
+++ b/src/sfnt/ttload.h
@@ -29,7 +29,7 @@
FT_BEGIN_HEADER
- FT_LOCAL( TT_Table* )
+ FT_LOCAL( TT_Table )
TT_LookUp_Table( TT_Face face,
FT_ULong tag );
@@ -41,15 +41,15 @@ FT_BEGIN_HEADER
FT_LOCAL( FT_Error )
- TT_Load_SFNT_Header( TT_Face face,
+ TT_Load_SFNT_HeaderRec( TT_Face face,
FT_Stream stream,
FT_Long face_index,
- SFNT_Header* sfnt );
+ SFNT_Header sfnt );
FT_LOCAL( FT_Error )
TT_Load_Directory( TT_Face face,
FT_Stream stream,
- SFNT_Header* sfnt );
+ SFNT_Header sfnt );
FT_LOCAL( FT_Error )
TT_Load_Any( TT_Face face,
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index 628ec63..8edc08e 100644
--- a/src/sfnt/ttpost.c
+++ b/src/sfnt/ttpost.c
@@ -241,7 +241,7 @@
/* all right, set table fields and exit successfuly */
{
- TT_Post_20* table = &face->postscript_names.names.format_20;
+ TT_Post_20 table = &face->postscript_names.names.format_20;
table->num_glyphs = (FT_UShort)num_glyphs;
@@ -316,7 +316,7 @@
/* OK, set table fields and exit successfuly */
{
- TT_Post_25* table = &face->postscript_names.names.format_25;
+ TT_Post_25 table = &face->postscript_names.names.format_25;
table->num_glyphs = (FT_UShort)num_glyphs;
@@ -381,7 +381,7 @@
TT_Free_Post_Names( TT_Face face )
{
FT_Memory memory = face->root.memory;
- TT_Post_Names* names = &face->postscript_names;
+ TT_Post_Names names = &face->postscript_names;
if ( names->loaded )
@@ -390,7 +390,7 @@
{
case 0x00020000L:
{
- TT_Post_20* table = &names->names.format_20;
+ TT_Post_20 table = &names->names.format_20;
FT_UShort n;
@@ -407,7 +407,7 @@
case 0x00028000L:
{
- TT_Post_25* table = &names->names.format_25;
+ TT_Post_25 table = &names->names.format_25;
FREE( table->offsets );
@@ -447,7 +447,7 @@
FT_String** PSname )
{
FT_Error error;
- TT_Post_Names* names;
+ TT_Post_Names names;
#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
PSNames_Service psnames;
@@ -480,7 +480,7 @@
case 0x00020000L:
{
- TT_Post_20* table = &names->names.format_20;
+ TT_Post_20 table = &names->names.format_20;
if ( !names->loaded )
@@ -505,7 +505,7 @@
case 0x00028000L:
{
- TT_Post_25* table = &names->names.format_25;
+ TT_Post_25 table = &names->names.format_25;
if ( !names->loaded )
diff --git a/src/sfnt/ttsbit.c b/src/sfnt/ttsbit.c
index 41cdf66..161d023 100644
--- a/src/sfnt/ttsbit.c
+++ b/src/sfnt/ttsbit.c
@@ -188,7 +188,7 @@
const FT_Frame_Field sbit_metrics_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_SBit_Metrics
+#define FT_STRUCTURE TT_SBit_MetricsRec
FT_FRAME_START( 8 ),
FT_FRAME_BYTE( height ),
@@ -222,7 +222,7 @@
/* FreeType error code. 0 means success. */
/* */
static FT_Error
- Load_SBit_Const_Metrics( TT_SBit_Range* range,
+ Load_SBit_Const_Metrics( TT_SBit_Range range,
FT_Stream stream )
{
FT_Error error;
@@ -254,7 +254,7 @@
/* FreeType error code. 0 means success. */
/* */
static FT_Error
- Load_SBit_Range_Codes( TT_SBit_Range* range,
+ Load_SBit_Range_Codes( TT_SBit_Range range,
FT_Stream stream,
FT_Bool load_offsets )
{
@@ -317,7 +317,7 @@
/* FreeType error code. 0 means success. */
/* */
static FT_Error
- Load_SBit_Range( TT_SBit_Range* range,
+ Load_SBit_Range( TT_SBit_Range range,
FT_Stream stream )
{
FT_Error error;
@@ -404,7 +404,7 @@
const FT_Frame_Field sbit_line_metrics_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_SBit_Line_Metrics
+#define FT_STRUCTURE TT_SBit_LineMetricsRec
/* no FT_FRAME_START */
FT_FRAME_CHAR( ascender ),
@@ -427,7 +427,7 @@
const FT_Frame_Field strike_start_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_SBit_Strike
+#define FT_STRUCTURE TT_SBit_StrikeRec
/* no FT_FRAME_START */
FT_FRAME_ULONG( ranges_offset ),
@@ -479,14 +479,14 @@
}
/* allocate the strikes table */
- if ( ALLOC_ARRAY( face->sbit_strikes, num_strikes, TT_SBit_Strike ) )
+ if ( ALLOC_ARRAY( face->sbit_strikes, num_strikes, TT_SBit_StrikeRec ) )
goto Exit;
face->num_sbit_strikes = num_strikes;
/* now read each strike table separately */
{
- TT_SBit_Strike* strike = face->sbit_strikes;
+ TT_SBit_Strike strike = face->sbit_strikes;
FT_ULong count = num_strikes;
@@ -510,19 +510,19 @@
/* allocate the index ranges for each strike table */
{
- TT_SBit_Strike* strike = face->sbit_strikes;
+ TT_SBit_Strike strike = face->sbit_strikes;
FT_ULong count = num_strikes;
while ( count > 0 )
{
- TT_SBit_Range* range;
+ TT_SBit_Range range;
FT_ULong count2 = strike->num_ranges;
if ( ALLOC_ARRAY( strike->sbit_ranges,
strike->num_ranges,
- TT_SBit_Range ) )
+ TT_SBit_RangeRec ) )
goto Exit;
/* read each range */
@@ -592,16 +592,16 @@
TT_Free_SBit_Strikes( TT_Face face )
{
FT_Memory memory = face->root.memory;
- TT_SBit_Strike* strike = face->sbit_strikes;
- TT_SBit_Strike* strike_limit = strike + face->num_sbit_strikes;
+ TT_SBit_Strike strike = face->sbit_strikes;
+ TT_SBit_Strike strike_limit = strike + face->num_sbit_strikes;
if ( strike )
{
for ( ; strike < strike_limit; strike++ )
{
- TT_SBit_Range* range = strike->sbit_ranges;
- TT_SBit_Range* range_limit = range + strike->num_ranges;
+ TT_SBit_Range range = strike->sbit_ranges;
+ TT_SBit_Range range_limit = range + strike->num_ranges;
if ( range )
@@ -675,11 +675,11 @@
/* */
static FT_Error
Find_SBit_Range( FT_UInt glyph_index,
- TT_SBit_Strike* strike,
- TT_SBit_Range** arange,
+ TT_SBit_Strike strike,
+ TT_SBit_Range * arange,
FT_ULong* aglyph_offset )
{
- TT_SBit_Range *range, *range_limit;
+ TT_SBit_RangeRec *range, *range_limit;
/* check whether the glyph index is within this strike's */
@@ -786,12 +786,12 @@
Find_SBit_Image( TT_Face face,
FT_UInt glyph_index,
FT_ULong strike_index,
- TT_SBit_Range* *arange,
- TT_SBit_Strike* *astrike,
+ TT_SBit_Range *arange,
+ TT_SBit_Strike *astrike,
FT_ULong *aglyph_offset )
{
FT_Error error;
- TT_SBit_Strike* strike;
+ TT_SBit_Strike strike;
if ( !face->sbit_strikes ||
@@ -848,8 +848,8 @@
/* */
static FT_Error
Load_SBit_Metrics( FT_Stream stream,
- TT_SBit_Range* range,
- TT_SBit_Metrics* metrics )
+ TT_SBit_Range range,
+ TT_SBit_Metrics metrics )
{
FT_Error error = SFNT_Err_Ok;
@@ -861,12 +861,12 @@
case 8:
/* variable small metrics */
{
- TT_SBit_Small_Metrics smetrics;
+ TT_SBit_SmallMetricsRec smetrics;
const FT_Frame_Field sbit_small_metrics_fields[] =
{
#undef FT_STRUCTURE
-#define FT_STRUCTURE TT_SBit_Small_Metrics
+#define FT_STRUCTURE TT_SBit_SmallMetricsRec
FT_FRAME_START( 5 ),
FT_FRAME_BYTE( height ),
@@ -934,7 +934,7 @@
/* */
static void
Crop_Bitmap( FT_Bitmap* map,
- TT_SBit_Metrics* metrics )
+ TT_SBit_Metrics metrics )
{
/***********************************************************************/
/* */
@@ -1129,7 +1129,7 @@
FT_Int y_offset,
FT_Int pix_bits,
FT_UShort image_format,
- TT_SBit_Metrics* metrics,
+ TT_SBit_Metrics metrics,
FT_Stream stream )
{
FT_Error error;
@@ -1204,15 +1204,15 @@
static FT_Error
- Load_SBit_Image( TT_SBit_Strike* strike,
- TT_SBit_Range* range,
+ Load_SBit_Image( TT_SBit_Strike strike,
+ TT_SBit_Range range,
FT_ULong ebdt_pos,
FT_ULong glyph_offset,
FT_Bitmap* map,
FT_Int x_offset,
FT_Int y_offset,
FT_Stream stream,
- TT_SBit_Metrics* metrics )
+ TT_SBit_Metrics metrics )
{
FT_Memory memory = stream->memory;
FT_Error error;
@@ -1298,13 +1298,13 @@
/* All right, we have a compound format. First of all, read */
/* the array of elements. */
{
- TT_SBit_Component* components;
- TT_SBit_Component* comp;
+ TT_SBit_Component components;
+ TT_SBit_Component comp;
FT_UShort num_components, count;
if ( READ_UShort( num_components ) ||
- ALLOC_ARRAY( components, num_components, TT_SBit_Component ) )
+ ALLOC_ARRAY( components, num_components, TT_SBit_ComponentRec ) )
goto Exit;
count = num_components;
@@ -1326,8 +1326,8 @@
comp = components;
for ( ; count > 0; count--, comp++ )
{
- TT_SBit_Range* elem_range;
- TT_SBit_Metrics elem_metrics;
+ TT_SBit_Range elem_range;
+ TT_SBit_MetricsRec elem_metrics;
FT_ULong elem_offset;
@@ -1402,14 +1402,14 @@
FT_UInt load_flags,
FT_Stream stream,
FT_Bitmap *map,
- TT_SBit_Metrics *metrics )
+ TT_SBit_MetricsRec *metrics )
{
FT_Error error;
FT_Memory memory = stream->memory;
FT_ULong ebdt_pos, glyph_offset;
- TT_SBit_Strike* strike;
- TT_SBit_Range* range;
+ TT_SBit_Strike strike;
+ TT_SBit_Range range;
/* Check whether there is a glyph sbit for the current index */
diff --git a/src/sfnt/ttsbit.h b/src/sfnt/ttsbit.h
index b421c86..07a52ba 100644
--- a/src/sfnt/ttsbit.h
+++ b/src/sfnt/ttsbit.h
@@ -48,7 +48,7 @@ FT_BEGIN_HEADER
FT_UInt load_flags,
FT_Stream stream,
FT_Bitmap *map,
- TT_SBit_Metrics *metrics );
+ TT_SBit_MetricsRec *metrics );
FT_END_HEADER
diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c
index 5b5ba70..d54c57a 100644
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -94,7 +94,7 @@
FT_UInt right_glyph,
FT_Vector* kerning )
{
- TT_Kern_0_Pair* pair;
+ TT_Kern0_Pair pair;
if ( !face )
@@ -367,7 +367,7 @@
{
FT_Error error;
TT_Face face;
- TT_CMapTable* cmap;
+ TT_CMapTable cmap;
cmap = &charmap->cmap;
@@ -414,7 +414,7 @@
{
FT_Error error;
TT_Face face;
- TT_CMapTable* cmap;
+ TT_CMapTable cmap;
cmap = &charmap->cmap;
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 5201a67..b5100bc 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -87,20 +87,20 @@
FT_Short* bearing,
FT_UShort* advance )
{
- TT_LongMetrics* longs_m;
+ TT_LongMetrics longs_m;
FT_UShort k = header->number_Of_HMetrics;
if ( idx < (FT_UInt)k )
{
- longs_m = (TT_LongMetrics*)header->long_metrics + idx;
+ longs_m = (TT_LongMetrics )header->long_metrics + idx;
*bearing = longs_m->bearing;
*advance = longs_m->advance;
}
else
{
*bearing = ((TT_ShortMetrics*)header->short_metrics)[idx - k];
- *advance = ((TT_LongMetrics*)header->long_metrics)[k - 1].advance;
+ *advance = ((TT_LongMetrics )header->long_metrics)[k - 1].advance;
}
}
@@ -175,7 +175,7 @@
static void
- tt_prepare_zone( TT_GlyphZone* zone,
+ tt_prepare_zone( TT_GlyphZone zone,
FT_GlyphLoad load,
FT_UInt start_point,
FT_UInt start_contour )
@@ -202,7 +202,7 @@
/*************************************************************************/
FT_CALLBACK_DEF( FT_Error )
- TT_Access_Glyph_Frame( TT_Loader* loader,
+ TT_Access_Glyph_Frame( TT_Loader loader,
FT_UInt glyph_index,
FT_ULong offset,
FT_UInt byte_count )
@@ -225,7 +225,7 @@
FT_CALLBACK_DEF( void )
- TT_Forget_Glyph_Frame( TT_Loader* loader )
+ TT_Forget_Glyph_Frame( TT_Loader loader )
{
FT_Stream stream = loader->stream;
@@ -235,7 +235,7 @@
FT_CALLBACK_DEF( FT_Error )
- TT_Load_Glyph_Header( TT_Loader* loader )
+ TT_Load_Glyph_Header( TT_Loader loader )
{
FT_Stream stream = loader->stream;
FT_Int byte_len = loader->byte_len - 10;
@@ -263,7 +263,7 @@
FT_CALLBACK_DEF( FT_Error )
- TT_Load_Simple_Glyph( TT_Loader* load )
+ TT_Load_Simple_Glyph( TT_Loader load )
{
FT_Error error;
FT_Stream stream = load->stream;
@@ -466,7 +466,7 @@
FT_CALLBACK_DEF( FT_Error )
- TT_Load_Composite_Glyph( TT_Loader* loader )
+ TT_Load_Composite_Glyph( TT_Loader loader )
{
FT_Error error;
FT_Stream stream = loader->stream;
@@ -603,7 +603,7 @@
/* interpretation. */
/* */
static FT_Error
- TT_Process_Simple_Glyph( TT_Loader* load,
+ TT_Process_Simple_Glyph( TT_Loader load,
FT_Bool debug )
{
FT_GlyphLoader gloader = load->gloader;
@@ -612,7 +612,7 @@
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
FT_UInt n_ins;
#endif
- TT_GlyphZone* zone = &load->zone;
+ TT_GlyphZone zone = &load->zone;
FT_Error error = TT_Err_Ok;
FT_UNUSED( debug ); /* used by truetype interpreter only */
@@ -737,7 +737,7 @@
/* TT_Loader object. */
/* */
static FT_Error
- load_truetype_glyph( TT_Loader* loader,
+ load_truetype_glyph( TT_Loader loader,
FT_UInt glyph_index )
{
@@ -1103,7 +1103,7 @@
{
FT_UShort n_ins;
TT_ExecContext exec = loader->exec;
- TT_GlyphZone* pts;
+ TT_GlyphZone pts;
FT_Vector* pp1;
@@ -1210,7 +1210,7 @@
static void
- compute_glyph_metrics( TT_Loader* loader,
+ compute_glyph_metrics( TT_Loader loader,
FT_UInt glyph_index )
{
FT_BBox bbox;
@@ -1426,7 +1426,7 @@
TT_Face face;
FT_Stream stream;
FT_Error error;
- TT_Loader loader;
+ TT_LoaderRec loader;
face = (TT_Face)glyph->face;
@@ -1457,7 +1457,7 @@
( load_flags & FT_LOAD_NO_BITMAP ) == 0 )
{
- TT_SBit_Metrics metrics;
+ TT_SBit_MetricsRec metrics;
error = sfnt->load_sbit_image( face,
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 1c08add..f9c6425 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -1397,7 +1397,7 @@
/* zone :: The affected glyph zone. */
/* */
static void
- Direct_Move( EXEC_OP_ TT_GlyphZone* zone,
+ Direct_Move( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
@@ -1459,7 +1459,7 @@
static void
- Direct_Move_X( EXEC_OP_ TT_GlyphZone* zone,
+ Direct_Move_X( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
@@ -1471,7 +1471,7 @@
static void
- Direct_Move_Y( EXEC_OP_ TT_GlyphZone* zone,
+ Direct_Move_Y( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
@@ -4983,10 +4983,10 @@
static FT_Bool
Compute_Point_Displacement( EXEC_OP_ FT_F26Dot6* x,
FT_F26Dot6* y,
- TT_GlyphZone* zone,
+ TT_GlyphZone zone,
FT_UShort* refp )
{
- TT_GlyphZone zp;
+ TT_GlyphZoneRec zp;
FT_UShort p;
FT_F26Dot6 d;
@@ -5065,7 +5065,7 @@
static void
Ins_SHP( INS_ARG )
{
- TT_GlyphZone zp;
+ TT_GlyphZoneRec zp;
FT_UShort refp;
FT_F26Dot6 dx,
@@ -5118,7 +5118,7 @@
static void
Ins_SHC( INS_ARG )
{
- TT_GlyphZone zp;
+ TT_GlyphZoneRec zp;
FT_UShort refp;
FT_F26Dot6 dx,
dy;
@@ -5174,7 +5174,7 @@
static void
Ins_SHZ( INS_ARG )
{
- TT_GlyphZone zp;
+ TT_GlyphZoneRec zp;
FT_UShort refp;
FT_F26Dot6 dx,
dy;
diff --git a/src/truetype/ttinterp.h b/src/truetype/ttinterp.h
index d0f22b0..96d8316 100644
--- a/src/truetype/ttinterp.h
+++ b/src/truetype/ttinterp.h
@@ -73,7 +73,7 @@ FT_BEGIN_HEADER
/* Point displacement along the freedom vector routine */
typedef void
- (*TT_Move_Func)( EXEC_OP_ TT_GlyphZone* zone,
+ (*TT_Move_Func)( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance );
@@ -130,7 +130,7 @@ FT_BEGIN_HEADER
FT_Long args;
FT_UInt new_top; /* new top after exec. */
- TT_GlyphZone zp0, /* zone records */
+ TT_GlyphZoneRec zp0, /* zone records */
zp1,
zp2,
pts,
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 9757512..99ed5d0 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -66,7 +66,7 @@
/* zone :: A pointer to the target glyph zone. */
/* */
FT_LOCAL_DEF( void )
- TT_Done_GlyphZone( TT_GlyphZone* zone )
+ TT_Done_GlyphZone( TT_GlyphZone zone )
{
FT_Memory memory = zone->memory;
@@ -106,7 +106,7 @@
TT_New_GlyphZone( FT_Memory memory,
FT_UShort maxPoints,
FT_Short maxContours,
- TT_GlyphZone* zone )
+ TT_GlyphZone zone )
{
FT_Error error;
@@ -698,7 +698,7 @@
if ( !error )
{
- TT_SBit_Strike* strike = face->sbit_strikes + strike_index;
+ TT_SBit_Strike strike = face->sbit_strikes + strike_index;
sbit_metrics->x_ppem = metrics->x_ppem;
diff --git a/src/truetype/ttobjs.h b/src/truetype/ttobjs.h
index 2f6a58b..eb09a40 100644
--- a/src/truetype/ttobjs.h
+++ b/src/truetype/ttobjs.h
@@ -108,13 +108,13 @@ FT_BEGIN_HEADER
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
FT_LOCAL( void )
- TT_Done_GlyphZone( TT_GlyphZone* zone );
+ TT_Done_GlyphZone( TT_GlyphZone zone );
FT_LOCAL( FT_Error )
TT_New_GlyphZone( FT_Memory memory,
FT_UShort maxPoints,
FT_Short maxContours,
- TT_GlyphZone* zone );
+ TT_GlyphZone zone );
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
@@ -203,7 +203,7 @@ FT_BEGIN_HEADER
FT_Pos left_bearing;
FT_Pos advance;
- TT_GlyphZone zone;
+ TT_GlyphZoneRec zone;
FT_Long arg1; /* first argument */
FT_Long arg2; /* second argument */
@@ -343,7 +343,7 @@ FT_BEGIN_HEADER
FT_UShort storage_size; /* The storage area is now part of */
FT_Long* storage; /* the instance */
- TT_GlyphZone twilight; /* The instance's twilight zone */
+ TT_GlyphZoneRec twilight; /* The instance's twilight zone */
/* debugging variables */
@@ -367,7 +367,7 @@ FT_BEGIN_HEADER
{
FT_DriverRec root;
TT_ExecContext context; /* execution context */
- TT_GlyphZone zone; /* glyph loader points zone */
+ TT_GlyphZoneRec zone; /* glyph loader points zone */
void* extension_component;