formatting
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 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670
diff --git a/builds/unix/ftsystem.c b/builds/unix/ftsystem.c
index dc6f9f4..d684dda 100644
--- a/builds/unix/ftsystem.c
+++ b/builds/unix/ftsystem.c
@@ -17,7 +17,7 @@
#include <ft2build.h>
-/* we use our special ftconfig.h file, not the standard one */
+ /* we use our special ftconfig.h file, not the standard one */
#include <ftconfig.h>
#include FT_INTERNAL_DEBUG_H
#include FT_SYSTEM_H
@@ -48,8 +48,9 @@
#else
extern
#endif
- int munmap( char* addr,
- int len );
+ int
+ munmap( char* addr,
+ int len );
#define MUNMAP_ARG_CAST char *
diff --git a/builds/vms/ftsystem.c b/builds/vms/ftsystem.c
index 0729df4..d684dda 100644
--- a/builds/vms/ftsystem.c
+++ b/builds/vms/ftsystem.c
@@ -48,8 +48,9 @@
#else
extern
#endif
- int munmap( char* addr,
- int len );
+ int
+ munmap( char* addr,
+ int len );
#define MUNMAP_ARG_CAST char *
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index c9bc58a..d2ddd60 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -825,7 +825,7 @@ FT_BEGIN_HEADER
/* A bit-field constant, used to indicate that the font contains */
/* glyph names that can be retrieved through FT_Get_Glyph_Name(). */
/* */
-#define FT_FACE_FLAG_GLYPH_NAMES 0x200
+#define FT_FACE_FLAG_GLYPH_NAMES 0x200
/*************************************************************************/
@@ -838,7 +838,7 @@ FT_BEGIN_HEADER
/* a face's stream was provided by the client application and should */
/* not be destroyed by FT_Done_Face(). */
/* */
-#define FT_FACE_FLAG_EXTERNAL_STREAM 0x4000
+#define FT_FACE_FLAG_EXTERNAL_STREAM 0x4000
/* */
@@ -1330,7 +1330,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Init_FreeType( FT_Library *alibrary );
+ FT_EXPORT( FT_Error )
+ FT_Init_FreeType( FT_Library *alibrary );
/*************************************************************************/
@@ -1348,7 +1349,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Done_FreeType( FT_Library library );
+ FT_EXPORT( FT_Error )
+ FT_Done_FreeType( FT_Library library );
/*************************************************************************/
@@ -1505,10 +1507,11 @@ FT_BEGIN_HEADER
/* `aface'. Its return value should be 0 if the font format is */
/* recognized, or non-zero if not. */
/* */
- FT_EXPORT( FT_Error ) FT_New_Face( FT_Library library,
- const char* filepathname,
- FT_Long face_index,
- FT_Face *aface );
+ FT_EXPORT( FT_Error )
+ FT_New_Face( FT_Library library,
+ const char* filepathname,
+ FT_Long face_index,
+ FT_Face *aface );
/*************************************************************************/
@@ -1552,11 +1555,12 @@ FT_BEGIN_HEADER
/* `aface'. Its return value should be 0 if the font format is */
/* recognized, or non-zero if not. */
/* */
- FT_EXPORT( FT_Error ) FT_New_Memory_Face( FT_Library library,
- const FT_Byte* file_base,
- FT_Long file_size,
- FT_Long face_index,
- FT_Face *aface );
+ FT_EXPORT( FT_Error )
+ FT_New_Memory_Face( FT_Library library,
+ const FT_Byte* file_base,
+ FT_Long file_size,
+ FT_Long face_index,
+ FT_Face *aface );
/*************************************************************************/
@@ -1595,10 +1599,11 @@ FT_BEGIN_HEADER
/* `*face'. Its return value should be 0 if the font format is */
/* recognized, or non-zero if not. */
/* */
- FT_EXPORT( FT_Error ) FT_Open_Face( FT_Library library,
- FT_Open_Args* args,
- FT_Long face_index,
- FT_Face *aface );
+ FT_EXPORT( FT_Error )
+ FT_Open_Face( FT_Library library,
+ FT_Open_Args* args,
+ FT_Long face_index,
+ FT_Face *aface );
/*************************************************************************/
@@ -1633,8 +1638,9 @@ FT_BEGIN_HEADER
/* when invoking this function. Most drivers simply do not implement */
/* file attachments. */
/* */
- FT_EXPORT( FT_Error ) FT_Attach_File( FT_Face face,
- const char* filepathname );
+ FT_EXPORT( FT_Error )
+ FT_Attach_File( FT_Face face,
+ const char* filepathname );
/*************************************************************************/
@@ -1664,8 +1670,9 @@ FT_BEGIN_HEADER
/* when invoking this function. Most drivers simply do not implement */
/* file attachments. */
/* */
- FT_EXPORT( FT_Error ) FT_Attach_Stream( FT_Face face,
- FT_Open_Args* parameters );
+ FT_EXPORT( FT_Error )
+ FT_Attach_Stream( FT_Face face,
+ FT_Open_Args* parameters );
/*************************************************************************/
@@ -1683,7 +1690,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Done_Face( FT_Face face );
+ FT_EXPORT( FT_Error )
+ FT_Done_Face( FT_Face face );
/*************************************************************************/
@@ -1720,11 +1728,12 @@ FT_BEGIN_HEADER
/* When dealing with fixed-size faces (i.e., non-scalable formats), */
/* use the function FT_Set_Pixel_Sizes(). */
/* */
- FT_EXPORT( FT_Error ) FT_Set_Char_Size( FT_Face face,
- FT_F26Dot6 char_width,
- FT_F26Dot6 char_height,
- FT_UInt horz_resolution,
- FT_UInt vert_resolution );
+ FT_EXPORT( FT_Error )
+ FT_Set_Char_Size( FT_Face face,
+ FT_F26Dot6 char_width,
+ FT_F26Dot6 char_height,
+ FT_UInt horz_resolution,
+ FT_UInt vert_resolution );
/*************************************************************************/
@@ -1766,9 +1775,10 @@ FT_BEGIN_HEADER
/* guarantee in any way that you will get glyph bitmaps that all fit */
/* within an 8x8 cell (sometimes even far from it). */
/* */
- FT_EXPORT( FT_Error ) FT_Set_Pixel_Sizes( FT_Face face,
- FT_UInt pixel_width,
- FT_UInt pixel_height );
+ FT_EXPORT( FT_Error )
+ FT_Set_Pixel_Sizes( FT_Face face,
+ FT_UInt pixel_width,
+ FT_UInt pixel_height );
/*************************************************************************/
@@ -1805,9 +1815,10 @@ FT_BEGIN_HEADER
/* Note that this also transforms the `face.glyph.advance' field, but */
/* *not* the values in `face.glyph.metrics'. */
/* */
- FT_EXPORT( FT_Error ) FT_Load_Glyph( FT_Face face,
- FT_UInt glyph_index,
- FT_Int load_flags );
+ FT_EXPORT( FT_Error )
+ FT_Load_Glyph( FT_Face face,
+ FT_UInt glyph_index,
+ FT_Int load_flags );
/*************************************************************************/
@@ -1849,9 +1860,10 @@ FT_BEGIN_HEADER
/* Note that this also transforms the `face.glyph.advance' field, but */
/* *not* the values in `face.glyph.metrics'. */
/* */
- FT_EXPORT( FT_Error ) FT_Load_Char( FT_Face face,
- FT_ULong char_code,
- FT_Int load_flags );
+ FT_EXPORT( FT_Error )
+ FT_Load_Char( FT_Face face,
+ FT_ULong char_code,
+ FT_Int load_flags );
/*************************************************************************/
@@ -2018,7 +2030,7 @@ FT_BEGIN_HEADER
/* the glyph loader should not try to transform the loaded glyph */
/* image. */
/* */
-#define FT_LOAD_IGNORE_TRANSFORM 2048
+#define FT_LOAD_IGNORE_TRANSFORM 2048
/*************************************************************************/
@@ -2045,7 +2057,7 @@ FT_BEGIN_HEADER
/* the function should return the linearly scaled metrics expressed */
/* in original font units, instead of the default 16.16 pixel values. */
/* */
-#define FT_LOAD_LINEAR_DESIGN 8192
+#define FT_LOAD_LINEAR_DESIGN 8192
/*************************************************************************/
@@ -2087,9 +2099,10 @@ FT_BEGIN_HEADER
/* the transformation and is performed on the character size given in */
/* the last call to FT_Set_Char_Sizes() or FT_Set_Pixel_Sizes(). */
/* */
- FT_EXPORT( void ) FT_Set_Transform( FT_Face face,
- FT_Matrix* matrix,
- FT_Vector* delta );
+ FT_EXPORT( void )
+ FT_Set_Transform( FT_Face face,
+ FT_Matrix* matrix,
+ FT_Vector* delta );
/*************************************************************************/
@@ -2149,8 +2162,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Render_Glyph( FT_GlyphSlot slot,
- FT_UInt render_mode );
+ FT_EXPORT( FT_Error )
+ FT_Render_Glyph( FT_GlyphSlot slot,
+ FT_UInt render_mode );
/*************************************************************************/
@@ -2214,11 +2228,12 @@ FT_BEGIN_HEADER
/* kernings, are out of the scope of this API function -- they can be */
/* implemented through format-specific interfaces. */
/* */
- FT_EXPORT( FT_Error ) FT_Get_Kerning( FT_Face face,
- FT_UInt left_glyph,
- FT_UInt right_glyph,
- FT_UInt kern_mode,
- FT_Vector *akerning );
+ FT_EXPORT( FT_Error )
+ FT_Get_Kerning( FT_Face face,
+ FT_UInt left_glyph,
+ FT_UInt right_glyph,
+ FT_UInt kern_mode,
+ FT_Vector *akerning );
/*************************************************************************/
@@ -2257,10 +2272,11 @@ FT_BEGIN_HEADER
/* macro FT_CONFIG_OPTION_NO_GLYPH_NAMES is defined in */
/* `include/freetype/config/ftoptions.h' */
/* */
- FT_EXPORT( FT_Error ) FT_Get_Glyph_Name( FT_Face face,
- FT_UInt glyph_index,
- FT_Pointer buffer,
- FT_UInt buffer_max );
+ FT_EXPORT( FT_Error )
+ FT_Get_Glyph_Name( FT_Face face,
+ FT_UInt glyph_index,
+ FT_Pointer buffer,
+ FT_UInt buffer_max );
/*************************************************************************/
@@ -2285,8 +2301,9 @@ FT_BEGIN_HEADER
/* This function will return an error if no charmap in the face */
/* corresponds to the encoding queried here. */
/* */
- FT_EXPORT( FT_Error ) FT_Select_Charmap( FT_Face face,
- FT_Encoding encoding );
+ FT_EXPORT( FT_Error )
+ FT_Select_Charmap( FT_Face face,
+ FT_Encoding encoding );
/*************************************************************************/
@@ -2312,8 +2329,9 @@ FT_BEGIN_HEADER
/* the face (i.e., if it is not listed in the face->charmaps[] */
/* table). */
/* */
- FT_EXPORT( FT_Error ) FT_Set_Charmap( FT_Face face,
- FT_CharMap charmap );
+ FT_EXPORT( FT_Error )
+ FT_Set_Charmap( FT_Face face,
+ FT_CharMap charmap );
/*************************************************************************/
@@ -2333,8 +2351,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* The glyph index. 0 means `undefined character code'. */
/* */
- FT_EXPORT( FT_UInt ) FT_Get_Char_Index( FT_Face face,
- FT_ULong charcode );
+ FT_EXPORT( FT_UInt )
+ FT_Get_Char_Index( FT_Face face,
+ FT_ULong charcode );
/*************************************************************************/
@@ -2389,9 +2408,10 @@ FT_BEGIN_HEADER
/* divide by zero; it simply returns `MaxInt' or `MinInt' depending */
/* on the signs of `a' and `b'. */
/* */
- FT_EXPORT( FT_Long ) FT_MulDiv( FT_Long a,
- FT_Long b,
- FT_Long c );
+ FT_EXPORT( FT_Long )
+ FT_MulDiv( FT_Long a,
+ FT_Long b,
+ FT_Long c );
/*************************************************************************/
@@ -2423,8 +2443,9 @@ FT_BEGIN_HEADER
/* _second_ argument of this function; this can make a great */
/* difference. */
/* */
- FT_EXPORT( FT_Long ) FT_MulFix( FT_Long a,
- FT_Long b );
+ FT_EXPORT( FT_Long )
+ FT_MulFix( FT_Long a,
+ FT_Long b );
/*************************************************************************/
@@ -2450,8 +2471,9 @@ FT_BEGIN_HEADER
/* 32 bits, then the division is computed directly. Otherwise, we */
/* use a specialized version of the old FT_MulDiv64(). */
/* */
- FT_EXPORT( FT_Long ) FT_DivFix( FT_Long a,
- FT_Long b );
+ FT_EXPORT( FT_Long )
+ FT_DivFix( FT_Long a,
+ FT_Long b );
/*************************************************************************/
@@ -2468,7 +2490,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* The result of `(a + 0x8000) & -0x10000'. */
/* */
- FT_EXPORT( FT_Fixed ) FT_RoundFix( FT_Fixed a );
+ FT_EXPORT( FT_Fixed )
+ FT_RoundFix( FT_Fixed a );
/*************************************************************************/
@@ -2486,7 +2509,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* The result of `(a + 0x10000 - 1) & -0x10000'. */
/* */
- FT_EXPORT( FT_Fixed ) FT_CeilFix( FT_Fixed a );
+ FT_EXPORT( FT_Fixed )
+ FT_CeilFix( FT_Fixed a );
/*************************************************************************/
@@ -2504,7 +2528,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* The result of `a & -0x10000'. */
/* */
- FT_EXPORT( FT_Fixed ) FT_FloorFix( FT_Fixed a );
+ FT_EXPORT( FT_Fixed )
+ FT_FloorFix( FT_Fixed a );
/*************************************************************************/
@@ -2524,8 +2549,9 @@ FT_BEGIN_HEADER
/* <Note> */
/* The result is undefined if either `vector' or `matrix' is invalid. */
/* */
- FT_EXPORT( void ) FT_Vector_Transform( FT_Vector* vec,
- FT_Matrix* matrix );
+ FT_EXPORT( void )
+ FT_Vector_Transform( FT_Vector* vec,
+ FT_Matrix* matrix );
/* */
diff --git a/include/freetype/ftbbox.h b/include/freetype/ftbbox.h
index c2259d9..a7d0df2 100644
--- a/include/freetype/ftbbox.h
+++ b/include/freetype/ftbbox.h
@@ -67,8 +67,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Outline_Get_BBox( FT_Outline* outline,
- FT_BBox *abbox );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Get_BBox( FT_Outline* outline,
+ FT_BBox *abbox );
/* */
diff --git a/include/freetype/ftcache.h b/include/freetype/ftcache.h
index 64d0c44..43fffe7 100644
--- a/include/freetype/ftcache.h
+++ b/include/freetype/ftcache.h
@@ -110,10 +110,11 @@ FT_BEGIN_HEADER
/* face object, like creating a new FT_Size for it, or setting a */
/* transformation through FT_Set_Transform()! */
/* */
- typedef FT_Error (*FTC_Face_Requester)( FTC_FaceID face_id,
- FT_Library library,
- FT_Pointer request_data,
- FT_Face* aface );
+ typedef FT_Error
+ (*FTC_Face_Requester)( FTC_FaceID face_id,
+ FT_Library library,
+ FT_Pointer request_data,
+ FT_Face* aface );
/*************************************************************************/
@@ -209,13 +210,14 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FTC_Manager_New( FT_Library library,
- FT_UInt max_faces,
- FT_UInt max_sizes,
- FT_ULong max_bytes,
- FTC_Face_Requester requester,
- FT_Pointer req_data,
- FTC_Manager *amanager );
+ FT_EXPORT( FT_Error )
+ FTC_Manager_New( FT_Library library,
+ FT_UInt max_faces,
+ FT_UInt max_sizes,
+ FT_ULong max_bytes,
+ FTC_Face_Requester requester,
+ FT_Pointer req_data,
+ FTC_Manager *amanager );
/*************************************************************************/
@@ -230,7 +232,8 @@ FT_BEGIN_HEADER
/* <InOut> */
/* manager :: A handle to the manager. */
/* */
- FT_EXPORT( void ) FTC_Manager_Reset( FTC_Manager manager );
+ FT_EXPORT( void )
+ FTC_Manager_Reset( FTC_Manager manager );
/*************************************************************************/
@@ -244,7 +247,8 @@ FT_BEGIN_HEADER
/* <Input> */
/* manager :: A handle to the target cache manager object. */
/* */
- FT_EXPORT( void ) FTC_Manager_Done( FTC_Manager manager );
+ FT_EXPORT( void )
+ FTC_Manager_Done( FTC_Manager manager );
/*************************************************************************/
@@ -279,9 +283,10 @@ FT_BEGIN_HEADER
/* the FT_Set_Transform() function) on a returned face! If you need */
/* to transform glyphs, do it yourself after glyph loading. */
/* */
- FT_EXPORT( FT_Error ) FTC_Manager_Lookup_Face( FTC_Manager manager,
- FTC_FaceID face_id,
- FT_Face *aface );
+ FT_EXPORT( FT_Error )
+ FTC_Manager_Lookup_Face( FTC_Manager manager,
+ FTC_FaceID face_id,
+ FT_Face *aface );
/*************************************************************************/
@@ -323,10 +328,11 @@ FT_BEGIN_HEADER
/* The returned size object is the face's current size, which means */
/* that you can call FT_Load_Glyph() with the face if you need to. */
/* */
- FT_EXPORT( FT_Error ) FTC_Manager_Lookup_Size( FTC_Manager manager,
- FTC_Font font,
- FT_Face *aface,
- FT_Size *asize );
+ FT_EXPORT( FT_Error )
+ FTC_Manager_Lookup_Size( FTC_Manager manager,
+ FTC_Font font,
+ FT_Face *aface,
+ FT_Size *asize );
/* a cache class is used to describe a unique cache type to the manager */
@@ -335,10 +341,10 @@ FT_BEGIN_HEADER
/* this must be used internally for the moment */
- FT_EXPORT( FT_Error ) FTC_Manager_Register_Cache(
- FTC_Manager manager,
- FTC_Cache_Class* clazz,
- FTC_Cache *acache );
+ FT_EXPORT( FT_Error )
+ FTC_Manager_Register_Cache( FTC_Manager manager,
+ FTC_Cache_Class* clazz,
+ FTC_Cache *acache );
/* */
diff --git a/include/freetype/ftglyph.h b/include/freetype/ftglyph.h
index 0e27c04..747cea1 100644
--- a/include/freetype/ftglyph.h
+++ b/include/freetype/ftglyph.h
@@ -182,8 +182,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Get_Glyph( FT_GlyphSlot slot,
- FT_Glyph *aglyph );
+ FT_EXPORT( FT_Error )
+ FT_Get_Glyph( FT_GlyphSlot slot,
+ FT_Glyph *aglyph );
/*************************************************************************/
@@ -204,8 +205,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Glyph_Copy( FT_Glyph source,
- FT_Glyph *target );
+ FT_EXPORT( FT_Error )
+ FT_Glyph_Copy( FT_Glyph source,
+ FT_Glyph *target );
/*************************************************************************/
@@ -233,9 +235,10 @@ FT_BEGIN_HEADER
/* The 2x2 transformation matrix is also applied to the glyph's */
/* advance vector. */
/* */
- FT_EXPORT( FT_Error ) FT_Glyph_Transform( FT_Glyph glyph,
- FT_Matrix* matrix,
- FT_Vector* delta );
+ FT_EXPORT( FT_Error )
+ FT_Glyph_Transform( FT_Glyph glyph,
+ FT_Matrix* matrix,
+ FT_Vector* delta );
/* */
@@ -311,9 +314,10 @@ FT_BEGIN_HEADER
};
- FT_EXPORT( void ) FT_Glyph_Get_CBox( FT_Glyph glyph,
- FT_UInt bbox_mode,
- FT_BBox *acbox );
+ FT_EXPORT( void )
+ FT_Glyph_Get_CBox( FT_Glyph glyph,
+ FT_UInt bbox_mode,
+ FT_BBox *acbox );
/*************************************************************************/
@@ -387,10 +391,11 @@ FT_BEGIN_HEADER
/* This function will always fail if the glyph's format isn't */
/* scalable. */
/* */
- FT_EXPORT( FT_Error ) FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
- FT_ULong render_mode,
- FT_Vector* origin,
- FT_Bool destroy );
+ FT_EXPORT( FT_Error )
+ FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
+ FT_ULong render_mode,
+ FT_Vector* origin,
+ FT_Bool destroy );
/*************************************************************************/
@@ -404,7 +409,8 @@ FT_BEGIN_HEADER
/* <Input> */
/* glyph :: A handle to the target glyph object. */
/* */
- FT_EXPORT( void ) FT_Done_Glyph( FT_Glyph glyph );
+ FT_EXPORT( void )
+ FT_Done_Glyph( FT_Glyph glyph );
/* other helpful functions */
@@ -434,8 +440,9 @@ FT_BEGIN_HEADER
/* <Note> */
/* The result is undefined if either `a' or `b' is zero. */
/* */
- FT_EXPORT( void ) FT_Matrix_Multiply( FT_Matrix* a,
- FT_Matrix* b );
+ FT_EXPORT( void )
+ FT_Matrix_Multiply( FT_Matrix* a,
+ FT_Matrix* b );
/*************************************************************************/
@@ -453,7 +460,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Matrix_Invert( FT_Matrix* matrix );
+ FT_EXPORT( FT_Error )
+ FT_Matrix_Invert( FT_Matrix* matrix );
/* */
diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h
index 2f8ab7e..5b25999 100644
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -424,8 +424,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* Error code. 0 means success. */
/* */
- typedef int (*FT_Outline_MoveTo_Func)( FT_Vector* to,
- void* user );
+ typedef int
+ (*FT_Outline_MoveTo_Func)( FT_Vector* to,
+ void* user );
/*************************************************************************/
@@ -448,8 +449,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* Error code. 0 means success. */
/* */
- typedef int (*FT_Outline_LineTo_Func)( FT_Vector* to,
- void* user );
+ typedef int
+ (*FT_Outline_LineTo_Func)( FT_Vector* to,
+ void* user );
/*************************************************************************/
@@ -476,9 +478,10 @@ FT_BEGIN_HEADER
/* <Return> */
/* Error code. 0 means success. */
/* */
- typedef int (*FT_Outline_ConicTo_Func)( FT_Vector* control,
- FT_Vector* to,
- void* user );
+ typedef int
+ (*FT_Outline_ConicTo_Func)( FT_Vector* control,
+ FT_Vector* to,
+ void* user );
/*************************************************************************/
@@ -505,10 +508,11 @@ FT_BEGIN_HEADER
/* <Return> */
/* Error code. 0 means success. */
/* */
- typedef int (*FT_Outline_CubicTo_Func)( FT_Vector* control1,
- FT_Vector* control2,
- FT_Vector* to,
- void* user );
+ typedef int
+ (*FT_Outline_CubicTo_Func)( FT_Vector* control1,
+ FT_Vector* control2,
+ FT_Vector* to,
+ void* user );
/*************************************************************************/
@@ -750,10 +754,11 @@ FT_BEGIN_HEADER
/* Otherwise, the callback is only called once per scan-line, and */
/* only for those scanlines that do have `gray' pixels on them. */
/* */
- typedef void (*FT_Raster_Span_Func)( int y,
- int count,
- FT_Span* spans,
- void* user );
+ typedef void
+ (*FT_Raster_Span_Func)( int y,
+ int count,
+ FT_Span* spans,
+ void* user );
/*************************************************************************/
@@ -777,9 +782,10 @@ FT_BEGIN_HEADER
/* <Return> */
/* 1 if the pixel is `set', 0 otherwise. */
/* */
- typedef int (*FT_Raster_BitTest_Func)( int y,
- int x,
- void* user );
+ typedef int
+ (*FT_Raster_BitTest_Func)( int y,
+ int x,
+ void* user );
/*************************************************************************/
@@ -802,9 +808,10 @@ FT_BEGIN_HEADER
/* <Return> */
/* 1 if the pixel is `set', 0 otherwise. */
/* */
- typedef void (*FT_Raster_BitSet_Func)( int y,
- int x,
- void* user );
+ typedef void
+ (*FT_Raster_BitSet_Func)( int y,
+ int x,
+ void* user );
/*************************************************************************/
@@ -944,8 +951,9 @@ FT_BEGIN_HEADER
/* FreeType memory allocator. However, this field can be completely */
/* ignored by a given raster implementation. */
/* */
- typedef int (*FT_Raster_New_Func)( void* memory,
- FT_Raster* raster );
+ typedef int
+ (*FT_Raster_New_Func)( void* memory,
+ FT_Raster* raster );
/*************************************************************************/
@@ -959,7 +967,8 @@ FT_BEGIN_HEADER
/* <Input> */
/* raster :: A handle to the raster object. */
/* */
- typedef void (*FT_Raster_Done_Func)( FT_Raster raster );
+ typedef void
+ (*FT_Raster_Done_Func)( FT_Raster raster );
/*************************************************************************/
@@ -989,9 +998,10 @@ FT_BEGIN_HEADER
/* passed to the raster constructor). However, this is not */
/* recommended for efficiency purposes. */
/* */
- typedef void (*FT_Raster_Reset_Func)( FT_Raster raster,
- unsigned char* pool_base,
- unsigned long pool_size );
+ typedef void
+ (*FT_Raster_Reset_Func)( FT_Raster raster,
+ unsigned char* pool_base,
+ unsigned long pool_size );
/*************************************************************************/
@@ -1012,9 +1022,10 @@ FT_BEGIN_HEADER
/* */
/* args :: A pointer to the new mode/property to use. */
/* */
- typedef int (*FT_Raster_Set_Mode_Func)( FT_Raster raster,
- unsigned long mode,
- void* args );
+ typedef int
+ (*FT_Raster_Set_Mode_Func)( FT_Raster raster,
+ unsigned long mode,
+ void* args );
/*************************************************************************/
@@ -1051,8 +1062,9 @@ FT_BEGIN_HEADER
/* examples of distinct implementations which support direct */
/* composition). */
/* */
- typedef int (*FT_Raster_Render_Func)( FT_Raster raster,
- FT_Raster_Params* params );
+ typedef int
+ (*FT_Raster_Render_Func)( FT_Raster raster,
+ FT_Raster_Params* params );
/*************************************************************************/
diff --git a/include/freetype/ftlist.h b/include/freetype/ftlist.h
index 814ef08..a8bbf50 100644
--- a/include/freetype/ftlist.h
+++ b/include/freetype/ftlist.h
@@ -84,8 +84,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* List node. NULL if it wasn't found. */
/* */
- FT_EXPORT( FT_ListNode ) FT_List_Find( FT_List list,
- void* data );
+ FT_EXPORT( FT_ListNode )
+ FT_List_Find( FT_List list,
+ void* data );
/*************************************************************************/
@@ -100,8 +101,9 @@ FT_BEGIN_HEADER
/* list :: A pointer to the parent list. */
/* node :: The node to append. */
/* */
- FT_EXPORT( void ) FT_List_Add( FT_List list,
- FT_ListNode node );
+ FT_EXPORT( void )
+ FT_List_Add( FT_List list,
+ FT_ListNode node );
/*************************************************************************/
@@ -116,8 +118,9 @@ FT_BEGIN_HEADER
/* list :: A pointer to parent list. */
/* node :: The node to insert. */
/* */
- FT_EXPORT( void ) FT_List_Insert( FT_List list,
- FT_ListNode node );
+ FT_EXPORT( void )
+ FT_List_Insert( FT_List list,
+ FT_ListNode node );
/*************************************************************************/
@@ -135,8 +138,9 @@ FT_BEGIN_HEADER
/* <InOut> */
/* list :: A pointer to the parent list. */
/* */
- FT_EXPORT( void ) FT_List_Remove( FT_List list,
- FT_ListNode node );
+ FT_EXPORT( void )
+ FT_List_Remove( FT_List list,
+ FT_ListNode node );
/*************************************************************************/
@@ -152,8 +156,9 @@ FT_BEGIN_HEADER
/* list :: A pointer to the parent list. */
/* node :: The node to move. */
/* */
- FT_EXPORT( void ) FT_List_Up( FT_List list,
- FT_ListNode node );
+ FT_EXPORT( void )
+ FT_List_Up( FT_List list,
+ FT_ListNode node );
/*************************************************************************/
@@ -171,8 +176,9 @@ FT_BEGIN_HEADER
/* user :: A typeless pointer passed to FT_List_Iterate(). */
/* Can be used to point to the iteration's state. */
/* */
- typedef FT_Error (*FT_List_Iterator)( FT_ListNode node,
- void* user );
+ typedef FT_Error
+ (*FT_List_Iterator)( FT_ListNode node,
+ void* user );
/*************************************************************************/
@@ -195,9 +201,10 @@ FT_BEGIN_HEADER
/* <Return> */
/* The result (a FreeType error code) of the last iterator call. */
/* */
- FT_EXPORT( FT_Error ) FT_List_Iterate( FT_List list,
- FT_List_Iterator iterator,
- void* user );
+ FT_EXPORT( FT_Error )
+ FT_List_Iterate( FT_List list,
+ FT_List_Iterator iterator,
+ void* user );
/*************************************************************************/
@@ -218,9 +225,10 @@ FT_BEGIN_HEADER
/* user :: A typeless pointer passed to FT_List_Iterate(). It can */
/* be used to point to the iteration's state. */
/* */
- typedef void (*FT_List_Destructor)( FT_Memory memory,
- void* data,
- void* user );
+ typedef void
+ (*FT_List_Destructor)( FT_Memory memory,
+ void* data,
+ void* user );
/*************************************************************************/
@@ -242,10 +250,11 @@ FT_BEGIN_HEADER
/* user :: A user-supplied field which is passed as the last */
/* argument to the destructor. */
/* */
- FT_EXPORT( void ) FT_List_Finalize( FT_List list,
- FT_List_Destructor destroy,
- FT_Memory memory,
- void* user );
+ FT_EXPORT( void )
+ FT_List_Finalize( FT_List list,
+ FT_List_Destructor destroy,
+ FT_Memory memory,
+ void* user );
/* */
diff --git a/include/freetype/ftmac.h b/include/freetype/ftmac.h
index 4c7f069..c105f32 100644
--- a/include/freetype/ftmac.h
+++ b/include/freetype/ftmac.h
@@ -85,10 +85,11 @@ FT_BEGIN_HEADER
/* error = FT_New_Face_From_FOND( library, fond, 0, &face ); */
/* } */
/* */
- FT_EXPORT( FT_Error ) FT_New_Face_From_FOND( FT_Library library,
- Handle fond,
- FT_Long face_index,
- FT_Face *aface );
+ FT_EXPORT( FT_Error )
+ FT_New_Face_From_FOND( FT_Library library,
+ Handle fond,
+ FT_Long face_index,
+ FT_Face *aface );
/* */
diff --git a/include/freetype/ftmm.h b/include/freetype/ftmm.h
index 137ce84..f1e4203 100644
--- a/include/freetype/ftmm.h
+++ b/include/freetype/ftmm.h
@@ -100,16 +100,19 @@ FT_BEGIN_HEADER
/* */
- typedef FT_Error (*FT_Get_MM_Func)( FT_Face face,
- FT_Multi_Master* master );
+ typedef FT_Error
+ (*FT_Get_MM_Func)( FT_Face face,
+ FT_Multi_Master* master );
- typedef FT_Error (*FT_Set_MM_Design_Func)( FT_Face face,
- FT_UInt num_coords,
- FT_Long* coords );
+ typedef FT_Error
+ (*FT_Set_MM_Design_Func)( FT_Face face,
+ FT_UInt num_coords,
+ FT_Long* coords );
- typedef FT_Error (*FT_Set_MM_Blend_Func)( FT_Face face,
- FT_UInt num_coords,
- FT_Long* coords );
+ typedef FT_Error
+ (*FT_Set_MM_Blend_Func)( FT_Face face,
+ FT_UInt num_coords,
+ FT_Long* coords );
/*************************************************************************/
@@ -129,8 +132,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Get_Multi_Master( FT_Face face,
- FT_Multi_Master *amaster );
+ FT_EXPORT( FT_Error )
+ FT_Get_Multi_Master( FT_Face face,
+ FT_Multi_Master *amaster );
/*************************************************************************/
@@ -154,10 +158,10 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Set_MM_Design_Coordinates(
- FT_Face face,
- FT_UInt num_coords,
- FT_Long* coords );
+ FT_EXPORT( FT_Error )
+ FT_Set_MM_Design_Coordinates( FT_Face face,
+ FT_UInt num_coords,
+ FT_Long* coords );
/*************************************************************************/
@@ -182,10 +186,10 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Set_MM_Blend_Coordinates(
- FT_Face face,
- FT_UInt num_coords,
- FT_Fixed* coords );
+ FT_EXPORT( FT_Error )
+ FT_Set_MM_Blend_Coordinates( FT_Face face,
+ FT_UInt num_coords,
+ FT_Fixed* coords );
/* */
diff --git a/include/freetype/ftmodule.h b/include/freetype/ftmodule.h
index 3fcc95e..be219ae 100644
--- a/include/freetype/ftmodule.h
+++ b/include/freetype/ftmodule.h
@@ -63,14 +63,18 @@ FT_BEGIN_HEADER
} FT_Module_Flags;
- typedef void (*FT_Module_Interface)( void );
+ typedef void
+ (*FT_Module_Interface)( void );
- typedef FT_Error (*FT_Module_Constructor)( FT_Module module );
+ typedef FT_Error
+ (*FT_Module_Constructor)( FT_Module module );
- typedef void (*FT_Module_Destructor)( FT_Module module );
+ typedef void
+ (*FT_Module_Destructor)( FT_Module module );
- typedef FT_Module_Interface (*FT_Module_Requester)( FT_Module module,
- const char* name );
+ typedef FT_Module_Interface
+ (*FT_Module_Requester)( FT_Module module,
+ const char* name );
/*************************************************************************/
@@ -142,8 +146,9 @@ FT_BEGIN_HEADER
/* An error will be returned if a module already exists by that name, */
/* or if the module requires a version of FreeType that is too great. */
/* */
- FT_EXPORT( FT_Error ) FT_Add_Module( FT_Library library,
- const FT_Module_Class* clazz );
+ FT_EXPORT( FT_Error )
+ FT_Add_Module( FT_Library library,
+ const FT_Module_Class* clazz );
/*************************************************************************/
@@ -166,8 +171,9 @@ FT_BEGIN_HEADER
/* You should better be familiar with FreeType internals to know */
/* which module to look for :-) */
/* */
- FT_EXPORT( FT_Module ) FT_Get_Module( FT_Library library,
- const char* module_name );
+ FT_EXPORT( FT_Module )
+ FT_Get_Module( FT_Library library,
+ const char* module_name );
/*************************************************************************/
@@ -190,8 +196,9 @@ FT_BEGIN_HEADER
/* <Note> */
/* The module object is destroyed by the function in case of success. */
/* */
- FT_EXPORT( FT_Error ) FT_Remove_Module( FT_Library library,
- FT_Module module );
+ FT_EXPORT( FT_Error )
+ FT_Remove_Module( FT_Library library,
+ FT_Module module );
/*************************************************************************/
@@ -213,8 +220,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_New_Library( FT_Memory memory,
- FT_Library *alibrary );
+ FT_EXPORT( FT_Error )
+ FT_New_Library( FT_Memory memory,
+ FT_Library *alibrary );
/*************************************************************************/
@@ -232,11 +240,13 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Done_Library( FT_Library library );
+ FT_EXPORT( FT_Error )
+ FT_Done_Library( FT_Library library );
- typedef void (*FT_DebugHook_Func)( void* arg );
+ typedef void
+ (*FT_DebugHook_Func)( void* arg );
/*************************************************************************/
@@ -262,9 +272,10 @@ FT_BEGIN_HEADER
/* Currently, four debug hook slots are available, but only two (for */
/* the TrueType and the Type 1 interpreter) are defined. */
/* */
- FT_EXPORT( void ) FT_Set_Debug_Hook( FT_Library library,
- FT_UInt hook_index,
- FT_DebugHook_Func debug_hook );
+ FT_EXPORT( void )
+ FT_Set_Debug_Hook( FT_Library library,
+ FT_UInt hook_index,
+ FT_DebugHook_Func debug_hook );
@@ -281,7 +292,8 @@ FT_BEGIN_HEADER
/* <InOut> */
/* library :: A handle to a new library object. */
/* */
- FT_EXPORT( void ) FT_Add_Default_Modules( FT_Library library );
+ FT_EXPORT( void )
+ FT_Add_Default_Modules( FT_Library library );
/* */
diff --git a/include/freetype/ftoutln.h b/include/freetype/ftoutln.h
index da4d2cb..c475baa 100644
--- a/include/freetype/ftoutln.h
+++ b/include/freetype/ftoutln.h
@@ -95,10 +95,10 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means sucess. */
/* */
- FT_EXPORT( FT_Error ) FT_Outline_Decompose(
- FT_Outline* outline,
- const FT_Outline_Funcs* interface,
- void* user );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Decompose( FT_Outline* outline,
+ const FT_Outline_Funcs* interface,
+ void* user );
/*************************************************************************/
@@ -130,14 +130,15 @@ FT_BEGIN_HEADER
/* The reason why this function takes a `library' parameter is simply */
/* to use the library's memory allocator. */
/* */
- FT_EXPORT( FT_Error ) FT_Outline_New( FT_Library library,
- FT_UInt numPoints,
- FT_Int numContours,
- FT_Outline *anoutline );
+ FT_EXPORT( FT_Error )
+ FT_Outline_New( FT_Library library,
+ FT_UInt numPoints,
+ FT_Int numContours,
+ FT_Outline *anoutline );
- FT_EXPORT( FT_Error ) FT_Outline_New_Internal(
- FT_Memory memory,
+ FT_EXPORT( FT_Error )
+ FT_Outline_New_Internal( FT_Memory memory,
FT_UInt numPoints,
FT_Int numContours,
FT_Outline *anoutline );
@@ -167,12 +168,14 @@ FT_BEGIN_HEADER
/* The reason why this function takes an `library' parameter is */
/* simply to use FT_Free(). */
/* */
- FT_EXPORT( FT_Error ) FT_Outline_Done( FT_Library library,
- FT_Outline* outline );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Done( FT_Library library,
+ FT_Outline* outline );
- FT_EXPORT( FT_Error ) FT_Outline_Done_Internal( FT_Memory memory,
- FT_Outline* outline );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Done_Internal( FT_Memory memory,
+ FT_Outline* outline );
/*************************************************************************/
@@ -198,8 +201,9 @@ FT_BEGIN_HEADER
/* <Output> */
/* acbox :: The outline's control box. */
/* */
- FT_EXPORT( void ) FT_Outline_Get_CBox( FT_Outline* outline,
- FT_BBox *acbox );
+ FT_EXPORT( void )
+ FT_Outline_Get_CBox( FT_Outline* outline,
+ FT_BBox *acbox );
/*************************************************************************/
@@ -218,9 +222,10 @@ FT_BEGIN_HEADER
/* */
/* yOffset :: The vertical offset. */
/* */
- FT_EXPORT( void ) FT_Outline_Translate( FT_Outline* outline,
- FT_Pos xOffset,
- FT_Pos yOffset );
+ FT_EXPORT( void )
+ FT_Outline_Translate( FT_Outline* outline,
+ FT_Pos xOffset,
+ FT_Pos yOffset );
/*************************************************************************/
@@ -242,8 +247,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_EXPORT( FT_Error ) FT_Outline_Copy( FT_Outline* source,
- FT_Outline *target );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Copy( FT_Outline* source,
+ FT_Outline *target );
/*************************************************************************/
@@ -265,8 +271,9 @@ FT_BEGIN_HEADER
/* You can use FT_Outline_Translate() if you need to translate the */
/* outline's points. */
/* */
- FT_EXPORT( void ) FT_Outline_Transform( FT_Outline* outline,
- FT_Matrix* matrix );
+ FT_EXPORT( void )
+ FT_Outline_Transform( FT_Outline* outline,
+ FT_Matrix* matrix );
/*************************************************************************/
@@ -288,7 +295,8 @@ FT_BEGIN_HEADER
/* It shouldn't be used by a normal client application, unless it */
/* knows what it is doing. */
/* */
- FT_EXPORT( void ) FT_Outline_Reverse( FT_Outline* outline );
+ FT_EXPORT( void )
+ FT_Outline_Reverse( FT_Outline* outline );
/*************************************************************************/
@@ -317,9 +325,10 @@ FT_BEGIN_HEADER
/* */
/* It will use the raster correponding to the default glyph format. */
/* */
- FT_EXPORT( FT_Error ) FT_Outline_Get_Bitmap( FT_Library library,
- FT_Outline* outline,
- FT_Bitmap *abitmap );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Get_Bitmap( FT_Library library,
+ FT_Outline* outline,
+ FT_Bitmap *abitmap );
/*************************************************************************/
@@ -353,9 +362,10 @@ FT_BEGIN_HEADER
/* converter is called, which means that the value you give to it is */
/* actually ignored. */
/* */
- FT_EXPORT( FT_Error ) FT_Outline_Render( FT_Library library,
- FT_Outline* outline,
- FT_Raster_Params* params );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Render( FT_Library library,
+ FT_Outline* outline,
+ FT_Raster_Params* params );
/* */
diff --git a/include/freetype/ftrender.h b/include/freetype/ftrender.h
index c6a0d2e..4cf824f 100644
--- a/include/freetype/ftrender.h
+++ b/include/freetype/ftrender.h
@@ -37,24 +37,31 @@ FT_BEGIN_HEADER
/* create a new glyph object */
- typedef FT_Error (*FT_Glyph_Init_Func) ( FT_Glyph glyph,
- FT_GlyphSlot slot );
+ typedef FT_Error
+ (*FT_Glyph_Init_Func)( FT_Glyph glyph,
+ FT_GlyphSlot slot );
/* destroys a given glyph object */
- typedef void (*FT_Glyph_Done_Func) ( FT_Glyph glyph );
+ typedef void
+ (*FT_Glyph_Done_Func)( FT_Glyph glyph );
- typedef void (*FT_Glyph_Transform_Func)( FT_Glyph glyph,
- FT_Matrix* matrix,
- FT_Vector* delta );
+ typedef void
+ (*FT_Glyph_Transform_Func)( FT_Glyph glyph,
+ FT_Matrix* matrix,
+ FT_Vector* delta );
- typedef void (*FT_Glyph_BBox_Func) ( FT_Glyph glyph,
- FT_BBox* abbox );
+ typedef void
+ (*FT_Glyph_BBox_Func)( FT_Glyph glyph,
+ FT_BBox* abbox );
- typedef FT_Error (*FT_Glyph_Copy_Func) ( FT_Glyph source,
- FT_Glyph target );
+ typedef FT_Error
+ (*FT_Glyph_Copy_Func)( FT_Glyph source,
+ FT_Glyph target );
+
+ typedef FT_Error
+ (*FT_Glyph_Prepare_Func)( FT_Glyph glyph,
+ FT_GlyphSlot slot );
- typedef FT_Error (*FT_Glyph_Prepare_Func) ( FT_Glyph glyph,
- FT_GlyphSlot slot );
struct FT_Glyph_Class_
{
@@ -69,23 +76,27 @@ FT_BEGIN_HEADER
};
- typedef FT_Error (*FTRenderer_render) ( FT_Renderer renderer,
- FT_GlyphSlot slot,
- FT_UInt mode,
- FT_Vector* origin );
+ typedef FT_Error
+ (*FTRenderer_render)( FT_Renderer renderer,
+ FT_GlyphSlot slot,
+ FT_UInt mode,
+ FT_Vector* origin );
- typedef FT_Error (*FTRenderer_transform)( FT_Renderer renderer,
- FT_GlyphSlot slot,
- FT_Matrix* matrix,
- FT_Vector* delta );
+ typedef FT_Error
+ (*FTRenderer_transform)( FT_Renderer renderer,
+ FT_GlyphSlot slot,
+ FT_Matrix* matrix,
+ FT_Vector* delta );
- typedef void (*FTRenderer_getCBox) ( FT_Renderer renderer,
- FT_GlyphSlot slot,
- FT_BBox* cbox );
+ typedef void
+ (*FTRenderer_getCBox)( FT_Renderer renderer,
+ FT_GlyphSlot slot,
+ FT_BBox* cbox );
- typedef FT_Error (*FTRenderer_setMode) ( FT_Renderer renderer,
- FT_ULong mode_tag,
- FT_Pointer mode_ptr );
+ typedef FT_Error
+ (*FTRenderer_setMode)( FT_Renderer renderer,
+ FT_ULong mode_tag,
+ FT_Pointer mode_ptr );
/*************************************************************************/
@@ -152,8 +163,9 @@ FT_BEGIN_HEADER
/* To add a new renderer, simply use FT_Add_Module(). To retrieve a */
/* renderer by its name, use FT_Get_Module(). */
/* */
- FT_EXPORT( FT_Renderer ) FT_Get_Renderer( FT_Library library,
- FT_Glyph_Format format );
+ FT_EXPORT( FT_Renderer )
+ FT_Get_Renderer( FT_Library library,
+ FT_Glyph_Format format );
/*************************************************************************/
@@ -183,10 +195,11 @@ FT_BEGIN_HEADER
/* */
/* This doesn't change the current renderer for other formats. */
/* */
- FT_EXPORT( FT_Error ) FT_Set_Renderer( FT_Library library,
- FT_Renderer renderer,
- FT_UInt num_params,
- FT_Parameter* parameters );
+ FT_EXPORT( FT_Error )
+ FT_Set_Renderer( FT_Library library,
+ FT_Renderer renderer,
+ FT_UInt num_params,
+ FT_Parameter* parameters );
/* */
diff --git a/include/freetype/ftsnames.h b/include/freetype/ftsnames.h
index b81b314..c429605 100644
--- a/include/freetype/ftsnames.h
+++ b/include/freetype/ftsnames.h
@@ -113,7 +113,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* The number of strings in the `name' table. */
/* */
- FT_EXPORT( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face );
+ FT_EXPORT( FT_UInt )
+ FT_Get_Sfnt_Name_Count( FT_Face face );
/*************************************************************************/
@@ -143,9 +144,10 @@ FT_BEGIN_HEADER
/* `name' table entries, then do a loop until you get the right */
/* platform, encoding, and name ID. */
/* */
- FT_EXPORT( FT_Error ) FT_Get_Sfnt_Name( FT_Face face,
- FT_UInt index,
- FT_SfntName *aname );
+ FT_EXPORT( FT_Error )
+ FT_Get_Sfnt_Name( FT_Face face,
+ FT_UInt index,
+ FT_SfntName *aname );
/* */
diff --git a/include/freetype/ftsynth.h b/include/freetype/ftsynth.h
index 9024319..9504cfb 100644
--- a/include/freetype/ftsynth.h
+++ b/include/freetype/ftsynth.h
@@ -48,13 +48,15 @@ FT_BEGIN_HEADER
/* This code is completely experimental -- use with care! */
/* It will probably be completely rewritten in the future */
/* or even integrated into the library. */
- FT_EXPORT( FT_Error ) FT_Outline_Embolden( FT_GlyphSlot original,
- FT_Outline* outline,
- FT_Pos* advance );
-
- FT_EXPORT( FT_Error ) FT_Outline_Oblique( FT_GlyphSlot original,
- FT_Outline* outline,
- FT_Pos* advance );
+ FT_EXPORT( FT_Error )
+ FT_Outline_Embolden( FT_GlyphSlot original,
+ FT_Outline* outline,
+ FT_Pos* advance );
+
+ FT_EXPORT( FT_Error )
+ FT_Outline_Oblique( FT_GlyphSlot original,
+ FT_Outline* outline,
+ FT_Pos* advance );
FT_END_HEADER
diff --git a/include/freetype/ftsystem.h b/include/freetype/ftsystem.h
index 151a80f..0999619 100644
--- a/include/freetype/ftsystem.h
+++ b/include/freetype/ftsystem.h
@@ -80,8 +80,9 @@ FT_BEGIN_HEADER
/* @return: */
/* Address of new memory block. 0 in case of failure. */
/* */
- typedef void* (*FT_Alloc_Func)( FT_Memory memory,
- long size );
+ typedef void*
+ (*FT_Alloc_Func)( FT_Memory memory,
+ long size );
/*************************************************************************/
@@ -97,8 +98,9 @@ FT_BEGIN_HEADER
/* */
/* block :: The address of the target memory block. */
/* */
- typedef void (*FT_Free_Func)( FT_Memory memory,
- void* block );
+ typedef void
+ (*FT_Free_Func)( FT_Memory memory,
+ void* block );
/*************************************************************************/
@@ -124,10 +126,11 @@ FT_BEGIN_HEADER
/* @note: */
/* In case of error, the old block must still be available. */
/* */
- typedef void* (*FT_Realloc_Func)( FT_Memory memory,
- long cur_size,
- long new_size,
- void* block );
+ typedef void*
+ (*FT_Realloc_Func)( FT_Memory memory,
+ long cur_size,
+ long new_size,
+ void* block );
/*************************************************************************/
@@ -215,10 +218,11 @@ FT_BEGIN_HEADER
/* This function might be called to perform a seek or skip operation */
/* with a `count' of 0. */
/* */
- typedef unsigned long (*FT_Stream_IO)( FT_Stream stream,
- unsigned long offset,
- unsigned char* buffer,
- unsigned long count );
+ typedef unsigned long
+ (*FT_Stream_IO)( FT_Stream stream,
+ unsigned long offset,
+ unsigned char* buffer,
+ unsigned long count );
/*************************************************************************/
@@ -232,7 +236,8 @@ FT_BEGIN_HEADER
/* @input: */
/* stream :: A handle to the target stream. */
/* */
- typedef void (*FT_Stream_Close)( FT_Stream stream );
+ typedef void
+ (*FT_Stream_Close)( FT_Stream stream );
/*************************************************************************/
diff --git a/include/freetype/fttrigon.h b/include/freetype/fttrigon.h
index 391dcbb..c2356f7 100644
--- a/include/freetype/fttrigon.h
+++ b/include/freetype/fttrigon.h
@@ -25,235 +25,251 @@
FT_BEGIN_HEADER
- /***************************************************************************
- *
- * @section:
- * computations
- *
- */
-
-
- /***************************************************************************
- *
- * @type:
- * FT_Angle
- *
- * @description:
- * This type is used to model angle values in FreeType. Note that
- * the angle is a 16.16 fixed float value expressed in degrees.
- */
+ /*************************************************************************/
+ /* */
+ /* @section: */
+ /* computations */
+ /* */
+ /*************************************************************************/
+
+
+ /*************************************************************************/
+ /* */
+ /* @type: */
+ /* FT_Angle */
+ /* */
+ /* @description: */
+ /* This type is used to model angle values in FreeType. Note that */
+ /* the angle is a 16.16 fixed float value expressed in degrees. */
+ /* */
typedef FT_Fixed FT_Angle;
- /***************************************************************************
- *
- * @macro:
- * FT_ANGLE_PI
- *
- * @description:
- * The angle pi expressed in @FT_Angle units.
- */
+ /*************************************************************************/
+ /* */
+ /* @macro: */
+ /* FT_ANGLE_PI */
+ /* */
+ /* @description: */
+ /* The angle pi expressed in @FT_Angle units. */
+ /* */
#define FT_ANGLE_PI ( 180L << 16 )
- /***************************************************************************
- *
- * @macro:
- * FT_ANGLE_2PI
- *
- * @description:
- * The angle 2*pi expressed in @FT_Angle units.
- */
+ /*************************************************************************/
+ /* */
+ /* @macro: */
+ /* FT_ANGLE_2PI */
+ /* */
+ /* @description: */
+ /* The angle 2*pi expressed in @FT_Angle units. */
+ /* */
#define FT_ANGLE_2PI ( FT_ANGLE_PI * 2 )
- /***************************************************************************
- *
- * @macro:
- * FT_ANGLE_PI2
- *
- * @description:
- * The angle pi/2 expressed in @FT_Angle units.
- */
+ /*************************************************************************/
+ /* */
+ /* @macro: */
+ /* FT_ANGLE_PI2 */
+ /* */
+ /* @description: */
+ /* The angle pi/2 expressed in @FT_Angle units. */
+ /* */
#define FT_ANGLE_PI2 ( FT_ANGLE_PI / 2 )
- /***************************************************************************
- *
- * @macro:
- * FT_ANGLE_PI4
- *
- * @description:
- * The angle pi/4 expressed in @FT_Angle units.
- */
+ /*************************************************************************/
+ /* */
+ /* @macro: */
+ /* FT_ANGLE_PI4 */
+ /* */
+ /* @description: */
+ /* The angle pi/4 expressed in @FT_Angle units. */
+ /* */
#define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 )
- /***************************************************************************
- *
- * @function:
- * FT_Sin
- *
- * @description:
- * Return the sinus of a given angle in fixed point format.
- *
- * @input:
- * angle :: The input angle.
- *
- * @return:
- * The sinus value.
- *
- * @note:
- * If you need both the sinus and cosinus for a given angle, use the
- * function @FT_Vector_Unit.
- */
- FT_EXPORT( FT_Fixed ) FT_Sin( FT_Angle angle );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Cos
- *
- * @description:
- * Return the cosinus of a given angle in fixed point format.
- *
- * @input:
- * angle :: The input angle.
- *
- * @return:
- * The cosinus value.
- *
- * @note:
- * If you need both the sinus and cosinus for a given angle, use the
- * function @FT_Vector_Unit.
- */
- FT_EXPORT( FT_Fixed ) FT_Cos( FT_Angle angle );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Tan
- *
- * @description:
- * Return the tangent of a given angle in fixed point format.
- *
- * @input:
- * angle :: The input angle.
- *
- * @return:
- * The tangent value.
- */
- FT_EXPORT( FT_Fixed ) FT_Tan( FT_Angle angle );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Atan2
- *
- * @description:
- * Return the arc-tangent corresponding to a given vector (x,y) in
- * the 2d plane.
- *
- * @input:
- * x :: The horizontal vector coordinate.
- * y :: The vertical vector coordinate.
- *
- * @return:
- * The arc-tangent value (i.e. angle).
- */
- FT_EXPORT( FT_Angle ) FT_Atan2( FT_Fixed x, FT_Fixed y );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Vector_Unit
- *
- * @description:
- * Return the unit vector corresponding to a given angle. After the call,
- * the value of "vec.x" will be "sin(theta)", and the value of "vec.y"
- * will be "cos(angle)".
- *
- * This function is useful to retrieve both the sinus and cosinus of a
- * given angle quickly.
- *
- * @input:
- * vec :: The address of target vector.
- * angle :: The address of angle.
- */
- FT_EXPORT( void ) FT_Vector_Unit( FT_Vector* vec,
- FT_Angle angle );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Vector_Rotate
- *
- * @description:
- * Rotate a vector by a given angle.
- *
- * @input:
- * vec :: The address of target vector.
- * angle :: The address of angle.
- */
- FT_EXPORT( void ) FT_Vector_Rotate( FT_Vector* vec,
- FT_Angle angle );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Vector_Length
- *
- * @description:
- * Return the length of a given vector.
- *
- * @input:
- * vec :: The address of target vector.
- *
- * @return:
- * The vector length, expressed in the same units that the original
- * vector coordinates.
- */
- FT_EXPORT( FT_Fixed ) FT_Vector_Length( FT_Vector* vec );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Vector_Normalize
- *
- * @description:
- * Normalize a given vector (i.e. compute the equivalent unit vector).
- *
- * @input:
- * vec :: The address of target vector.
- */
- FT_EXPORT( void ) FT_Vector_Normalize( FT_Vector* vec );
-
-
- /***************************************************************************
- *
- * @function:
- * FT_Vector_Polarize
- *
- * @description:
- * Compute both the length and angle of a given vector.
- *
- * @input:
- * vec :: The address of source vector.
- *
- * @output:
- * length :: The vector length.
- * angle :: The vector angle.
- */
- FT_EXPORT( void ) FT_Vector_Polarize( FT_Vector* vec,
- FT_Fixed *length,
- FT_Angle *angle );
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Sin */
+ /* */
+ /* @description: */
+ /* Return the sinus of a given angle in fixed point format. */
+ /* */
+ /* @input: */
+ /* angle :: The input angle. */
+ /* */
+ /* @return: */
+ /* The sinus value. */
+ /* */
+ /* @note: */
+ /* If you need both the sinus and cosinus for a given angle, use the */
+ /* function @FT_Vector_Unit. */
+ /* */
+ FT_EXPORT( FT_Fixed )
+ FT_Sin( FT_Angle angle );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Cos */
+ /* */
+ /* @description: */
+ /* Return the cosinus of a given angle in fixed point format. */
+ /* */
+ /* @input: */
+ /* angle :: The input angle. */
+ /* */
+ /* @return: */
+ /* The cosinus value. */
+ /* */
+ /* @note: */
+ /* If you need both the sinus and cosinus for a given angle, use the */
+ /* function @FT_Vector_Unit. */
+ /* */
+ FT_EXPORT( FT_Fixed )
+ FT_Cos( FT_Angle angle );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Tan */
+ /* */
+ /* @description: */
+ /* Return the tangent of a given angle in fixed point format. */
+ /* */
+ /* @input: */
+ /* angle :: The input angle. */
+ /* */
+ /* @return: */
+ /* The tangent value. */
+ /* */
+ FT_EXPORT( FT_Fixed )
+ FT_Tan( FT_Angle angle );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Atan2 */
+ /* */
+ /* @description: */
+ /* Return the arc-tangent corresponding to a given vector (x,y) in */
+ /* the 2d plane. */
+ /* */
+ /* @input: */
+ /* x :: The horizontal vector coordinate. */
+ /* */
+ /* y :: The vertical vector coordinate. */
+ /* */
+ /* @return: */
+ /* The arc-tangent value (i.e. angle). */
+ /* */
+ FT_EXPORT( FT_Angle )
+ FT_Atan2( FT_Fixed x,
+ FT_Fixed y );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Vector_Unit */
+ /* */
+ /* @description: */
+ /* Return the unit vector corresponding to a given angle. After the */
+ /* call, the value of `vec.x' will be `sin(angle)', and the value of */
+ /* `vec.y' will be `cos(angle)'. */
+ /* */
+ /* This function is useful to retrieve both the sinus and cosinus of */
+ /* a given angle quickly. */
+ /* */
+ /* @output: */
+ /* vec :: The address of target vector. */
+ /* */
+ /* @input: */
+ /* angle :: The address of angle. */
+ /* */
+ FT_EXPORT( void )
+ FT_Vector_Unit( FT_Vector* vec,
+ FT_Angle angle );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Vector_Rotate */
+ /* */
+ /* @description: */
+ /* Rotate a vector by a given angle. */
+ /* */
+ /* @inout: */
+ /* vec :: The address of target vector. */
+ /* */
+ /* @input: */
+ /* angle :: The address of angle. */
+ /* */
+ FT_EXPORT( void )
+ FT_Vector_Rotate( FT_Vector* vec,
+ FT_Angle angle );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Vector_Length */
+ /* */
+ /* @description: */
+ /* Return the length of a given vector. */
+ /* */
+ /* @input: */
+ /* vec :: The address of target vector. */
+ /* */
+ /* @return: */
+ /* The vector length, expressed in the same units that the original */
+ /* vector coordinates. */
+ /* */
+ FT_EXPORT( FT_Fixed )
+ FT_Vector_Length( FT_Vector* vec );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Vector_Normalize */
+ /* */
+ /* @description: */
+ /* Normalize a given vector (i.e. compute the equivalent unit */
+ /* vector). */
+ /* */
+ /* @inout: */
+ /* vec :: The address of target vector. */
+ /* */
+ FT_EXPORT( void )
+ FT_Vector_Normalize( FT_Vector* vec );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Vector_Polarize */
+ /* */
+ /* @description: */
+ /* Compute both the length and angle of a given vector. */
+ /* */
+ /* @input: */
+ /* vec :: The address of source vector. */
+ /* */
+ /* @output: */
+ /* length :: The vector length. */
+ /* angle :: The vector angle. */
+ /* */
+ FT_EXPORT( void )
+ FT_Vector_Polarize( FT_Vector* vec,
+ FT_Fixed *length,
+ FT_Angle *angle );
/* */
diff --git a/include/freetype/tttables.h b/include/freetype/tttables.h
index ebf6800..9a4e312 100644
--- a/include/freetype/tttables.h
+++ b/include/freetype/tttables.h
@@ -193,7 +193,7 @@ FT_BEGIN_HEADER
FT_UShort number_Of_HMetrics;
/* The following fields are not defined by the TrueType specification */
- /* but they're used to connect the metrics header to the relevant */
+ /* but they are used to connect the metrics header to the relevant */
/* `HMTX' table. */
void* long_metrics;
@@ -293,7 +293,7 @@ FT_BEGIN_HEADER
/* module is able to read both the horizontal and vertical */
/* headers. */
/* */
- typedef struct TT_VertHeader_
+ typedef struct TT_VertHeader_
{
FT_Fixed Version;
FT_Short Ascender;
@@ -428,7 +428,7 @@ FT_BEGIN_HEADER
/* A structure used to model a TrueType PCLT table. All fields */
/* comply to the TrueType table. */
/* */
- typedef struct TT_PCLT_
+ typedef struct TT_PCLT_
{
FT_Fixed Version;
FT_ULong FontNumber;
@@ -555,8 +555,9 @@ FT_BEGIN_HEADER
/* internal use only */
- typedef void* (*FT_Get_Sfnt_Table_Func)( FT_Face face,
- FT_Sfnt_Tag tag );
+ typedef void*
+ (*FT_Get_Sfnt_Table_Func)( FT_Face face,
+ FT_Sfnt_Tag tag );
/*************************************************************************/
@@ -584,8 +585,9 @@ FT_BEGIN_HEADER
/* by the sfnt/truetype/opentype drivers. See FT_Sfnt_Tag for a */
/* list. */
/* */
- FT_EXPORT( void* ) FT_Get_Sfnt_Table( FT_Face face,
- FT_Sfnt_Tag tag );
+ FT_EXPORT( void* )
+ FT_Get_Sfnt_Table( FT_Face face,
+ FT_Sfnt_Tag tag );
/* */
diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c
index 16c1ac2..b888523 100644
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -88,11 +88,11 @@
/* */
/* They can be implemented by format-specific interfaces. */
/* */
- static
- FT_Error Get_Kerning( TT_Face face,
- FT_UInt left_glyph,
- FT_UInt right_glyph,
- FT_Vector* kerning )
+ static FT_Error
+ Get_Kerning( TT_Face face,
+ FT_UInt left_glyph,
+ FT_UInt right_glyph,
+ FT_Vector* kerning )
{
TT_Kern_0_Pair* pair;
@@ -183,12 +183,12 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- static
- FT_Error Set_Char_Sizes( TT_Size size,
- FT_F26Dot6 char_width,
- FT_F26Dot6 char_height,
- FT_UInt horz_resolution,
- FT_UInt vert_resolution )
+ static FT_Error
+ Set_Char_Sizes( TT_Size size,
+ FT_F26Dot6 char_width,
+ FT_F26Dot6 char_height,
+ FT_UInt horz_resolution,
+ FT_UInt vert_resolution )
{
FT_Size_Metrics* metrics = &size->root.metrics;
TT_Face face = (TT_Face)size->root.face;
@@ -246,10 +246,10 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- static
- FT_Error Set_Pixel_Sizes( TT_Size size,
- FT_UInt pixel_width,
- FT_UInt pixel_height )
+ static FT_Error
+ Set_Pixel_Sizes( TT_Size size,
+ FT_UInt pixel_width,
+ FT_UInt pixel_height )
{
FT_UNUSED( pixel_width );
FT_UNUSED( pixel_height );
@@ -291,11 +291,11 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- static
- FT_Error Load_Glyph( TT_GlyphSlot slot,
- TT_Size size,
- FT_UShort glyph_index,
- FT_UInt load_flags )
+ static FT_Error
+ Load_Glyph( TT_GlyphSlot slot,
+ TT_Size size,
+ FT_UShort glyph_index,
+ FT_UInt load_flags )
{
FT_Error error;
@@ -361,9 +361,9 @@
/* <Return> */
/* Glyph index. 0 means `undefined character code'. */
/* */
- static
- FT_UInt Get_Char_Index( TT_CharMap charmap,
- FT_Long charcode )
+ static FT_UInt
+ Get_Char_Index( TT_CharMap charmap,
+ FT_Long charcode )
{
FT_Error error;
TT_Face face;
@@ -406,9 +406,9 @@
/*************************************************************************/
- static
- FT_Module_Interface tt_get_interface( TT_Driver driver,
- const char* interface )
+ static FT_Module_Interface
+ tt_get_interface( TT_Driver driver,
+ const char* interface )
{
FT_Module sfntd = FT_Get_Module( driver->root.root.library,
"sfnt" );
@@ -499,7 +499,8 @@
/* format-specific interface can then be retrieved through the method */
/* interface->get_format_interface. */
/* */
- FT_EXPORT_DEF( const FT_Driver_Class* ) getDriverClass( void )
+ FT_EXPORT_DEF( const FT_Driver_Class* )
+ getDriverClass( void )
{
return &tt_driver_class;
}
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 522e33b..ada45a3 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -81,11 +81,11 @@
/* This function will much probably move to another component in the */
/* near future, but I haven't decided which yet. */
/* */
- FT_LOCAL_DEF
- void TT_Get_Metrics( TT_HoriHeader* header,
- FT_UInt index,
- FT_Short* bearing,
- FT_UShort* advance )
+ FT_LOCAL_DEF void
+ TT_Get_Metrics( TT_HoriHeader* header,
+ FT_UInt index,
+ FT_Short* bearing,
+ FT_UShort* advance )
{
TT_LongMetrics* longs_m;
FT_UShort k = header->number_Of_HMetrics;
@@ -111,12 +111,12 @@
/* `check' is true, take care of monospaced fonts by returning the */
/* advance width maximum. */
/* */
- static
- void Get_HMetrics( TT_Face face,
- FT_UInt index,
- FT_Bool check,
- FT_Short* lsb,
- FT_UShort* aw )
+ static void
+ Get_HMetrics( TT_Face face,
+ FT_UInt index,
+ FT_Bool check,
+ FT_Short* lsb,
+ FT_UShort* aw )
{
TT_Get_Metrics( &face->horizontal, index, lsb, aw );
@@ -130,9 +130,9 @@
/* Returns the advance width table for a given pixel size if it is */
/* found in the font's `hdmx' table (if any). */
/* */
- static
- FT_Byte* Get_Advance_Widths( TT_Face face,
- FT_UShort ppem )
+ static FT_Byte*
+ Get_Advance_Widths( TT_Face face,
+ FT_UShort ppem )
{
FT_UShort n;
@@ -155,11 +155,11 @@
/* */
/* Translates an array of coordinates. */
/* */
- static
- void translate_array( FT_UInt n,
- FT_Vector* coords,
- FT_Pos delta_x,
- FT_Pos delta_y )
+ static void
+ translate_array( FT_UInt n,
+ FT_Vector* coords,
+ FT_Pos delta_x,
+ FT_Pos delta_y )
{
FT_UInt k;
@@ -174,11 +174,11 @@
}
- static
- void tt_prepare_zone( TT_GlyphZone* zone,
- FT_GlyphLoad* load,
- FT_UInt start_point,
- FT_UInt start_contour )
+ static void
+ tt_prepare_zone( TT_GlyphZone* zone,
+ FT_GlyphLoad* load,
+ FT_UInt start_point,
+ FT_UInt start_contour )
{
zone->n_points = (FT_UShort)( load->outline.n_points - start_point );
zone->n_contours = (FT_Short) ( load->outline.n_contours - start_contour );
@@ -201,7 +201,7 @@
/* */
/*************************************************************************/
- FT_CALLBACK_DEF(FT_Error)
+ FT_CALLBACK_DEF( FT_Error )
TT_Access_Glyph_Frame( TT_Loader* loader,
FT_UInt glyph_index,
FT_ULong offset,
@@ -224,7 +224,7 @@
}
- FT_CALLBACK_DEF(void)
+ FT_CALLBACK_DEF( void )
TT_Forget_Glyph_Frame( TT_Loader* loader )
{
FT_Stream stream = loader->stream;
@@ -234,7 +234,7 @@
}
- FT_CALLBACK_DEF(FT_Error)
+ FT_CALLBACK_DEF( FT_Error )
TT_Load_Glyph_Header( TT_Loader* loader )
{
FT_Stream stream = loader->stream;
@@ -257,7 +257,7 @@
}
- FT_CALLBACK_DEF(FT_Error)
+ FT_CALLBACK_DEF( FT_Error )
TT_Load_Simple_Glyph( TT_Loader* load )
{
FT_Error error;
@@ -416,7 +416,7 @@
}
- FT_CALLBACK_DEF(FT_Error)
+ FT_CALLBACK_DEF( FT_Error )
TT_Load_Composite_Glyph( TT_Loader* loader )
{
FT_Error error;
@@ -506,8 +506,8 @@
}
- FT_LOCAL_DEF
- void TT_Init_Glyph_Loading( TT_Face face )
+ FT_LOCAL_DEF void
+ TT_Init_Glyph_Loading( TT_Face face )
{
face->access_glyph_frame = TT_Access_Glyph_Frame;
face->read_glyph_header = TT_Load_Glyph_Header;
@@ -527,9 +527,9 @@
/* Usually, this means scaling and hinting through bytecode */
/* interpretation. */
/* */
- static
- FT_Error TT_Process_Simple_Glyph( TT_Loader* load,
- FT_Bool debug )
+ static FT_Error
+ TT_Process_Simple_Glyph( TT_Loader* load,
+ FT_Bool debug )
{
FT_GlyphLoader* gloader = load->gloader;
FT_Outline* outline = &gloader->current.outline;
@@ -657,9 +657,9 @@
/* Loads a given truetype glyph. Handles composites and uses a */
/* TT_Loader object. */
/* */
- static
- FT_Error load_truetype_glyph( TT_Loader* loader,
- FT_UInt glyph_index )
+ static FT_Error
+ load_truetype_glyph( TT_Loader* loader,
+ FT_UInt glyph_index )
{
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
@@ -1110,9 +1110,9 @@
}
- static
- void compute_glyph_metrics( TT_Loader* loader,
- FT_UInt glyph_index )
+ static void
+ compute_glyph_metrics( TT_Loader* loader,
+ FT_UInt glyph_index )
{
FT_BBox bbox;
TT_Face face = (TT_Face)loader->face;
@@ -1313,11 +1313,11 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Load_Glyph( TT_Size size,
- TT_GlyphSlot glyph,
- FT_UShort glyph_index,
- FT_UInt load_flags )
+ FT_LOCAL_DEF FT_Error
+ TT_Load_Glyph( TT_Size size,
+ TT_GlyphSlot glyph,
+ FT_UShort glyph_index,
+ FT_UInt load_flags )
{
SFNT_Interface* sfnt;
TT_Face face;
diff --git a/src/truetype/ttgload.h b/src/truetype/ttgload.h
index 1b45f51..f09efbf 100644
--- a/src/truetype/ttgload.h
+++ b/src/truetype/ttgload.h
@@ -31,20 +31,20 @@
FT_BEGIN_HEADER
- FT_LOCAL
- void TT_Get_Metrics( TT_HoriHeader* header,
- FT_UInt index,
- FT_Short* bearing,
- FT_UShort* advance );
-
- FT_LOCAL
- void TT_Init_Glyph_Loading( TT_Face face );
-
- FT_LOCAL
- FT_Error TT_Load_Glyph( TT_Size size,
- TT_GlyphSlot glyph,
- FT_UShort glyph_index,
- FT_UInt load_flags );
+ FT_LOCAL void
+ TT_Get_Metrics( TT_HoriHeader* header,
+ FT_UInt index,
+ FT_Short* bearing,
+ FT_UShort* advance );
+
+ FT_LOCAL void
+ TT_Init_Glyph_Loading( TT_Face face );
+
+ FT_LOCAL FT_Error
+ TT_Load_Glyph( TT_Size size,
+ TT_GlyphSlot glyph,
+ FT_UShort glyph_index,
+ FT_UInt load_flags );
FT_END_HEADER
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 095c387..0dc1640 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -256,10 +256,10 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Goto_CodeRange( TT_ExecContext exec,
- FT_Int range,
- FT_Long IP )
+ FT_LOCAL_DEF FT_Error
+ TT_Goto_CodeRange( TT_ExecContext exec,
+ FT_Int range,
+ FT_Long IP )
{
TT_CodeRange* coderange;
@@ -306,11 +306,11 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Set_CodeRange( TT_ExecContext exec,
- FT_Int range,
- void* base,
- FT_Long length )
+ FT_LOCAL_DEF FT_Error
+ TT_Set_CodeRange( TT_ExecContext exec,
+ FT_Int range,
+ void* base,
+ FT_Long length )
{
FT_Assert( range >= 1 && range <= 3 );
@@ -341,9 +341,9 @@
/* <Note> */
/* Does not set the Error variable. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Clear_CodeRange( TT_ExecContext exec,
- FT_Int range )
+ FT_LOCAL_DEF FT_Error
+ TT_Clear_CodeRange( TT_ExecContext exec,
+ FT_Int range )
{
FT_Assert( range >= 1 && range <= 3 );
@@ -380,9 +380,9 @@
/* <Note> */
/* Only the glyph loader and debugger should call this function. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Destroy_Context( TT_ExecContext exec,
- FT_Memory memory )
+ FT_LOCAL_DEF FT_Error
+ TT_Destroy_Context( TT_ExecContext exec,
+ FT_Memory memory )
{
/* free composite load stack */
FREE( exec->loadStack );
@@ -432,10 +432,10 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- static
- FT_Error Init_Context( TT_ExecContext exec,
- TT_Face face,
- FT_Memory memory )
+ static FT_Error
+ Init_Context( TT_ExecContext exec,
+ TT_Face face,
+ FT_Memory memory )
{
FT_Error error;
@@ -500,12 +500,12 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- static
- FT_Error Update_Max( FT_Memory memory,
- FT_ULong* size,
- FT_Long multiplier,
- void** buff,
- FT_ULong new_max )
+ static FT_Error
+ Update_Max( FT_Memory memory,
+ FT_ULong* size,
+ FT_Long multiplier,
+ void** buff,
+ FT_ULong new_max )
{
FT_Error error;
@@ -544,10 +544,10 @@
/* <Note> */
/* Only the glyph loader and debugger should call this function. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Load_Context( TT_ExecContext exec,
- TT_Face face,
- TT_Size size )
+ FT_LOCAL_DEF FT_Error
+ TT_Load_Context( TT_ExecContext exec,
+ TT_Face face,
+ TT_Size size )
{
FT_Int i;
FT_ULong tmp;
@@ -647,9 +647,9 @@
/* <Note> */
/* Only the glyph loader and debugger should call this function. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Save_Context( TT_ExecContext exec,
- TT_Size size )
+ FT_LOCAL_DEF FT_Error
+ TT_Save_Context( TT_ExecContext exec,
+ TT_Size size )
{
FT_Int i;
@@ -694,9 +694,9 @@
/* <Note> */
/* Only the glyph loader and debugger should call this function. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Run_Context( TT_ExecContext exec,
- FT_Bool debug )
+ FT_LOCAL_DEF FT_Error
+ TT_Run_Context( TT_ExecContext exec,
+ FT_Bool debug )
{
FT_Error error;
@@ -754,7 +754,8 @@
/* documentation is in ttinterp.h */
- FT_EXPORT_DEF( TT_ExecContext ) TT_New_Context( TT_Face face )
+ FT_EXPORT_DEF( TT_ExecContext )
+ TT_New_Context( TT_Face face )
{
TT_Driver driver;
TT_ExecContext exec;
@@ -814,8 +815,8 @@
/* <Note> */
/* Only the glyph loader and debugger should call this function. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Done_Context( TT_ExecContext exec )
+ FT_LOCAL_DEF FT_Error
+ TT_Done_Context( TT_ExecContext exec )
{
/* Nothing at all for now */
FT_UNUSED( exec );
@@ -827,8 +828,9 @@
/* return length of given vector */
#ifdef FT_CONFIG_OPTION_OLD_CALCS
- static FT_F26Dot6 Norm( FT_F26Dot6 X,
- FT_F26Dot6 Y )
+ static FT_F26Dot6
+ Norm( FT_F26Dot6 X,
+ FT_F26Dot6 Y )
{
TT_INT64 T1, T2;
@@ -843,8 +845,9 @@
#else /* !FT_CONFIG_OPTION_OLD_CALCS */
- static FT_F26Dot6 Norm( FT_F26Dot6 X,
- FT_F26Dot6 Y )
+ static FT_F26Dot6
+ Norm( FT_F26Dot6 X,
+ FT_F26Dot6 Y )
{
FT_Vector v;
@@ -1210,8 +1213,8 @@
/* <Return> */
/* The aspect ratio in 16.16 format, always <= 1.0 . */
/* */
- static
- FT_Long Current_Ratio( EXEC_OP )
+ static FT_Long
+ Current_Ratio( EXEC_OP )
{
if ( CUR.tt_metrics.ratio )
return CUR.tt_metrics.ratio;
@@ -1235,8 +1238,8 @@
}
- static
- FT_Long Current_Ppem( EXEC_OP )
+ static FT_Long
+ Current_Ppem( EXEC_OP )
{
return TT_MULFIX( CUR.tt_metrics.ppem, CURRENT_Ratio() );
}
@@ -1249,41 +1252,47 @@
/*************************************************************************/
- FT_CALLBACK_DEF(FT_F26Dot6) Read_CVT( EXEC_OP_ FT_ULong index )
+ FT_CALLBACK_DEF( FT_F26Dot6 )
+ Read_CVT( EXEC_OP_ FT_ULong index )
{
return CUR.cvt[index];
}
- FT_CALLBACK_DEF(FT_F26Dot6) Read_CVT_Stretched( EXEC_OP_ FT_ULong index )
+ FT_CALLBACK_DEF( FT_F26Dot6 )
+ Read_CVT_Stretched( EXEC_OP_ FT_ULong index )
{
return TT_MULFIX( CUR.cvt[index], CURRENT_Ratio() );
}
- FT_CALLBACK_DEF(void) Write_CVT( EXEC_OP_ FT_ULong index,
- FT_F26Dot6 value )
+ FT_CALLBACK_DEF( void )
+ Write_CVT( EXEC_OP_ FT_ULong index,
+ FT_F26Dot6 value )
{
CUR.cvt[index] = value;
}
- FT_CALLBACK_DEF(void) Write_CVT_Stretched( EXEC_OP_ FT_ULong index,
- FT_F26Dot6 value )
+ FT_CALLBACK_DEF( void )
+ Write_CVT_Stretched( EXEC_OP_ FT_ULong index,
+ FT_F26Dot6 value )
{
CUR.cvt[index] = FT_DivFix( value, CURRENT_Ratio() );
}
- FT_CALLBACK_DEF(void) Move_CVT( EXEC_OP_ FT_ULong index,
- FT_F26Dot6 value )
+ FT_CALLBACK_DEF( void )
+ Move_CVT( EXEC_OP_ FT_ULong index,
+ FT_F26Dot6 value )
{
CUR.cvt[index] += value;
}
- FT_CALLBACK_DEF(void) Move_CVT_Stretched( EXEC_OP_ FT_ULong index,
- FT_F26Dot6 value )
+ FT_CALLBACK_DEF( void )
+ Move_CVT_Stretched( EXEC_OP_ FT_ULong index,
+ FT_F26Dot6 value )
{
CUR.cvt[index] += FT_DivFix( value, CURRENT_Ratio() );
}
@@ -1304,7 +1313,8 @@
/* <Note> */
/* This one could become a macro. */
/* */
- static FT_Short GetShortIns( EXEC_OP )
+ static FT_Short
+ GetShortIns( EXEC_OP )
{
/* Reading a byte stream so there is no endianess (DaveP) */
CUR.IP += 2;
@@ -1329,9 +1339,9 @@
/* <Return> */
/* SUCCESS or FAILURE. */
/* */
- static
- FT_Bool Ins_Goto_CodeRange( EXEC_OP_ FT_Int aRange,
- FT_ULong aIP )
+ static FT_Bool
+ Ins_Goto_CodeRange( EXEC_OP_ FT_Int aRange,
+ FT_ULong aIP )
{
TT_CodeRange* range;
@@ -1386,10 +1396,10 @@
/* <InOut> */
/* zone :: The affected glyph zone. */
/* */
- static
- void Direct_Move( EXEC_OP_ TT_GlyphZone* zone,
- FT_UShort point,
- FT_F26Dot6 distance )
+ static void
+ Direct_Move( EXEC_OP_ TT_GlyphZone* zone,
+ FT_UShort point,
+ FT_F26Dot6 distance )
{
FT_F26Dot6 v;
@@ -1448,10 +1458,10 @@
/*************************************************************************/
- static
- void Direct_Move_X( EXEC_OP_ TT_GlyphZone* zone,
- FT_UShort point,
- FT_F26Dot6 distance )
+ static void
+ Direct_Move_X( EXEC_OP_ TT_GlyphZone* zone,
+ FT_UShort point,
+ FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
@@ -1460,10 +1470,10 @@
}
- static
- void Direct_Move_Y( EXEC_OP_ TT_GlyphZone* zone,
- FT_UShort point,
- FT_F26Dot6 distance )
+ static void
+ Direct_Move_Y( EXEC_OP_ TT_GlyphZone* zone,
+ FT_UShort point,
+ FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
@@ -1494,9 +1504,9 @@
/* the description of super round that we should add the compensation */
/* before rounding. */
/* */
- static
- FT_F26Dot6 Round_None( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_None( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1534,9 +1544,9 @@
/* <Return> */
/* Rounded distance. */
/* */
- static
- FT_F26Dot6 Round_To_Grid( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_To_Grid( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1578,9 +1588,9 @@
/* <Return> */
/* Rounded distance. */
/* */
- static
- FT_F26Dot6 Round_To_Half_Grid( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_To_Half_Grid( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1620,9 +1630,9 @@
/* <Return> */
/* Rounded distance. */
/* */
- static
- FT_F26Dot6 Round_Down_To_Grid( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_Down_To_Grid( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1664,9 +1674,9 @@
/* <Return> */
/* Rounded distance. */
/* */
- static
- FT_F26Dot6 Round_Up_To_Grid( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_Up_To_Grid( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1708,9 +1718,9 @@
/* <Return> */
/* Rounded distance. */
/* */
- static
- FT_F26Dot6 Round_To_Double_Grid( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_To_Double_Grid( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1758,9 +1768,9 @@
/* the description of super round that we should add the compensation */
/* before rounding. */
/* */
- static
- FT_F26Dot6 Round_Super( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_Super( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1806,9 +1816,9 @@
/* There is a separate function for Round_Super_45() as we may need */
/* greater precision. */
/* */
- static
- FT_F26Dot6 Round_Super_45( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation )
+ static FT_F26Dot6
+ Round_Super_45( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation )
{
FT_F26Dot6 val;
@@ -1845,8 +1855,8 @@
/* <Input> */
/* round_mode :: The rounding mode to be used. */
/* */
- static
- void Compute_Round( EXEC_OP_ FT_Byte round_mode )
+ static void
+ Compute_Round( EXEC_OP_ FT_Byte round_mode )
{
switch ( round_mode )
{
@@ -1897,9 +1907,9 @@
/* GridPeriod :: Grid period */
/* selector :: SROUND opcode */
/* */
- static
- void SetSuperRound( EXEC_OP_ FT_F26Dot6 GridPeriod,
- FT_Long selector )
+ static void
+ SetSuperRound( EXEC_OP_ FT_F26Dot6 GridPeriod,
+ FT_Long selector )
{
switch ( (FT_Int)( selector & 0xC0 ) )
{
@@ -1968,9 +1978,9 @@
/* <Return> */
/* The distance in F26dot6 format. */
/* */
- static
- FT_F26Dot6 Project( EXEC_OP_ FT_Vector* v1,
- FT_Vector* v2 )
+ static FT_F26Dot6
+ Project( EXEC_OP_ FT_Vector* v1,
+ FT_Vector* v2 )
{
return TT_MULDIV( v1->x - v2->x, CUR.GS.projVector.x, 0x4000 ) +
TT_MULDIV( v1->y - v2->y, CUR.GS.projVector.y, 0x4000 );
@@ -1993,9 +2003,9 @@
/* <Return> */
/* The distance in F26dot6 format. */
/* */
- static
- FT_F26Dot6 Dual_Project( EXEC_OP_ FT_Vector* v1,
- FT_Vector* v2 )
+ static FT_F26Dot6
+ Dual_Project( EXEC_OP_ FT_Vector* v1,
+ FT_Vector* v2 )
{
return TT_MULDIV( v1->x - v2->x, CUR.GS.dualVector.x, 0x4000 ) +
TT_MULDIV( v1->y - v2->y, CUR.GS.dualVector.y, 0x4000 );
@@ -2018,9 +2028,9 @@
/* <Return> */
/* The distance in F26dot6 format. */
/* */
- static
- FT_F26Dot6 Free_Project( EXEC_OP_ FT_Vector* v1,
- FT_Vector* v2 )
+ static FT_F26Dot6
+ Free_Project( EXEC_OP_ FT_Vector* v1,
+ FT_Vector* v2 )
{
return TT_MULDIV( v1->x - v2->x, CUR.GS.freeVector.x, 0x4000 ) +
TT_MULDIV( v1->y - v2->y, CUR.GS.freeVector.y, 0x4000 );
@@ -2043,9 +2053,9 @@
/* <Return> */
/* The distance in F26dot6 format. */
/* */
- static
- FT_F26Dot6 Project_x( EXEC_OP_ FT_Vector* v1,
- FT_Vector* v2 )
+ static FT_F26Dot6
+ Project_x( EXEC_OP_ FT_Vector* v1,
+ FT_Vector* v2 )
{
FT_UNUSED_EXEC;
@@ -2069,9 +2079,9 @@
/* <Return> */
/* The distance in F26dot6 format. */
/* */
- static
- FT_F26Dot6 Project_y( EXEC_OP_ FT_Vector* v1,
- FT_Vector* v2 )
+ static FT_F26Dot6
+ Project_y( EXEC_OP_ FT_Vector* v1,
+ FT_Vector* v2 )
{
FT_UNUSED_EXEC;
@@ -2088,8 +2098,8 @@
/* Computes the projection and movement function pointers according */
/* to the current graphics state. */
/* */
- static
- void Compute_Funcs( EXEC_OP )
+ static void
+ Compute_Funcs( EXEC_OP )
{
if ( CUR.GS.freeVector.x == 0x4000 )
{
@@ -2180,10 +2190,10 @@
#ifdef FT_CONFIG_OPTION_OLD_CALCS
- static
- FT_Bool Normalize( EXEC_OP_ FT_F26Dot6 Vx,
- FT_F26Dot6 Vy,
- FT_UnitVector* R )
+ static FT_Bool
+ Normalize( EXEC_OP_ FT_F26Dot6 Vx,
+ FT_F26Dot6 Vy,
+ FT_UnitVector* R )
{
FT_F26Dot6 W;
FT_Bool S1, S2;
@@ -2276,10 +2286,10 @@
#else
- static
- FT_Bool Normalize( EXEC_OP_ FT_F26Dot6 Vx,
- FT_F26Dot6 Vy,
- FT_UnitVector* R )
+ static FT_Bool
+ Normalize( EXEC_OP_ FT_F26Dot6 Vx,
+ FT_F26Dot6 Vy,
+ FT_UnitVector* R )
{
FT_Vector v;
FT_Angle angle;
@@ -2304,11 +2314,11 @@
/*************************************************************************/
- static
- FT_Bool Ins_SxVTL( EXEC_OP_ FT_UShort aIdx1,
- FT_UShort aIdx2,
- FT_Int aOpc,
- FT_UnitVector* Vec )
+ static FT_Bool
+ Ins_SxVTL( EXEC_OP_ FT_UShort aIdx1,
+ FT_UShort aIdx2,
+ FT_Int aOpc,
+ FT_UnitVector* Vec )
{
FT_Long A, B, C;
FT_Vector* p1;
@@ -2860,8 +2870,8 @@
/* Opcode range: 0x00-0x01 */
/* Stack: --> */
/* */
- static
- void Ins_SVTCA( INS_ARG )
+ static void
+ Ins_SVTCA( INS_ARG )
{
DO_SVTCA
}
@@ -2873,8 +2883,8 @@
/* Opcode range: 0x02-0x03 */
/* Stack: --> */
/* */
- static
- void Ins_SPVTCA( INS_ARG )
+ static void
+ Ins_SPVTCA( INS_ARG )
{
DO_SPVTCA
}
@@ -2886,8 +2896,8 @@
/* Opcode range: 0x04-0x05 */
/* Stack: --> */
/* */
- static
- void Ins_SFVTCA( INS_ARG )
+ static void
+ Ins_SFVTCA( INS_ARG )
{
DO_SFVTCA
}
@@ -2899,8 +2909,8 @@
/* Opcode range: 0x06-0x07 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_SPVTL( INS_ARG )
+ static void
+ Ins_SPVTL( INS_ARG )
{
DO_SPVTL
}
@@ -2912,8 +2922,8 @@
/* Opcode range: 0x08-0x09 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_SFVTL( INS_ARG )
+ static void
+ Ins_SFVTL( INS_ARG )
{
DO_SFVTL
}
@@ -2925,8 +2935,8 @@
/* Opcode range: 0x0E */
/* Stack: --> */
/* */
- static
- void Ins_SFVTPV( INS_ARG )
+ static void
+ Ins_SFVTPV( INS_ARG )
{
DO_SFVTPV
}
@@ -2938,8 +2948,8 @@
/* Opcode range: 0x0A */
/* Stack: f2.14 f2.14 --> */
/* */
- static
- void Ins_SPVFS( INS_ARG )
+ static void
+ Ins_SPVFS( INS_ARG )
{
DO_SPVFS
}
@@ -2951,8 +2961,8 @@
/* Opcode range: 0x0B */
/* Stack: f2.14 f2.14 --> */
/* */
- static
- void Ins_SFVFS( INS_ARG )
+ static void
+ Ins_SFVFS( INS_ARG )
{
DO_SFVFS
}
@@ -2964,8 +2974,8 @@
/* Opcode range: 0x0C */
/* Stack: ef2.14 --> ef2.14 */
/* */
- static
- void Ins_GPV( INS_ARG )
+ static void
+ Ins_GPV( INS_ARG )
{
DO_GPV
}
@@ -2976,8 +2986,8 @@
/* Opcode range: 0x0D */
/* Stack: ef2.14 --> ef2.14 */
/* */
- static
- void Ins_GFV( INS_ARG )
+ static void
+ Ins_GFV( INS_ARG )
{
DO_GFV
}
@@ -2989,8 +2999,8 @@
/* Opcode range: 0x10 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SRP0( INS_ARG )
+ static void
+ Ins_SRP0( INS_ARG )
{
DO_SRP0
}
@@ -3002,8 +3012,8 @@
/* Opcode range: 0x11 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SRP1( INS_ARG )
+ static void
+ Ins_SRP1( INS_ARG )
{
DO_SRP1
}
@@ -3015,8 +3025,8 @@
/* Opcode range: 0x12 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SRP2( INS_ARG )
+ static void
+ Ins_SRP2( INS_ARG )
{
DO_SRP2
}
@@ -3028,8 +3038,8 @@
/* Opcode range: 0x19 */
/* Stack: --> */
/* */
- static
- void Ins_RTHG( INS_ARG )
+ static void
+ Ins_RTHG( INS_ARG )
{
DO_RTHG
}
@@ -3041,8 +3051,8 @@
/* Opcode range: 0x18 */
/* Stack: --> */
/* */
- static
- void Ins_RTG( INS_ARG )
+ static void
+ Ins_RTG( INS_ARG )
{
DO_RTG
}
@@ -3053,8 +3063,8 @@
/* Opcode range: 0x3D */
/* Stack: --> */
/* */
- static
- void Ins_RTDG( INS_ARG )
+ static void
+ Ins_RTDG( INS_ARG )
{
DO_RTDG
}
@@ -3065,8 +3075,8 @@
/* Opcode range: 0x7C */
/* Stack: --> */
/* */
- static
- void Ins_RUTG( INS_ARG )
+ static void
+ Ins_RUTG( INS_ARG )
{
DO_RUTG
}
@@ -3078,8 +3088,8 @@
/* Opcode range: 0x7D */
/* Stack: --> */
/* */
- static
- void Ins_RDTG( INS_ARG )
+ static void
+ Ins_RDTG( INS_ARG )
{
DO_RDTG
}
@@ -3091,8 +3101,8 @@
/* Opcode range: 0x7A */
/* Stack: --> */
/* */
- static
- void Ins_ROFF( INS_ARG )
+ static void
+ Ins_ROFF( INS_ARG )
{
DO_ROFF
}
@@ -3104,8 +3114,8 @@
/* Opcode range: 0x76 */
/* Stack: Eint8 --> */
/* */
- static
- void Ins_SROUND( INS_ARG )
+ static void
+ Ins_SROUND( INS_ARG )
{
DO_SROUND
}
@@ -3117,8 +3127,8 @@
/* Opcode range: 0x77 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_S45ROUND( INS_ARG )
+ static void
+ Ins_S45ROUND( INS_ARG )
{
DO_S45ROUND
}
@@ -3130,8 +3140,8 @@
/* Opcode range: 0x17 */
/* Stack: int32? --> */
/* */
- static
- void Ins_SLOOP( INS_ARG )
+ static void
+ Ins_SLOOP( INS_ARG )
{
DO_SLOOP
}
@@ -3143,8 +3153,8 @@
/* Opcode range: 0x1A */
/* Stack: f26.6 --> */
/* */
- static
- void Ins_SMD( INS_ARG )
+ static void
+ Ins_SMD( INS_ARG )
{
DO_SMD
}
@@ -3156,8 +3166,8 @@
/* Opcode range: 0x1D */
/* Stack: f26.6 --> */
/* */
- static
- void Ins_SCVTCI( INS_ARG )
+ static void
+ Ins_SCVTCI( INS_ARG )
{
DO_SCVTCI
}
@@ -3169,8 +3179,8 @@
/* Opcode range: 0x1E */
/* Stack: f26.6 --> */
/* */
- static
- void Ins_SSWCI( INS_ARG )
+ static void
+ Ins_SSWCI( INS_ARG )
{
DO_SSWCI
}
@@ -3182,8 +3192,8 @@
/* Opcode range: 0x1F */
/* Stack: int32? --> */
/* */
- static
- void Ins_SSW( INS_ARG )
+ static void
+ Ins_SSW( INS_ARG )
{
DO_SSW
}
@@ -3195,8 +3205,8 @@
/* Opcode range: 0x4D */
/* Stack: --> */
/* */
- static
- void Ins_FLIPON( INS_ARG )
+ static void
+ Ins_FLIPON( INS_ARG )
{
DO_FLIPON
}
@@ -3208,8 +3218,8 @@
/* Opcode range: 0x4E */
/* Stack: --> */
/* */
- static
- void Ins_FLIPOFF( INS_ARG )
+ static void
+ Ins_FLIPOFF( INS_ARG )
{
DO_FLIPOFF
}
@@ -3221,8 +3231,8 @@
/* Opcode range: 0x7E */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SANGW( INS_ARG )
+ static void
+ Ins_SANGW( INS_ARG )
{
/* instruction not supported anymore */
}
@@ -3234,8 +3244,8 @@
/* Opcode range: 0x5E */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SDB( INS_ARG )
+ static void
+ Ins_SDB( INS_ARG )
{
DO_SDB
}
@@ -3247,8 +3257,8 @@
/* Opcode range: 0x5F */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SDS( INS_ARG )
+ static void
+ Ins_SDS( INS_ARG )
{
DO_SDS
}
@@ -3260,8 +3270,8 @@
/* Opcode range: 0x4B */
/* Stack: --> Euint16 */
/* */
- static
- void Ins_MPPEM( INS_ARG )
+ static void
+ Ins_MPPEM( INS_ARG )
{
DO_MPPEM
}
@@ -3273,8 +3283,8 @@
/* Opcode range: 0x4C */
/* Stack: --> Euint16 */
/* */
- static
- void Ins_MPS( INS_ARG )
+ static void
+ Ins_MPS( INS_ARG )
{
DO_MPS
}
@@ -3286,8 +3296,8 @@
/* Opcode range: 0x20 */
/* Stack: StkElt --> StkElt StkElt */
/* */
- static
- void Ins_DUP( INS_ARG )
+ static void
+ Ins_DUP( INS_ARG )
{
DO_DUP
}
@@ -3299,8 +3309,8 @@
/* Opcode range: 0x21 */
/* Stack: StkElt --> */
/* */
- static
- void Ins_POP( INS_ARG )
+ static void
+ Ins_POP( INS_ARG )
{
/* nothing to do */
}
@@ -3312,8 +3322,8 @@
/* Opcode range: 0x22 */
/* Stack: StkElt... --> */
/* */
- static
- void Ins_CLEAR( INS_ARG )
+ static void
+ Ins_CLEAR( INS_ARG )
{
DO_CLEAR
}
@@ -3325,8 +3335,8 @@
/* Opcode range: 0x23 */
/* Stack: 2 * StkElt --> 2 * StkElt */
/* */
- static
- void Ins_SWAP( INS_ARG )
+ static void
+ Ins_SWAP( INS_ARG )
{
DO_SWAP
}
@@ -3338,8 +3348,8 @@
/* Opcode range: 0x24 */
/* Stack: --> uint32 */
/* */
- static
- void Ins_DEPTH( INS_ARG )
+ static void
+ Ins_DEPTH( INS_ARG )
{
DO_DEPTH
}
@@ -3351,8 +3361,8 @@
/* Opcode range: 0x25 */
/* Stack: int32 --> StkElt */
/* */
- static
- void Ins_CINDEX( INS_ARG )
+ static void
+ Ins_CINDEX( INS_ARG )
{
DO_CINDEX
}
@@ -3364,8 +3374,8 @@
/* Opcode range: 0x59 */
/* Stack: --> */
/* */
- static
- void Ins_EIF( INS_ARG )
+ static void
+ Ins_EIF( INS_ARG )
{
/* nothing to do */
}
@@ -3377,8 +3387,8 @@
/* Opcode range: 0x78 */
/* Stack: StkElt int32 --> */
/* */
- static
- void Ins_JROT( INS_ARG )
+ static void
+ Ins_JROT( INS_ARG )
{
DO_JROT
}
@@ -3390,8 +3400,8 @@
/* Opcode range: 0x1C */
/* Stack: int32 --> */
/* */
- static
- void Ins_JMPR( INS_ARG )
+ static void
+ Ins_JMPR( INS_ARG )
{
DO_JMPR
}
@@ -3403,8 +3413,8 @@
/* Opcode range: 0x79 */
/* Stack: StkElt int32 --> */
/* */
- static
- void Ins_JROF( INS_ARG )
+ static void
+ Ins_JROF( INS_ARG )
{
DO_JROF
}
@@ -3416,8 +3426,8 @@
/* Opcode range: 0x50 */
/* Stack: int32? int32? --> bool */
/* */
- static
- void Ins_LT( INS_ARG )
+ static void
+ Ins_LT( INS_ARG )
{
DO_LT
}
@@ -3429,8 +3439,8 @@
/* Opcode range: 0x51 */
/* Stack: int32? int32? --> bool */
/* */
- static
- void Ins_LTEQ( INS_ARG )
+ static void
+ Ins_LTEQ( INS_ARG )
{
DO_LTEQ
}
@@ -3442,8 +3452,8 @@
/* Opcode range: 0x52 */
/* Stack: int32? int32? --> bool */
/* */
- static
- void Ins_GT( INS_ARG )
+ static void
+ Ins_GT( INS_ARG )
{
DO_GT
}
@@ -3455,8 +3465,8 @@
/* Opcode range: 0x53 */
/* Stack: int32? int32? --> bool */
/* */
- static
- void Ins_GTEQ( INS_ARG )
+ static void
+ Ins_GTEQ( INS_ARG )
{
DO_GTEQ
}
@@ -3468,8 +3478,8 @@
/* Opcode range: 0x54 */
/* Stack: StkElt StkElt --> bool */
/* */
- static
- void Ins_EQ( INS_ARG )
+ static void
+ Ins_EQ( INS_ARG )
{
DO_EQ
}
@@ -3481,8 +3491,8 @@
/* Opcode range: 0x55 */
/* Stack: StkElt StkElt --> bool */
/* */
- static
- void Ins_NEQ( INS_ARG )
+ static void
+ Ins_NEQ( INS_ARG )
{
DO_NEQ
}
@@ -3494,8 +3504,8 @@
/* Opcode range: 0x56 */
/* Stack: f26.6 --> bool */
/* */
- static
- void Ins_ODD( INS_ARG )
+ static void
+ Ins_ODD( INS_ARG )
{
DO_ODD
}
@@ -3507,8 +3517,8 @@
/* Opcode range: 0x57 */
/* Stack: f26.6 --> bool */
/* */
- static
- void Ins_EVEN( INS_ARG )
+ static void
+ Ins_EVEN( INS_ARG )
{
DO_EVEN
}
@@ -3520,8 +3530,8 @@
/* Opcode range: 0x5A */
/* Stack: uint32 uint32 --> uint32 */
/* */
- static
- void Ins_AND( INS_ARG )
+ static void
+ Ins_AND( INS_ARG )
{
DO_AND
}
@@ -3533,8 +3543,8 @@
/* Opcode range: 0x5B */
/* Stack: uint32 uint32 --> uint32 */
/* */
- static
- void Ins_OR( INS_ARG )
+ static void
+ Ins_OR( INS_ARG )
{
DO_OR
}
@@ -3546,8 +3556,8 @@
/* Opcode range: 0x5C */
/* Stack: StkElt --> uint32 */
/* */
- static
- void Ins_NOT( INS_ARG )
+ static void
+ Ins_NOT( INS_ARG )
{
DO_NOT
}
@@ -3559,8 +3569,8 @@
/* Opcode range: 0x60 */
/* Stack: f26.6 f26.6 --> f26.6 */
/* */
- static
- void Ins_ADD( INS_ARG )
+ static void
+ Ins_ADD( INS_ARG )
{
DO_ADD
}
@@ -3572,8 +3582,8 @@
/* Opcode range: 0x61 */
/* Stack: f26.6 f26.6 --> f26.6 */
/* */
- static
- void Ins_SUB( INS_ARG )
+ static void
+ Ins_SUB( INS_ARG )
{
DO_SUB
}
@@ -3585,8 +3595,8 @@
/* Opcode range: 0x62 */
/* Stack: f26.6 f26.6 --> f26.6 */
/* */
- static
- void Ins_DIV( INS_ARG )
+ static void
+ Ins_DIV( INS_ARG )
{
DO_DIV
}
@@ -3598,8 +3608,8 @@
/* Opcode range: 0x63 */
/* Stack: f26.6 f26.6 --> f26.6 */
/* */
- static
- void Ins_MUL( INS_ARG )
+ static void
+ Ins_MUL( INS_ARG )
{
DO_MUL
}
@@ -3611,8 +3621,8 @@
/* Opcode range: 0x64 */
/* Stack: f26.6 --> f26.6 */
/* */
- static
- void Ins_ABS( INS_ARG )
+ static void
+ Ins_ABS( INS_ARG )
{
DO_ABS
}
@@ -3624,8 +3634,8 @@
/* Opcode range: 0x65 */
/* Stack: f26.6 --> f26.6 */
/* */
- static
- void Ins_NEG( INS_ARG )
+ static void
+ Ins_NEG( INS_ARG )
{
DO_NEG
}
@@ -3637,8 +3647,8 @@
/* Opcode range: 0x66 */
/* Stack: f26.6 --> f26.6 */
/* */
- static
- void Ins_FLOOR( INS_ARG )
+ static void
+ Ins_FLOOR( INS_ARG )
{
DO_FLOOR
}
@@ -3650,8 +3660,8 @@
/* Opcode range: 0x67 */
/* Stack: f26.6 --> f26.6 */
/* */
- static
- void Ins_CEILING( INS_ARG )
+ static void
+ Ins_CEILING( INS_ARG )
{
DO_CEILING
}
@@ -3663,8 +3673,8 @@
/* Opcode range: 0x43 */
/* Stack: uint32 --> uint32 */
/* */
- static
- void Ins_RS( INS_ARG )
+ static void
+ Ins_RS( INS_ARG )
{
DO_RS
}
@@ -3676,8 +3686,8 @@
/* Opcode range: 0x42 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_WS( INS_ARG )
+ static void
+ Ins_WS( INS_ARG )
{
DO_WS
}
@@ -3689,8 +3699,8 @@
/* Opcode range: 0x44 */
/* Stack: f26.6 uint32 --> */
/* */
- static
- void Ins_WCVTP( INS_ARG )
+ static void
+ Ins_WCVTP( INS_ARG )
{
DO_WCVTP
}
@@ -3702,8 +3712,8 @@
/* Opcode range: 0x70 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_WCVTF( INS_ARG )
+ static void
+ Ins_WCVTF( INS_ARG )
{
DO_WCVTF
}
@@ -3715,8 +3725,8 @@
/* Opcode range: 0x45 */
/* Stack: uint32 --> f26.6 */
/* */
- static
- void Ins_RCVT( INS_ARG )
+ static void
+ Ins_RCVT( INS_ARG )
{
DO_RCVT
}
@@ -3728,8 +3738,8 @@
/* Opcode range: 0x7F */
/* Stack: uint32 --> */
/* */
- static
- void Ins_AA( INS_ARG )
+ static void
+ Ins_AA( INS_ARG )
{
/* intentionally no longer supported */
}
@@ -3743,8 +3753,8 @@
/* */
/* Note: The original instruction pops a value from the stack. */
/* */
- static
- void Ins_DEBUG( INS_ARG )
+ static void
+ Ins_DEBUG( INS_ARG )
{
DO_DEBUG
}
@@ -3756,8 +3766,8 @@
/* Opcode range: 0x68-0x6B */
/* Stack: f26.6 --> f26.6 */
/* */
- static
- void Ins_ROUND( INS_ARG )
+ static void
+ Ins_ROUND( INS_ARG )
{
DO_ROUND
}
@@ -3769,8 +3779,8 @@
/* Opcode range: 0x6C-0x6F */
/* Stack: f26.6 --> f26.6 */
/* */
- static
- void Ins_NROUND( INS_ARG )
+ static void
+ Ins_NROUND( INS_ARG )
{
DO_NROUND
}
@@ -3782,8 +3792,8 @@
/* Opcode range: 0x68 */
/* Stack: int32? int32? --> int32 */
/* */
- static
- void Ins_MAX( INS_ARG )
+ static void
+ Ins_MAX( INS_ARG )
{
DO_MAX
}
@@ -3795,8 +3805,8 @@
/* Opcode range: 0x69 */
/* Stack: int32? int32? --> int32 */
/* */
- static
- void Ins_MIN( INS_ARG )
+ static void
+ Ins_MIN( INS_ARG )
{
DO_MIN
}
@@ -3818,8 +3828,8 @@
/* Opcode range: 0x26 */
/* Stack: int32? --> StkElt */
/* */
- static
- void Ins_MINDEX( INS_ARG )
+ static void
+ Ins_MINDEX( INS_ARG )
{
FT_Long L, K;
@@ -3848,8 +3858,8 @@
/* Opcode range: 0x8A */
/* Stack: 3 * StkElt --> 3 * StkElt */
/* */
- static
- void Ins_ROLL( INS_ARG )
+ static void
+ Ins_ROLL( INS_ARG )
{
FT_Long A, B, C;
@@ -3875,8 +3885,8 @@
/*************************************************************************/
- static
- FT_Bool SkipCode( EXEC_OP )
+ static FT_Bool
+ SkipCode( EXEC_OP )
{
CUR.IP += CUR.length;
@@ -3908,8 +3918,8 @@
/* Opcode range: 0x58 */
/* Stack: StkElt --> */
/* */
- static
- void Ins_IF( INS_ARG )
+ static void
+ Ins_IF( INS_ARG )
{
FT_Int nIfs;
FT_Bool Out;
@@ -3951,8 +3961,8 @@
/* Opcode range: 0x1B */
/* Stack: --> */
/* */
- static
- void Ins_ELSE( INS_ARG )
+ static void
+ Ins_ELSE( INS_ARG )
{
FT_Int nIfs;
@@ -3995,8 +4005,8 @@
/* Opcode range: 0x2C */
/* Stack: uint32 --> */
/* */
- static
- void Ins_FDEF( INS_ARG )
+ static void
+ Ins_FDEF( INS_ARG )
{
FT_ULong n;
TT_DefRecord* rec;
@@ -4060,8 +4070,8 @@
/* Opcode range: 0x2D */
/* Stack: --> */
/* */
- static
- void Ins_ENDF( INS_ARG )
+ static void
+ Ins_ENDF( INS_ARG )
{
TT_CallRec* pRec;
@@ -4108,8 +4118,8 @@
/* Opcode range: 0x2B */
/* Stack: uint32? --> */
/* */
- static
- void Ins_CALL( INS_ARG )
+ static void
+ Ins_CALL( INS_ARG )
{
FT_ULong F;
TT_CallRec* pCrec;
@@ -4185,8 +4195,8 @@
/* Opcode range: 0x2A */
/* Stack: uint32? Eint16? --> */
/* */
- static
- void Ins_LOOPCALL( INS_ARG )
+ static void
+ Ins_LOOPCALL( INS_ARG )
{
FT_ULong F;
TT_CallRec* pCrec;
@@ -4263,8 +4273,8 @@
/* Opcode range: 0x89 */
/* Stack: Eint8 --> */
/* */
- static
- void Ins_IDEF( INS_ARG )
+ static void
+ Ins_IDEF( INS_ARG )
{
TT_DefRecord* def;
TT_DefRecord* limit;
@@ -4331,8 +4341,8 @@
/* Opcode range: 0x40 */
/* Stack: --> uint32... */
/* */
- static
- void Ins_NPUSHB( INS_ARG )
+ static void
+ Ins_NPUSHB( INS_ARG )
{
FT_UShort L, K;
@@ -4358,8 +4368,8 @@
/* Opcode range: 0x41 */
/* Stack: --> int32... */
/* */
- static
- void Ins_NPUSHW( INS_ARG )
+ static void
+ Ins_NPUSHW( INS_ARG )
{
FT_UShort L, K;
@@ -4388,8 +4398,8 @@
/* Opcode range: 0xB0-0xB7 */
/* Stack: --> uint32... */
/* */
- static
- void Ins_PUSHB( INS_ARG )
+ static void
+ Ins_PUSHB( INS_ARG )
{
FT_UShort L, K;
@@ -4413,8 +4423,8 @@
/* Opcode range: 0xB8-0xBF */
/* Stack: --> int32... */
/* */
- static
- void Ins_PUSHW( INS_ARG )
+ static void
+ Ins_PUSHW( INS_ARG )
{
FT_UShort L, K;
@@ -4454,7 +4464,8 @@
/* BULLSHIT: Measures from the original glyph must be taken along the */
/* dual projection vector! */
/* */
- static void Ins_GC( INS_ARG )
+ static void
+ Ins_GC( INS_ARG )
{
FT_ULong L;
FT_F26Dot6 R;
@@ -4494,8 +4505,8 @@
/* */
/* OA := OA + ( value - OA.p )/( f.p ) * f */
/* */
- static
- void Ins_SCFS( INS_ARG )
+ static void
+ Ins_SCFS( INS_ARG )
{
FT_Long K;
FT_UShort L;
@@ -4536,8 +4547,8 @@
/* */
/* Third one: `zp0 - zp1', and not `zp2 - zp1! */
/* */
- static
- void Ins_MD( INS_ARG )
+ static void
+ Ins_MD( INS_ARG )
{
FT_UShort K, L;
FT_F26Dot6 D;
@@ -4574,8 +4585,8 @@
/* Opcode range: 0x86-0x87 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_SDPVTL( INS_ARG )
+ static void
+ Ins_SDPVTL( INS_ARG )
{
FT_Long A, B, C;
FT_UShort p1, p2; /* was FT_Int in pas type ERROR */
@@ -4638,8 +4649,8 @@
/* Opcode range: 0x13 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SZP0( INS_ARG )
+ static void
+ Ins_SZP0( INS_ARG )
{
switch ( (FT_Int)args[0] )
{
@@ -4667,8 +4678,8 @@
/* Opcode range: 0x14 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SZP1( INS_ARG )
+ static void
+ Ins_SZP1( INS_ARG )
{
switch ( (FT_Int)args[0] )
{
@@ -4696,8 +4707,8 @@
/* Opcode range: 0x15 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SZP2( INS_ARG )
+ static void
+ Ins_SZP2( INS_ARG )
{
switch ( (FT_Int)args[0] )
{
@@ -4725,8 +4736,8 @@
/* Opcode range: 0x16 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SZPS( INS_ARG )
+ static void
+ Ins_SZPS( INS_ARG )
{
switch ( (FT_Int)args[0] )
{
@@ -4759,8 +4770,8 @@
/* Opcode range: 0x8e */
/* Stack: int32 int32 --> */
/* */
- static
- void Ins_INSTCTRL( INS_ARG )
+ static void
+ Ins_INSTCTRL( INS_ARG )
{
FT_Long K, L;
@@ -4789,8 +4800,8 @@
/* Opcode range: 0x85 */
/* Stack: uint32? --> */
/* */
- static
- void Ins_SCANCTRL( INS_ARG )
+ static void
+ Ins_SCANCTRL( INS_ARG )
{
FT_Int A;
@@ -4832,7 +4843,7 @@
if ( (args[0] & 0x2000) != 0 && CUR.tt_metrics.stretched )
CUR.GS.scan_control = FALSE;
-}
+ }
/*************************************************************************/
@@ -4841,8 +4852,8 @@
/* Opcode range: 0x8D */
/* Stack: uint32? --> */
/* */
- static
- void Ins_SCANTYPE( INS_ARG )
+ static void
+ Ins_SCANTYPE( INS_ARG )
{
/* for compatibility with future enhancements, */
/* we must ignore new modes */
@@ -4872,8 +4883,8 @@
/* Opcode range: 0x80 */
/* Stack: uint32... --> */
/* */
- static
- void Ins_FLIPPT( INS_ARG )
+ static void
+ Ins_FLIPPT( INS_ARG )
{
FT_UShort point;
@@ -4917,8 +4928,8 @@
/* Opcode range: 0x81 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_FLIPRGON( INS_ARG )
+ static void
+ Ins_FLIPRGON( INS_ARG )
{
FT_UShort I, K, L;
@@ -4945,8 +4956,8 @@
/* Opcode range: 0x82 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_FLIPRGOFF( INS_ARG )
+ static void
+ Ins_FLIPRGOFF( INS_ARG )
{
FT_UShort I, K, L;
@@ -4967,11 +4978,11 @@
}
- static
- FT_Bool Compute_Point_Displacement( EXEC_OP_ FT_F26Dot6* x,
- FT_F26Dot6* y,
- TT_GlyphZone* zone,
- FT_UShort* refp )
+ static FT_Bool
+ Compute_Point_Displacement( EXEC_OP_ FT_F26Dot6* x,
+ FT_F26Dot6* y,
+ TT_GlyphZone* zone,
+ FT_UShort* refp )
{
TT_GlyphZone zp;
FT_UShort p;
@@ -5021,11 +5032,11 @@
}
- static
- void Move_Zp2_Point( EXEC_OP_ FT_UShort point,
- FT_F26Dot6 dx,
- FT_F26Dot6 dy,
- FT_Bool touch )
+ static void
+ Move_Zp2_Point( EXEC_OP_ FT_UShort point,
+ FT_F26Dot6 dx,
+ FT_F26Dot6 dy,
+ FT_Bool touch )
{
if ( CUR.GS.freeVector.x != 0 )
{
@@ -5049,8 +5060,8 @@
/* Opcode range: 0x32-0x33 */
/* Stack: uint32... --> */
/* */
- static
- void Ins_SHP( INS_ARG )
+ static void
+ Ins_SHP( INS_ARG )
{
TT_GlyphZone zp;
FT_UShort refp;
@@ -5102,8 +5113,8 @@
/* Opcode range: 0x34-35 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SHC( INS_ARG )
+ static void
+ Ins_SHC( INS_ARG )
{
TT_GlyphZone zp;
FT_UShort refp;
@@ -5158,8 +5169,8 @@
/* Opcode range: 0x36-37 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_SHZ( INS_ARG )
+ static void
+ Ins_SHZ( INS_ARG )
{
TT_GlyphZone zp;
FT_UShort refp;
@@ -5199,8 +5210,8 @@
/* Opcode range: 0x38 */
/* Stack: f26.6 uint32... --> */
/* */
- static
- void Ins_SHPIX( INS_ARG )
+ static void
+ Ins_SHPIX( INS_ARG )
{
FT_F26Dot6 dx, dy;
FT_UShort point;
@@ -5250,8 +5261,8 @@
/* Opcode range: 0x3A-0x3B */
/* Stack: f26.6 uint32 --> */
/* */
- static
- void Ins_MSIRP( INS_ARG )
+ static void
+ Ins_MSIRP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 distance;
@@ -5293,8 +5304,8 @@
/* Opcode range: 0x2E-0x2F */
/* Stack: uint32 --> */
/* */
- static
- void Ins_MDAP( INS_ARG )
+ static void
+ Ins_MDAP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 cur_dist,
@@ -5334,8 +5345,8 @@
/* Opcode range: 0x3E-0x3F */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_MIAP( INS_ARG )
+ static void
+ Ins_MIAP( INS_ARG )
{
FT_ULong cvtEntry;
FT_UShort point;
@@ -5410,8 +5421,8 @@
/* Opcode range: 0xC0-0xDF */
/* Stack: uint32 --> */
/* */
- static
- void Ins_MDRP( INS_ARG )
+ static void
+ Ins_MDRP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 org_dist, distance;
@@ -5491,8 +5502,8 @@
/* Opcode range: 0xE0-0xFF */
/* Stack: int32? uint32 --> */
/* */
- static
- void Ins_MIRP( INS_ARG )
+ static void
+ Ins_MIRP( INS_ARG )
{
FT_UShort point;
FT_ULong cvtEntry;
@@ -5618,8 +5629,8 @@
/* Opcode range: 0x3C */
/* Stack: uint32 uint32... --> */
/* */
- static
- void Ins_ALIGNRP( INS_ARG )
+ static void
+ Ins_ALIGNRP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 distance;
@@ -5671,8 +5682,8 @@
/* Opcode range: 0x0F */
/* Stack: 5 * uint32 --> */
/* */
- static
- void Ins_ISECT( INS_ARG )
+ static void
+ Ins_ISECT( INS_ARG )
{
FT_UShort point,
a0, a1,
@@ -5753,8 +5764,8 @@
/* Opcode range: 0x27 */
/* Stack: uint32 uint32 --> */
/* */
- static
- void Ins_ALIGNPTS( INS_ARG )
+ static void
+ Ins_ALIGNPTS( INS_ARG )
{
FT_UShort p1, p2;
FT_F26Dot6 distance;
@@ -5785,8 +5796,8 @@
/* Opcode range: 0x39 */
/* Stack: uint32... --> */
/* */
- static
- void Ins_IP( INS_ARG )
+ static void
+ Ins_IP( INS_ARG )
{
FT_F26Dot6 org_a, org_b, org_x,
cur_a, cur_b, cur_x,
@@ -5875,8 +5886,8 @@
/* Opcode range: 0x29 */
/* Stack: uint32 --> */
/* */
- static
- void Ins_UTP( INS_ARG )
+ static void
+ Ins_UTP( INS_ARG )
{
FT_UShort point;
FT_Byte mask;
@@ -5911,11 +5922,11 @@
};
- static
- void Shift( FT_UInt p1,
- FT_UInt p2,
- FT_UInt p,
- struct LOC_Ins_IUP* LINK )
+ static void
+ Shift( FT_UInt p1,
+ FT_UInt p2,
+ FT_UInt p,
+ struct LOC_Ins_IUP* LINK )
{
FT_UInt i;
FT_F26Dot6 x;
@@ -5931,12 +5942,12 @@
}
- static
- void Interp( FT_UInt p1,
- FT_UInt p2,
- FT_UInt ref1,
- FT_UInt ref2,
- struct LOC_Ins_IUP* LINK )
+ static void
+ Interp( FT_UInt p1,
+ FT_UInt p2,
+ FT_UInt ref1,
+ FT_UInt ref2,
+ struct LOC_Ins_IUP* LINK )
{
FT_UInt i;
FT_F26Dot6 x, x1, x2, d1, d2;
@@ -6017,8 +6028,8 @@
/* Opcode range: 0x30-0x31 */
/* Stack: --> */
/* */
- static
- void Ins_IUP( INS_ARG )
+ static void
+ Ins_IUP( INS_ARG )
{
struct LOC_Ins_IUP V;
FT_Byte mask;
@@ -6111,8 +6122,8 @@
/* Opcode range: 0x5D,0x71,0x72 */
/* Stack: uint32 (2 * uint32)... --> */
/* */
- static
- void Ins_DELTAP( INS_ARG )
+ static void
+ Ins_DELTAP( INS_ARG )
{
FT_ULong k, nump;
FT_UShort A;
@@ -6187,8 +6198,8 @@
/* Opcode range: 0x73,0x74,0x75 */
/* Stack: uint32 (2 * uint32)... --> */
/* */
- static
- void Ins_DELTAC( INS_ARG )
+ static void
+ Ins_DELTAC( INS_ARG )
{
FT_ULong nump, k;
FT_ULong A, C;
@@ -6269,8 +6280,8 @@
/* */
/* XXX: According to Apple specs, bits 1 & 2 of the argument ought to be */
/* consulted before rotated/stretched info is returned. */
- static
- void Ins_GETINFO( INS_ARG )
+ static void
+ Ins_GETINFO( INS_ARG )
{
FT_Long K;
@@ -6294,8 +6305,8 @@
}
- static
- void Ins_UNKNOWN( INS_ARG )
+ static void
+ Ins_UNKNOWN( INS_ARG )
{
TT_DefRecord* def = CUR.IDefs;
TT_DefRecord* limit = def + CUR.numIDefs;
@@ -6654,7 +6665,8 @@
/* documentation is in ttinterp.h */
- FT_EXPORT_DEF( FT_Error ) TT_RunIns( TT_ExecContext exc )
+ FT_EXPORT_DEF( FT_Error )
+ TT_RunIns( TT_ExecContext exc )
{
FT_Long ins_counter = 0; /* executed instructions counter */
diff --git a/src/truetype/ttinterp.h b/src/truetype/ttinterp.h
index c8a71f9..0b99508 100644
--- a/src/truetype/ttinterp.h
+++ b/src/truetype/ttinterp.h
@@ -67,25 +67,30 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* Rounding function */
- typedef FT_F26Dot6 (*TT_Round_Func)( EXEC_OP_ FT_F26Dot6 distance,
- FT_F26Dot6 compensation );
+ typedef FT_F26Dot6
+ (*TT_Round_Func)( EXEC_OP_ FT_F26Dot6 distance,
+ FT_F26Dot6 compensation );
/* Point displacement along the freedom vector routine */
- typedef void (*TT_Move_Func)( EXEC_OP_ TT_GlyphZone* zone,
- FT_UInt point,
- FT_F26Dot6 distance );
+ typedef void
+ (*TT_Move_Func)( EXEC_OP_ TT_GlyphZone* zone,
+ FT_UInt point,
+ FT_F26Dot6 distance );
/* Distance projection along one of the projection vectors */
- typedef FT_F26Dot6 (*TT_Project_Func)( EXEC_OP_ FT_Vector* v1,
- FT_Vector* v2 );
+ typedef FT_F26Dot6
+ (*TT_Project_Func)( EXEC_OP_ FT_Vector* v1,
+ FT_Vector* v2 );
/* reading a cvt value. Take care of non-square pixels if necessary */
- typedef FT_F26Dot6 (*TT_Get_CVT_Func)( EXEC_OP_ FT_ULong index );
+ typedef FT_F26Dot6
+ (*TT_Get_CVT_Func)( EXEC_OP_ FT_ULong index );
/* setting or moving a cvt value. Take care of non-square pixels */
/* if necessary */
- typedef void (*TT_Set_CVT_Func)( EXEC_OP_ FT_ULong index,
- FT_F26Dot6 value );
+ typedef void
+ (*TT_Set_CVT_Func)( EXEC_OP_ FT_ULong index,
+ FT_F26Dot6 value );
/*************************************************************************/
@@ -219,20 +224,20 @@ FT_BEGIN_HEADER
extern const TT_GraphicsState tt_default_graphics_state;
- FT_LOCAL
- FT_Error TT_Goto_CodeRange( TT_ExecContext exec,
- FT_Int range,
- FT_Long IP );
+ FT_LOCAL FT_Error
+ TT_Goto_CodeRange( TT_ExecContext exec,
+ FT_Int range,
+ FT_Long IP );
- FT_LOCAL
- FT_Error TT_Set_CodeRange( TT_ExecContext exec,
- FT_Int range,
- void* base,
- FT_Long length );
+ FT_LOCAL FT_Error
+ TT_Set_CodeRange( TT_ExecContext exec,
+ FT_Int range,
+ void* base,
+ FT_Long length );
- FT_LOCAL
- FT_Error TT_Clear_CodeRange( TT_ExecContext exec,
- FT_Int range );
+ FT_LOCAL FT_Error
+ TT_Clear_CodeRange( TT_ExecContext exec,
+ FT_Int range );
/*************************************************************************/
@@ -254,28 +259,29 @@ FT_BEGIN_HEADER
/* <Note> */
/* Only the glyph loader and debugger should call this function. */
/* */
- FT_EXPORT( TT_ExecContext ) TT_New_Context( TT_Face face );
+ FT_EXPORT( TT_ExecContext )
+ TT_New_Context( TT_Face face );
- FT_LOCAL
- FT_Error TT_Done_Context( TT_ExecContext exec );
+ FT_LOCAL FT_Error
+ TT_Done_Context( TT_ExecContext exec );
- FT_LOCAL
- FT_Error TT_Destroy_Context( TT_ExecContext exec,
- FT_Memory memory );
+ FT_LOCAL FT_Error
+ TT_Destroy_Context( TT_ExecContext exec,
+ FT_Memory memory );
- FT_LOCAL
- FT_Error TT_Load_Context( TT_ExecContext exec,
- TT_Face face,
- TT_Size size );
+ FT_LOCAL FT_Error
+ TT_Load_Context( TT_ExecContext exec,
+ TT_Face face,
+ TT_Size size );
- FT_LOCAL
- FT_Error TT_Save_Context( TT_ExecContext exec,
- TT_Size ins );
+ FT_LOCAL FT_Error
+ TT_Save_Context( TT_ExecContext exec,
+ TT_Size ins );
- FT_LOCAL
- FT_Error TT_Run_Context( TT_ExecContext exec,
- FT_Bool debug );
+ FT_LOCAL FT_Error
+ TT_Run_Context( TT_ExecContext exec,
+ FT_Bool debug );
/*************************************************************************/
@@ -299,7 +305,8 @@ FT_BEGIN_HEADER
/* This function is publicly exported because it is directly */
/* invoked by the TrueType debugger. */
/* */
- FT_EXPORT( FT_Error ) TT_RunIns( TT_ExecContext exec );
+ FT_EXPORT( FT_Error )
+ TT_RunIns( TT_ExecContext exec );
FT_END_HEADER
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 6dcce38..cd00a96 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -65,8 +65,8 @@
/* <Input> */
/* zone :: A pointer to the target glyph zone. */
/* */
- FT_LOCAL_DEF
- void TT_Done_GlyphZone( TT_GlyphZone* zone )
+ FT_LOCAL_DEF void
+ TT_Done_GlyphZone( TT_GlyphZone* zone )
{
FT_Memory memory = zone->memory;
@@ -102,11 +102,11 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_New_GlyphZone( FT_Memory memory,
- FT_UShort maxPoints,
- FT_Short maxContours,
- TT_GlyphZone* zone )
+ FT_LOCAL_DEF FT_Error
+ TT_New_GlyphZone( FT_Memory memory,
+ FT_UShort maxPoints,
+ FT_Short maxContours,
+ TT_GlyphZone* zone )
{
FT_Error error;
@@ -153,12 +153,12 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Init_Face( FT_Stream stream,
- TT_Face face,
- FT_Int face_index,
- FT_Int num_params,
- FT_Parameter* params )
+ FT_LOCAL_DEF FT_Error
+ TT_Init_Face( FT_Stream stream,
+ TT_Face face,
+ FT_Int face_index,
+ FT_Int num_params,
+ FT_Parameter* params )
{
FT_Error error;
FT_Library library;
@@ -224,8 +224,8 @@
/* <Input> */
/* face :: A pointer to the face object to destroy. */
/* */
- FT_LOCAL_DEF
- void TT_Done_Face( TT_Face face )
+ FT_LOCAL_DEF void
+ TT_Done_Face( TT_Face face )
{
FT_Memory memory = face->root.memory;
FT_Stream stream = face->root.stream;
@@ -277,8 +277,8 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Init_Size( TT_Size size )
+ FT_LOCAL_DEF FT_Error
+ TT_Init_Size( TT_Size size )
{
FT_Error error = TT_Err_Ok;
@@ -464,8 +464,8 @@
/* <Input> */
/* size :: A handle to the target size object. */
/* */
- FT_LOCAL_DEF
- void TT_Done_Size( TT_Size size )
+ FT_LOCAL_DEF void
+ TT_Done_Size( TT_Size size )
{
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
@@ -519,8 +519,8 @@
/* <Input> */
/* size :: A handle to the target size object. */
/* */
- static
- FT_Error Reset_Outline_Size( TT_Size size )
+ static FT_Error
+ Reset_Outline_Size( TT_Size size )
{
TT_Face face;
FT_Error error = TT_Err_Ok;
@@ -670,8 +670,8 @@
/* <Input> */
/* size :: A handle to the target size object. */
/* */
- static
- FT_Error Reset_SBit_Size( TT_Size size )
+ static FT_Error
+ Reset_SBit_Size( TT_Size size )
{
TT_Face face;
FT_Error error = TT_Err_Ok;
@@ -756,8 +756,8 @@
/* <Input> */
/* size :: A handle to the target size object. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Reset_Size( TT_Size size )
+ FT_LOCAL_DEF FT_Error
+ TT_Reset_Size( TT_Size size )
{
FT_Face face;
FT_Error error = TT_Err_Ok;
@@ -808,8 +808,8 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Init_Driver( TT_Driver driver )
+ FT_LOCAL_DEF FT_Error
+ TT_Init_Driver( TT_Driver driver )
{
FT_Error error;
@@ -839,8 +839,8 @@
/* <Input> */
/* driver :: A handle to the target TrueType driver. */
/* */
- FT_LOCAL_DEF
- void TT_Done_Driver( TT_Driver driver )
+ FT_LOCAL_DEF void
+ TT_Done_Driver( TT_Driver driver )
{
/* destroy extensions registry if needed */
diff --git a/src/truetype/ttobjs.h b/src/truetype/ttobjs.h
index 51df3c7..0a2d1d1 100644
--- a/src/truetype/ttobjs.h
+++ b/src/truetype/ttobjs.h
@@ -107,14 +107,14 @@ FT_BEGIN_HEADER
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
- FT_LOCAL
- void TT_Done_GlyphZone( TT_GlyphZone* zone );
+ FT_LOCAL void
+ 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 );
+ FT_LOCAL FT_Error
+ TT_New_GlyphZone( FT_Memory memory,
+ FT_UShort maxPoints,
+ FT_Short maxContours,
+ TT_GlyphZone* zone );
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
@@ -378,40 +378,40 @@ FT_BEGIN_HEADER
/* */
/* Face functions */
/* */
- FT_LOCAL
- FT_Error TT_Init_Face( FT_Stream stream,
- TT_Face face,
- FT_Int face_index,
- FT_Int num_params,
- FT_Parameter* params );
+ FT_LOCAL FT_Error
+ TT_Init_Face( FT_Stream stream,
+ TT_Face face,
+ FT_Int face_index,
+ FT_Int num_params,
+ FT_Parameter* params );
- FT_LOCAL
- void TT_Done_Face( TT_Face face );
+ FT_LOCAL void
+ TT_Done_Face( TT_Face face );
/*************************************************************************/
/* */
/* Size functions */
/* */
- FT_LOCAL
- FT_Error TT_Init_Size( TT_Size size );
+ FT_LOCAL FT_Error
+ TT_Init_Size( TT_Size size );
- FT_LOCAL
- void TT_Done_Size( TT_Size size );
+ FT_LOCAL void
+ TT_Done_Size( TT_Size size );
- FT_LOCAL
- FT_Error TT_Reset_Size( TT_Size size );
+ FT_LOCAL FT_Error
+ TT_Reset_Size( TT_Size size );
/*************************************************************************/
/* */
/* Driver functions */
/* */
- FT_LOCAL
- FT_Error TT_Init_Driver( TT_Driver driver );
+ FT_LOCAL FT_Error
+ TT_Init_Driver( TT_Driver driver );
- FT_LOCAL
- void TT_Done_Driver( TT_Driver driver );
+ FT_LOCAL void
+ TT_Done_Driver( TT_Driver driver );
FT_END_HEADER
diff --git a/src/truetype/ttpload.c b/src/truetype/ttpload.c
index 6ca3cbd..ba6f2b4 100644
--- a/src/truetype/ttpload.c
+++ b/src/truetype/ttpload.c
@@ -54,9 +54,9 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Load_Locations( TT_Face face,
- FT_Stream stream )
+ FT_LOCAL_DEF FT_Error
+ TT_Load_Locations( TT_Face face,
+ FT_Stream stream )
{
FT_Error error;
FT_Memory memory = stream->memory;
@@ -147,9 +147,9 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Load_CVT( TT_Face face,
- FT_Stream stream )
+ FT_LOCAL_DEF FT_Error
+ TT_Load_CVT( TT_Face face,
+ FT_Stream stream )
{
FT_Error error;
FT_Memory memory = stream->memory;
@@ -214,9 +214,9 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error TT_Load_Programs( TT_Face face,
- FT_Stream stream )
+ FT_LOCAL_DEF FT_Error
+ TT_Load_Programs( TT_Face face,
+ FT_Stream stream )
{
FT_Error error;
FT_ULong table_len;
diff --git a/src/truetype/ttpload.h b/src/truetype/ttpload.h
index d6fb524..d307e91 100644
--- a/src/truetype/ttpload.h
+++ b/src/truetype/ttpload.h
@@ -27,17 +27,17 @@
FT_BEGIN_HEADER
- FT_LOCAL
- FT_Error TT_Load_Locations( TT_Face face,
- FT_Stream stream );
+ FT_LOCAL FT_Error
+ TT_Load_Locations( TT_Face face,
+ FT_Stream stream );
- FT_LOCAL
- FT_Error TT_Load_CVT( TT_Face face,
- FT_Stream stream );
+ FT_LOCAL FT_Error
+ TT_Load_CVT( TT_Face face,
+ FT_Stream stream );
- FT_LOCAL
- FT_Error TT_Load_Programs( TT_Face face,
- FT_Stream stream );
+ FT_LOCAL FT_Error
+ TT_Load_Programs( TT_Face face,
+ FT_Stream stream );
FT_END_HEADER
diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c
index d68853a..89bc7dc 100644
--- a/src/type1/t1afm.c
+++ b/src/type1/t1afm.c
@@ -35,9 +35,9 @@
#define FT_COMPONENT trace_t1afm
- FT_LOCAL_DEF
- void T1_Done_AFM( FT_Memory memory,
- T1_AFM* afm )
+ FT_LOCAL_DEF void
+ T1_Done_AFM( FT_Memory memory,
+ T1_AFM* afm )
{
FREE( afm->kern_pairs );
afm->num_pairs = 0;
@@ -53,10 +53,10 @@
/* read a glyph name and return the equivalent glyph index */
- static
- FT_UInt afm_atoindex( FT_Byte** start,
- FT_Byte* limit,
- T1_Font* type1 )
+ static FT_UInt
+ afm_atoindex( FT_Byte** start,
+ FT_Byte* limit,
+ T1_Font* type1 )
{
FT_Byte* p = *start;
FT_Int len;
@@ -104,9 +104,9 @@
/* read an integer */
- static
- int afm_atoi( FT_Byte** start,
- FT_Byte* limit )
+ static int
+ afm_atoi( FT_Byte** start,
+ FT_Byte* limit )
{
FT_Byte* p = *start;
int sum = 0;
@@ -139,7 +139,7 @@
/* compare two kerning pairs */
- FT_CALLBACK_DEF(int)
+ FT_CALLBACK_DEF( int )
compare_kern_pairs( const void* a,
const void* b )
{
@@ -155,9 +155,9 @@
/* parse an AFM file -- for now, only read the kerning pairs */
- FT_LOCAL_DEF
- FT_Error T1_Read_AFM( FT_Face t1_face,
- FT_Stream stream )
+ FT_LOCAL_DEF FT_Error
+ T1_Read_AFM( FT_Face t1_face,
+ FT_Stream stream )
{
FT_Error error;
FT_Memory memory = stream->memory;
@@ -241,11 +241,11 @@
/* find the kerning for a given glyph pair */
- FT_LOCAL_DEF
- void T1_Get_Kerning( T1_AFM* afm,
- FT_UInt glyph1,
- FT_UInt glyph2,
- FT_Vector* kerning )
+ FT_LOCAL_DEF void
+ T1_Get_Kerning( T1_AFM* afm,
+ FT_UInt glyph1,
+ FT_UInt glyph2,
+ FT_Vector* kerning )
{
T1_Kern_Pair *min, *mid, *max;
FT_ULong index = KERN_INDEX( glyph1, glyph2 );
diff --git a/src/type1/t1afm.h b/src/type1/t1afm.h
index e2d5e3f..e3003ff 100644
--- a/src/type1/t1afm.h
+++ b/src/type1/t1afm.h
@@ -43,19 +43,19 @@ FT_BEGIN_HEADER
} T1_AFM;
- FT_LOCAL
- FT_Error T1_Read_AFM( FT_Face face,
- FT_Stream stream );
-
- FT_LOCAL
- void T1_Done_AFM( FT_Memory memory,
- T1_AFM* afm );
-
- FT_LOCAL
- void T1_Get_Kerning( T1_AFM* afm,
- FT_UInt glyph1,
- FT_UInt glyph2,
- FT_Vector* kerning );
+ FT_LOCAL FT_Error
+ T1_Read_AFM( FT_Face face,
+ FT_Stream stream );
+
+ FT_LOCAL void
+ T1_Done_AFM( FT_Memory memory,
+ T1_AFM* afm );
+
+ FT_LOCAL void
+ T1_Get_Kerning( T1_AFM* afm,
+ FT_UInt glyph1,
+ FT_UInt glyph2,
+ FT_Vector* kerning );
FT_END_HEADER
diff --git a/src/type1/t1driver.c b/src/type1/t1driver.c
index c83a501..4277d51 100644
--- a/src/type1/t1driver.c
+++ b/src/type1/t1driver.c
@@ -44,11 +44,11 @@
#define FT_COMPONENT trace_t1driver
- static
- FT_Error get_t1_glyph_name( T1_Face face,
- FT_UInt glyph_index,
- FT_Pointer buffer,
- FT_UInt buffer_max )
+ static FT_Error
+ get_t1_glyph_name( T1_Face face,
+ FT_UInt glyph_index,
+ FT_Pointer buffer,
+ FT_UInt buffer_max )
{
FT_String* gname;
@@ -98,9 +98,9 @@
/* isn't available (i.e., wasn't compiled in the driver at build */
/* time). */
/* */
- static
- FT_Module_Interface Get_Interface( FT_Driver driver,
- const FT_String* interface )
+ static FT_Module_Interface
+ Get_Interface( FT_Driver driver,
+ const FT_String* interface )
{
FT_UNUSED( driver );
FT_UNUSED( interface );
@@ -156,11 +156,11 @@
/* */
/* They can be implemented by format-specific interfaces. */
/* */
- static
- FT_Error Get_Kerning( T1_Face face,
- FT_UInt left_glyph,
- FT_UInt right_glyph,
- FT_Vector* kerning )
+ static FT_Error
+ Get_Kerning( T1_Face face,
+ FT_UInt left_glyph,
+ FT_UInt right_glyph,
+ FT_Vector* kerning )
{
T1_AFM* afm;
@@ -194,9 +194,9 @@
/* <Return> */
/* Glyph index. 0 means `undefined character code'. */
/* */
- static
- FT_UInt Get_Char_Index( FT_CharMap charmap,
- FT_Long charcode )
+ static FT_UInt
+ Get_Char_Index( FT_CharMap charmap,
+ FT_Long charcode )
{
T1_Face face;
FT_UInt result = 0;
@@ -344,7 +344,8 @@
/* format-specific interface can then be retrieved through the method */
/* interface->get_format_interface. */
/* */
- FT_EXPORT_DEF( const FT_Driver_Class* ) getDriverClass( void )
+ FT_EXPORT_DEF( const FT_Driver_Class* )
+ getDriverClass( void )
{
return &t1_driver_class;
}
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index 52c9203..4429154 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -55,7 +55,7 @@
/*************************************************************************/
- FT_CALLBACK_DEF(FT_Error)
+ FT_CALLBACK_DEF( FT_Error )
T1_Parse_Glyph( T1_Decoder* decoder,
FT_UInt glyph_index )
{
@@ -73,9 +73,9 @@
}
- FT_LOCAL_DEF
- FT_Error T1_Compute_Max_Advance( T1_Face face,
- FT_Int* max_advance )
+ FT_LOCAL_DEF FT_Error
+ T1_Compute_Max_Advance( T1_Face face,
+ FT_Int* max_advance )
{
FT_Error error;
T1_Decoder decoder;
@@ -135,11 +135,11 @@
/*************************************************************************/
- FT_LOCAL_DEF
- FT_Error T1_Load_Glyph( T1_GlyphSlot glyph,
- T1_Size size,
- FT_Int glyph_index,
- FT_Int load_flags )
+ FT_LOCAL_DEF FT_Error
+ T1_Load_Glyph( T1_GlyphSlot glyph,
+ T1_Size size,
+ FT_Int glyph_index,
+ FT_Int load_flags )
{
FT_Error error;
T1_Decoder decoder;
diff --git a/src/type1/t1gload.h b/src/type1/t1gload.h
index 99ca3a2..e9f3f9d 100644
--- a/src/type1/t1gload.h
+++ b/src/type1/t1gload.h
@@ -27,15 +27,15 @@
FT_BEGIN_HEADER
- FT_LOCAL
- FT_Error T1_Compute_Max_Advance( T1_Face face,
- FT_Int* max_advance );
-
- FT_LOCAL
- FT_Error T1_Load_Glyph( T1_GlyphSlot glyph,
- T1_Size size,
- FT_Int glyph_index,
- FT_Int load_flags );
+ FT_LOCAL FT_Error
+ T1_Compute_Max_Advance( T1_Face face,
+ FT_Int* max_advance );
+
+ FT_LOCAL FT_Error
+ T1_Load_Glyph( T1_GlyphSlot glyph,
+ T1_Size size,
+ FT_Int glyph_index,
+ FT_Int load_flags );
FT_END_HEADER
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 4934242..bfc7985 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -96,10 +96,10 @@
/*************************************************************************/
/*************************************************************************/
- static
- FT_Error t1_allocate_blend( T1_Face face,
- FT_UInt num_designs,
- FT_UInt num_axis )
+ static FT_Error
+ t1_allocate_blend( T1_Face face,
+ FT_UInt num_designs,
+ FT_UInt num_axis )
{
T1_Blend* blend;
FT_Memory memory = face->root.memory;
@@ -180,9 +180,9 @@
}
- FT_LOCAL_DEF
- FT_Error T1_Get_Multi_Master( T1_Face face,
- FT_Multi_Master* master )
+ FT_LOCAL_DEF FT_Error
+ T1_Get_Multi_Master( T1_Face face,
+ FT_Multi_Master* master )
{
T1_Blend* blend = face->blend;
FT_UInt n;
@@ -212,10 +212,10 @@
}
- FT_LOCAL_DEF
- FT_Error T1_Set_MM_Blend( T1_Face face,
- FT_UInt num_coords,
- FT_Fixed* coords )
+ FT_LOCAL_DEF FT_Error
+ T1_Set_MM_Blend( T1_Face face,
+ FT_UInt num_coords,
+ FT_Fixed* coords )
{
T1_Blend* blend = face->blend;
FT_Error error;
@@ -258,10 +258,10 @@
}
- FT_LOCAL_DEF
- FT_Error T1_Set_MM_Design( T1_Face face,
- FT_UInt num_coords,
- FT_Long* coords )
+ FT_LOCAL_DEF FT_Error
+ T1_Set_MM_Design( T1_Face face,
+ FT_UInt num_coords,
+ FT_Long* coords )
{
T1_Blend* blend = face->blend;
FT_Error error;
@@ -328,8 +328,8 @@
}
- FT_LOCAL_DEF
- void T1_Done_Blend( T1_Face face )
+ FT_LOCAL_DEF void
+ T1_Done_Blend( T1_Face face )
{
FT_Memory memory = face->root.memory;
T1_Blend* blend = face->blend;
@@ -380,9 +380,9 @@
}
- static
- void parse_blend_axis_types( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_blend_axis_types( T1_Face face,
+ T1_Loader* loader )
{
T1_Token axis_tokens[ T1_MAX_MM_AXIS ];
FT_Int n, num_axis;
@@ -441,9 +441,9 @@
}
- static
- void parse_blend_design_positions( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_blend_design_positions( T1_Face face,
+ T1_Loader* loader )
{
T1_Token design_tokens[ T1_MAX_MM_DESIGNS ];
FT_Int num_designs;
@@ -523,9 +523,9 @@
}
- static
- void parse_blend_design_map( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_blend_design_map( T1_Face face,
+ T1_Loader* loader )
{
FT_Error error = 0;
T1_ParserRec* parser = &loader->parser;
@@ -604,9 +604,9 @@
}
- static
- void parse_weight_vector( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_weight_vector( T1_Face face,
+ T1_Loader* loader )
{
FT_Error error = 0;
T1_ParserRec* parser = &loader->parser;
@@ -656,9 +656,9 @@
/* with a lot of Postscript garbage behind it (that's completely out */
/* of spec!); we detect it and terminate the parsing */
/* */
- static
- void parse_shared_dict( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_shared_dict( T1_Face face,
+ T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
@@ -689,10 +689,10 @@
/*************************************************************************/
- static
- FT_Error t1_load_keyword( T1_Face face,
- T1_Loader* loader,
- T1_Field* field )
+ static FT_Error
+ t1_load_keyword( T1_Face face,
+ T1_Loader* loader,
+ T1_Field* field )
{
FT_Error error;
void* dummy_object;
@@ -756,25 +756,24 @@
}
- static
- int is_space( FT_Byte c )
+ static int
+ is_space( FT_Byte c )
{
return ( c == ' ' || c == '\t' || c == '\r' || c == '\n' );
}
- static
- int is_alpha( FT_Byte c )
+ static int
+ is_alpha( FT_Byte c )
{
return ( isalnum( c ) || c == '.' || c == '_' || c == '-' );
}
-
- static
- int read_binary_data( T1_ParserRec* parser,
- FT_Int* size,
- FT_Byte** base )
+ static int
+ read_binary_data( T1_ParserRec* parser,
+ FT_Int* size,
+ FT_Byte** base )
{
FT_Byte* cur;
FT_Byte* limit = parser->root.limit;
@@ -813,9 +812,9 @@
/* the `/Encoding', `/Subrs', and `/CharStrings' */
/* dictionaries */
- static
- void parse_font_name( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_font_name( T1_Face face,
+ T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
FT_Error error;
@@ -855,9 +854,9 @@
}
- static
- void parse_font_bbox( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_font_bbox( T1_Face face,
+ T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
FT_Fixed temp[4];
@@ -872,9 +871,9 @@
}
- static
- void parse_font_matrix( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_font_matrix( T1_Face face,
+ T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
FT_Matrix* matrix = &face->type1.font_matrix;
@@ -921,9 +920,9 @@
}
- static
- void parse_encoding( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_encoding( T1_Face face,
+ T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
FT_Byte* cur = parser->root.cursor;
@@ -1081,9 +1080,9 @@
}
- static
- void parse_subrs( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_subrs( T1_Face face,
+ T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
PS_Table* table = &loader->subrs;
@@ -1166,9 +1165,9 @@
}
- static
- void parse_charstrings( T1_Face face,
- T1_Loader* loader )
+ static void
+ parse_charstrings( T1_Face face,
+ T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
PS_Table* code_table = &loader->charstrings;
@@ -1448,11 +1447,11 @@
};
- static
- FT_Error parse_dict( T1_Face face,
- T1_Loader* loader,
- FT_Byte* base,
- FT_Long size )
+ static FT_Error
+ parse_dict( T1_Face face,
+ T1_Loader* loader,
+ FT_Byte* base,
+ FT_Long size )
{
T1_ParserRec* parser = &loader->parser;
@@ -1565,9 +1564,9 @@
}
- static
- void t1_init_loader( T1_Loader* loader,
- T1_Face face )
+ static void
+ t1_init_loader( T1_Loader* loader,
+ T1_Face face )
{
FT_UNUSED( face );
@@ -1585,8 +1584,8 @@
}
- static
- void t1_done_loader( T1_Loader* loader )
+ static void
+ t1_done_loader( T1_Loader* loader )
{
T1_ParserRec* parser = &loader->parser;
@@ -1603,8 +1602,8 @@
}
- FT_LOCAL_DEF
- FT_Error T1_Open_Face( T1_Face face )
+ FT_LOCAL_DEF FT_Error
+ T1_Open_Face( T1_Face face )
{
T1_Loader loader;
T1_ParserRec* parser;
diff --git a/src/type1/t1load.h b/src/type1/t1load.h
index b83aed9..b4ff450 100644
--- a/src/type1/t1load.h
+++ b/src/type1/t1load.h
@@ -51,27 +51,27 @@ FT_BEGIN_HEADER
} T1_Loader;
- FT_LOCAL
- FT_Error T1_Open_Face( T1_Face face );
+ FT_LOCAL FT_Error
+ T1_Open_Face( T1_Face face );
#ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT
- FT_LOCAL
- FT_Error T1_Get_Multi_Master( T1_Face face,
- FT_Multi_Master* master );
+ FT_LOCAL FT_Error
+ T1_Get_Multi_Master( T1_Face face,
+ FT_Multi_Master* master );
- FT_LOCAL
- FT_Error T1_Set_MM_Blend( T1_Face face,
- FT_UInt num_coords,
- FT_Fixed* coords );
+ FT_LOCAL FT_Error
+ T1_Set_MM_Blend( T1_Face face,
+ FT_UInt num_coords,
+ FT_Fixed* coords );
- FT_LOCAL
- FT_Error T1_Set_MM_Design( T1_Face face,
- FT_UInt num_coords,
- FT_Long* coords );
+ FT_LOCAL FT_Error
+ T1_Set_MM_Design( T1_Face face,
+ FT_UInt num_coords,
+ FT_Long* coords );
- FT_LOCAL
- void T1_Done_Blend( T1_Face face );
+ FT_LOCAL void
+ T1_Done_Blend( T1_Face face );
#endif /* !T1_CONFIG_OPTION_NO_MM_SUPPORT */
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index 1e07445..04975c1 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -63,8 +63,8 @@
/* <Input> */
/* face :: A typeless pointer to the face object to destroy. */
/* */
- FT_LOCAL_DEF
- void T1_Done_Face( T1_Face face )
+ FT_LOCAL_DEF void
+ T1_Done_Face( T1_Face face )
{
FT_Memory memory;
T1_Font* type1 = &face->type1;
@@ -147,12 +147,12 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error T1_Init_Face( FT_Stream stream,
- T1_Face face,
- FT_Int face_index,
- FT_Int num_params,
- FT_Parameter* params )
+ FT_LOCAL_DEF FT_Error
+ T1_Init_Face( FT_Stream stream,
+ T1_Face face,
+ FT_Int face_index,
+ FT_Int num_params,
+ FT_Parameter* params )
{
FT_Error error;
PSNames_Interface* psnames;
@@ -386,8 +386,8 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL_DEF
- FT_Error T1_Init_Driver( T1_Driver driver )
+ FT_LOCAL_DEF FT_Error
+ T1_Init_Driver( T1_Driver driver )
{
FT_UNUSED( driver );
@@ -406,8 +406,8 @@
/* <Input> */
/* driver :: A handle to the target Type 1 driver. */
/* */
- FT_LOCAL_DEF
- void T1_Done_Driver( T1_Driver driver )
+ FT_LOCAL_DEF void
+ T1_Done_Driver( T1_Driver driver )
{
FT_UNUSED( driver );
}
diff --git a/src/type1/t1objs.h b/src/type1/t1objs.h
index 810380a..4a5b4e3 100644
--- a/src/type1/t1objs.h
+++ b/src/type1/t1objs.h
@@ -135,21 +135,21 @@ FT_BEGIN_HEADER
} T1_GlyphSlotRec;
- FT_LOCAL
- FT_Error T1_Init_Face( FT_Stream stream,
- T1_Face face,
- FT_Int face_index,
- FT_Int num_params,
- FT_Parameter* params );
+ FT_LOCAL FT_Error
+ T1_Init_Face( FT_Stream stream,
+ T1_Face face,
+ FT_Int face_index,
+ FT_Int num_params,
+ FT_Parameter* params );
- FT_LOCAL
- void T1_Done_Face( T1_Face face );
+ FT_LOCAL void
+ T1_Done_Face( T1_Face face );
- FT_LOCAL
- FT_Error T1_Init_Driver( T1_Driver driver );
+ FT_LOCAL FT_Error
+ T1_Init_Driver( T1_Driver driver );
- FT_LOCAL
- void T1_Done_Driver( T1_Driver driver );
+ FT_LOCAL void
+ T1_Done_Driver( T1_Driver driver );
FT_END_HEADER
diff --git a/src/type1/t1parse.c b/src/type1/t1parse.c
index 78ab3a2..77fb5f0 100644
--- a/src/type1/t1parse.c
+++ b/src/type1/t1parse.c
@@ -95,10 +95,10 @@
};
- static
- FT_Error read_pfb_tag( FT_Stream stream,
- FT_UShort* tag,
- FT_Long* size )
+ static FT_Error
+ read_pfb_tag( FT_Stream stream,
+ FT_UShort* tag,
+ FT_Long* size )
{
FT_Error error;
PFB_Tag head;
@@ -118,11 +118,11 @@
}
- FT_LOCAL_DEF
- FT_Error T1_New_Parser( T1_ParserRec* parser,
- FT_Stream stream,
- FT_Memory memory,
- PSAux_Interface* psaux )
+ FT_LOCAL_DEF FT_Error
+ T1_New_Parser( T1_ParserRec* parser,
+ FT_Stream stream,
+ FT_Memory memory,
+ PSAux_Interface* psaux )
{
FT_Error error;
FT_UShort tag;
@@ -227,8 +227,8 @@
}
- FT_LOCAL_DEF
- void T1_Finalize_Parser( T1_ParserRec* parser )
+ FT_LOCAL_DEF void
+ T1_Finalize_Parser( T1_ParserRec* parser )
{
FT_Memory memory = parser->root.memory;
@@ -245,8 +245,8 @@
/* return the value of an hexadecimal digit */
- static
- int hexa_value( char c )
+ static int
+ hexa_value( char c )
{
unsigned int d;
@@ -267,9 +267,9 @@
}
- FT_LOCAL_DEF
- FT_Error T1_Get_Private_Dict( T1_ParserRec* parser,
- PSAux_Interface* psaux )
+ FT_LOCAL_DEF FT_Error
+ T1_Get_Private_Dict( T1_ParserRec* parser,
+ PSAux_Interface* psaux )
{
FT_Stream stream = parser->stream;
FT_Memory memory = parser->root.memory;
diff --git a/src/type1/t1parse.h b/src/type1/t1parse.h
index 8b91b3c..c5a1837 100644
--- a/src/type1/t1parse.h
+++ b/src/type1/t1parse.h
@@ -112,18 +112,18 @@ FT_BEGIN_HEADER
(p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )
- FT_LOCAL
- FT_Error T1_New_Parser( T1_ParserRec* parser,
- FT_Stream stream,
- FT_Memory memory,
- PSAux_Interface* psaux );
-
- FT_LOCAL
- FT_Error T1_Get_Private_Dict( T1_ParserRec* parser,
- PSAux_Interface* psaux );
-
- FT_LOCAL
- void T1_Finalize_Parser( T1_ParserRec* parser );
+ FT_LOCAL FT_Error
+ T1_New_Parser( T1_ParserRec* parser,
+ FT_Stream stream,
+ FT_Memory memory,
+ PSAux_Interface* psaux );
+
+ FT_LOCAL FT_Error
+ T1_Get_Private_Dict( T1_ParserRec* parser,
+ PSAux_Interface* psaux );
+
+ FT_LOCAL void
+ T1_Finalize_Parser( T1_ParserRec* parser );
FT_END_HEADER
diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c
index c5e7750..547f924 100644
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -648,7 +648,8 @@
/* format-specific interface can then be retrieved through the method */
/* interface->get_format_interface. */
/* */
- FT_EXPORT_DEF( const FT_Driver_Class* ) getDriverClass( void )
+ FT_EXPORT_DEF( const FT_Driver_Class* )
+ getDriverClass( void )
{
return &winfnt_driver_class;
}