File: unifont.txt

package info (click to toggle)
unifont 1%3A16.0.04-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 111,832 kB
  • sloc: ansic: 5,963; javascript: 1,706; perl: 1,658; makefile: 1,502; sh: 53; awk: 3
file content (4016 lines) | stat: -rw-r--r-- 133,022 bytes parent folder | download | duplicates (2)
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
1 Introduction
2 Tutorial
2.1 Unicode
2.2 Unifont Structure
2.3 Hex File Format
2.4 Using Graphical Tools
2.5 Using Hexdraw
2.6 Checking Coverage
2.7 Custom Builds
2.8 OpenType
2.9 One Glyph per File
2.10 Viewing a Unifont File Interactively
2.11 Seeing the Big Picture (Literally!)
2.12 Combining Circles
2.13 Installing Fonts on GNU/Linux
2.14 Creating a Brand New Font
2.15 Updates to Unicode
3 Reference
3.1 bdfimplode
  3.1.1 bdfimplode NAME
  3.1.2 bdfimplode SYNOPSIS
  3.1.3 bdfimplode DESCRIPTION
  3.1.4 bdfimplode FILES
  3.1.5 bdfimplode SEE ALSO
  3.1.6 bdfimplode AUTHOR
  3.1.7 bdfimplode LICENSE
  3.1.8 bdfimplode BUGS
3.2 hex2bdf
  3.2.1 hex2bdf NAME
  3.2.2 hex2bdf SYNOPSIS
  3.2.3 hex2bdf DESCRIPTION
  3.2.4 hex2bdf OPTIONS
  3.2.5 hex2bdf EXAMPLE
  3.2.6 hex2bdf FILES
  3.2.7 hex2bdf SEE ALSO
  3.2.8 hex2bdf AUTHOR
  3.2.9 hex2bdf LICENSE
  3.2.10 hex2bdf BUGS
3.3 hex2otf
  3.3.1 hex2otf NAME
  3.3.2 hex2otf SYNOPSIS
  3.3.3 hex2otf DESCRIPTION
    3.3.3.1 GPOS RATIONALE
    3.3.3.2 OUTPUT FORMAT CONSIDERATIONS
    3.3.3.3 FUTURE DIRECTIONS
  3.3.4 hex2otf OPTIONS
  3.3.5 hex2otf OPERANDS
  3.3.6 hex2otf FONTFORGE NOTE
  3.3.7 hex2otf EXAMPLE
  3.3.8 hex2otf EXIT STATUS
  3.3.9 hex2otf SEE ALSO
  3.3.10 hex2otf AUTHOR
  3.3.11 hex2otf LICENSE
3.4 hex2sfd
  3.4.1 hex2sfd NAME
  3.4.2 hex2sfd SYNOPSIS
  3.4.3 hex2sfd DESCRIPTION
  3.4.4 hex2sfd FILES
  3.4.5 hex2sfd SEE ALSO
  3.4.6 hex2sfd AUTHOR
  3.4.7 hex2sfd LICENSE
  3.4.8 hex2sfd BUGS
3.5 hexbraille
  3.5.1 hexbraille NAME
  3.5.2 hexbraille SYNOPSIS
  3.5.3 hexbraille DESCRIPTION
  3.5.4 hexbraille FILES
  3.5.5 hexbraille SEE ALSO
  3.5.6 hexbraille AUTHOR
  3.5.7 hexbraille LICENSE
  3.5.8 hexbraille BUGS
3.6 hexdraw
  3.6.1 hexdraw NAME
  3.6.2 hexdraw SYNOPSIS
  3.6.3 hexdraw DESCRIPTION
  3.6.4 hexdraw OPTIONS
  3.6.5 hexdraw FILES
  3.6.6 hexdraw SEE ALSO
  3.6.7 hexdraw AUTHOR
  3.6.8 hexdraw LICENSE
  3.6.9 hexdraw BUGS
3.7 hexkinya
  3.7.1 hexkinya NAME
  3.7.2 hexkinya SYNOPSIS
  3.7.3 hexkinya DESCRIPTION
  3.7.4 hexkinya FILES
  3.7.5 hexkinya SEE ALSO
  3.7.6 hexkinya AUTHOR
  3.7.7 hexkinya LICENSE
  3.7.8 hexkinya BUGS
3.8 hexmerge
  3.8.1 hexmerge NAME
  3.8.2 hexmerge SYNOPSIS
  3.8.3 hexmerge DESCRIPTION
  3.8.4 hexmerge FILES
  3.8.5 hexmerge SEE ALSO
  3.8.6 hexmerge AUTHOR
  3.8.7 hexmerge LICENSE
  3.8.8 hexmerge BUGS
3.9 johab2syllables
  3.9.1 johab2syllables NAME
  3.9.2 johab2syllables SYNOPSIS
  3.9.3 johab2syllables DESCRIPTION
  3.9.4 johab2syllables OPTIONS
  3.9.5 johab2syllables EXAMPLES
  3.9.6 johab2syllables FILES
  3.9.7 johab2syllables SEE ALSO
  3.9.8 johab2syllables AUTHOR
  3.9.9 johab2syllables LICENSE
  3.9.10 johab2syllables BUGS
3.10 johab2ucs2
  3.10.1 johab2ucs2 NAME
  3.10.2 johab2ucs2 SYNOPSIS
  3.10.3 johab2ucs2 DESCRIPTION
  3.10.4 johab2ucs2 FILES
  3.10.5 johab2ucs2 SEE ALSO
  3.10.6 johab2ucs2 AUTHOR
  3.10.7 johab2ucs2 LICENSE
  3.10.8 johab2ucs2 BUGS
3.11 unibdf2hex
  3.11.1 unibdf2hex NAME
  3.11.2 unibdf2hex SYNOPSIS
  3.11.3 unibdf2hex DESCRIPTION
  3.11.4 unibdf2hex FILES
  3.11.5 unibdf2hex SEE ALSO
  3.11.6 unibdf2hex AUTHOR
  3.11.7 unibdf2hex LICENSE
  3.11.8 unibdf2hex BUGS
3.12 unibmp2hex
  3.12.1 unibmp2hex NAME
  3.12.2 unibmp2hex SYNOPSIS
  3.12.3 unibmp2hex DESCRIPTION
  3.12.4 unibmp2hex OPTIONS
  3.12.5 unibmp2hex EXAMPLE
  3.12.6 unibmp2hex FILES
  3.12.7 unibmp2hex SEE ALSO
  3.12.8 unibmp2hex AUTHOR
  3.12.9 unibmp2hex LICENSE
  3.12.10 unibmp2hex BUGS
3.13 unibmpbump
  3.13.1 unibmpbump NAME
  3.13.2 unibmpbump SYNOPSIS
  3.13.3 unibmpbump DESCRIPTION
  3.13.4 unibmpbump OPTIONS
  3.13.5 unibmpbump FILES
  3.13.6 unibmpbump SEE ALSO
  3.13.7 unibmpbump AUTHOR
  3.13.8 unibmpbump LICENSE
  3.13.9 unibmpbump BUGS
3.14 unicoverage
  3.14.1 unicoverage NAME
  3.14.2 unicoverage SYNOPSIS
  3.14.3 unicoverage DESCRIPTION
  3.14.4 unicoverage OPTIONS
  3.14.5 unicoverage EXAMPLE
  3.14.6 unicoverage FILES
  3.14.7 unicoverage SEE ALSO
  3.14.8 unicoverage AUTHOR
  3.14.9 unicoverage LICENSE
  3.14.10 unicoverage BUGS
3.15 unidup
  3.15.1 unidup NAME
  3.15.2 unidup SYNOPSIS
  3.15.3 unidup DESCRIPTION
  3.15.4 unidup FILES
  3.15.5 unidup SEE ALSO
  3.15.6 unidup AUTHOR
  3.15.7 unidup LICENSE
  3.15.8 unidup BUGS
3.16 unifont-viewer
  3.16.1 unifont-viewer NAME
  3.16.2 unifont-viewer SYNOPSIS
  3.16.3 unifont-viewer DESCRIPTION
  3.16.4 unifont-viewer FILES
  3.16.5 unifont-viewer SEE ALSO
  3.16.6 unifont-viewer AUTHOR
  3.16.7 unifont-viewer LICENSE
  3.16.8 unifont-viewer BUGS
3.17 unifont1per
  3.17.1 unifont1per NAME
  3.17.2 unifont1per SYNOPSIS
  3.17.3 unifont1per DESCRIPTION
  3.17.4 unifont1per OPTIONS
  3.17.5 unifont1per FILES
  3.17.6 unifont1per SEE ALSO
  3.17.7 unifont1per AUTHOR
  3.17.8 unifont1per LICENSE
  3.17.9 unifont1per BUGS
3.18 unifontchojung
  3.18.1 unifontchojung NAME
  3.18.2 unifontchojung SYNOPSIS
  3.18.3 unifontchojung DESCRIPTION
  3.18.4 unifontchojung FILES
  3.18.5 unifontchojung SEE ALSO
  3.18.6 unifontchojung AUTHOR
  3.18.7 unifontchojung LICENSE
  3.18.8 unifontchojung BUGS
3.19 unifontksx
  3.19.1 unifontksx NAME
  3.19.2 unifontksx SYNOPSIS
  3.19.3 unifontksx DESCRIPTION
  3.19.4 unifontksx FILES
  3.19.5 unifontksx SEE ALSO
  3.19.6 unifontksx AUTHOR
  3.19.7 unifontksx LICENSE
  3.19.8 unifontksx BUGS
3.20 unifontpic
  3.20.1 unifontpic NAME
  3.20.2 unifontpic SYNOPSIS
  3.20.3 unifontpic DESCRIPTION
  3.20.4 unifontpic OPTIONS
  3.20.5 unifontpic EXAMPLES
  3.20.6 unifontpic FILES
  3.20.7 unifontpic SEE ALSO
  3.20.8 unifontpic AUTHOR
  3.20.9 unifontpic LICENSE
  3.20.10 unifontpic BUGS
3.21 unigen-hangul
  3.21.1 unigen-hangul NAME
  3.21.2 unigen-hangul SYNOPSIS
  3.21.3 unigen-hangul DESCRIPTION
  3.21.4 unigen-hangul OPTIONS
  3.21.5 unigen-hangul EXAMPLES
  3.21.6 unigen-hangul FILES
  3.21.7 unigen-hangul SEE ALSO
  3.21.8 unigen-hangul AUTHOR
  3.21.9 unigen-hangul LICENSE
  3.21.10 unigen-hangul BUGS
3.22 unigencircles
  3.22.1 unigencircles NAME
  3.22.2 unigencircles SYNOPSIS
  3.22.3 unigencircles DESCRIPTION
  3.22.4 unigencircles EXAMPLE
  3.22.5 unigencircles FILES
  3.22.6 unigencircles SEE ALSO
  3.22.7 unigencircles AUTHOR
  3.22.8 unigencircles LICENSE
  3.22.9 unigencircles BUGS
3.23 unigenwidth
  3.23.1 unigenwidth NAME
  3.23.2 unigenwidth SYNOPSIS
  3.23.3 unigenwidth DESCRIPTION
  3.23.4 unigenwidth EXAMPLE
  3.23.5 unigenwidth FILES
  3.23.6 unigenwidth SEE ALSO
  3.23.7 unigenwidth AUTHOR
  3.23.8 unigenwidth LICENSE
  3.23.9 unigenwidth BUGS
3.24 unihex2bmp
  3.24.1 unihex2bmp NAME
  3.24.2 unihex2bmp SYNOPSIS
  3.24.3 unihex2bmp DESCRIPTION
  3.24.4 unihex2bmp OPTIONS
  3.24.5 unihex2bmp EXAMPLE
  3.24.6 unihex2bmp FILES
  3.24.7 unihex2bmp SEE ALSO
  3.24.8 unihex2bmp AUTHOR
  3.24.9 unihex2bmp LICENSE
  3.24.10 unihex2bmp BUGS
3.25 unihex2png
  3.25.1 unihex2png NAME
  3.25.2 unihex2png SYNOPSIS
  3.25.3 unihex2png DESCRIPTION
  3.25.4 unihex2png OPTIONS
  3.25.5 unihex2png EXAMPLE
  3.25.6 unihex2png FILES
  3.25.7 unihex2png SEE ALSO
  3.25.8 unihex2png AUTHOR
  3.25.9 unihex2png LICENSE
  3.25.10 unihex2png BUGS
3.26 unihexfill
  3.26.1 unihexfill NAME
  3.26.2 unihexfill SYNOPSIS
  3.26.3 unihexfill DESCRIPTION
  3.26.4 unihexfill OPTIONS
  3.26.5 unihexfill FILES
  3.26.6 unihexfill EXAMPLE
  3.26.7 unihexfill SEE ALSO
  3.26.8 unihexfill AUTHOR
  3.26.9 unihexfill LICENSE
  3.26.10 unihexfill BUGS
3.27 unihexgen
  3.27.1 unihexgen NAME
  3.27.2 unihexgen SYNOPSIS
  3.27.3 unihexgen DESCRIPTION
  3.27.4 unihexgen OPTIONS
  3.27.5 unihexgen FILES
  3.27.6 unihexgen EXAMPLE
  3.27.7 unihexgen SEE ALSO
  3.27.8 unihexgen AUTHOR
  3.27.9 unihexgen LICENSE
  3.27.10 unihexgen BUGS
3.28 unihexpose
  3.28.1 unihexpose NAME
  3.28.2 unihexpose SYNOPSIS
  3.28.3 unihexpose DESCRIPTION
  3.28.4 unihexpose FILES
  3.28.5 unihexpose SEE ALSO
  3.28.6 unihexpose AUTHOR
  3.28.7 unihexpose LICENSE
  3.28.8 unihexpose BUGS
3.29 unihexrotate
  3.29.1 unihexrotate NAME
  3.29.2 unihexrotate SYNOPSIS
  3.29.3 unihexrotate DESCRIPTION
  3.29.4 unihexrotate OPTIONS
  3.29.5 unihexrotate EXAMPLES
  3.29.6 unihexrotate FILES
  3.29.7 unihexrotate SEE ALSO
  3.29.8 unihexrotate AUTHOR
  3.29.9 unihexrotate LICENSE
  3.29.10 unihexrotate BUGS
3.30 unijohab2html
  3.30.1 unijohab2html NAME
  3.30.2 unijohab2html SYNOPSIS
  3.30.3 unijohab2html DESCRIPTION
  3.30.4 unijohab2html OPTIONS
  3.30.5 unijohab2html EXAMPLES
  3.30.6 unijohab2html FILES
  3.30.7 unijohab2html SEE ALSO
  3.30.8 unijohab2html AUTHOR
  3.30.9 unijohab2html LICENSE
  3.30.10 unijohab2html BUGS
3.31 unipagecount
  3.31.1 unipagecount NAME
  3.31.2 unipagecount SYNOPSIS
  3.31.3 unipagecount DESCRIPTION
  3.31.4 unipagecount OPTIONS
  3.31.5 unipagecount FILES
  3.31.6 unipagecount SEE ALSO
  3.31.7 unipagecount AUTHOR
  3.31.8 unipagecount LICENSE
  3.31.9 unipagecount BUGS
3.32 unipng2hex
  3.32.1 unipng2hex NAME
  3.32.2 unipng2hex SYNOPSIS
  3.32.3 unipng2hex DESCRIPTION
  3.32.4 unipng2hex OPTIONS
  3.32.5 unipng2hex EXAMPLE
  3.32.6 unipng2hex FILES
  3.32.7 unipng2hex SEE ALSO
  3.32.8 unipng2hex AUTHOR
  3.32.9 unipng2hex LICENSE
  3.32.10 unipng2hex BUGS
1 Introduction
**************

This document describes the process of using the GNU Unifont utilities
to create a font.  The steps described in the "Using Graphical Tools"
section in the "Tutorial" chapter are more or less the steps that I
(Paul Hardy) followed to add thousands of glyphs to GNU Unifont, except
that I didn't have the luxury of just typing 'make' to make a new font
while adding those glyphs in the beginning.

I streamlined the font build process after I was done drawing the
Unicode 5.1 glyphs.

If you have questions, please email 'unifoundry@unifoundry.com'.  You
can check for the latest Unifont news at
'http://savannah.gnu.org/projects/unifont' and 'http://unifoundry.com'.
You can also submit a bug report through the
'http://savannah.gnu.org/projects/unifont' page.

DISCLAIMER: Donald Knuth warned in his Metafont book that if someone
started designing type, they would never again be able to look at a page
of text normally and just read its content.  There is a point of no
return beyond which a serious font designer begins looking at how
individual letters in a font on a page are drawn, and how they might be
improved.  Be warned!

-- Paul Hardy ('unifoundry@unifoundry.com') 2008, 2013

2 Tutorial
**********

This chapter provides a step-by-step tutorial on using the Unifont
utility programs to modify a font in the GNU Unifont format.

2.1 Unicode
===========

Unicode is an international standard to encode all the world's scripts
with one universal scheme.  Unicode is the default encoding for web
pages and is gaining popularity in many other applications.  To learn
more about Unicode, look at code charts, and see the latest
developments, check out

     http://unicode.org

Unifont follows the Unicode encoding scheme.  Unicode defines the
numeric value of a character, but does not define one particular font.
There can be (and are) many fonts that support a subset of Unicode
characters.

In 1998, Roman Czyborra observed that there was still no font, free or
commercial, with complete Unicode coverage.  He envisioned a low-quality
bitmapped font as an easy way to produce a font that covered much of the
Unicode standard.

2.2 Unifont Structure
=====================

GNU Unifont is a bitmapped pixel font, which is also converted to an
outline TrueType font.  Roman Czyborra began this font in 1998 with a
goal of having one glyph rendered for each visible character in the
Unicode Basic Multilingual Plane (Plane 0, the first 65,536 characters).
His original writing on this is at 'http://czyborra.com/unifont/'.

(Note that the term "character" is used very loosely here for
simplicity; the Unicode Standard has a stricter definition of what
constitutes a character.)

The font is dual-width.  Each character is 16 pixels tall, and either 8
or 16 pixels wide.  The characters are stored in a unique .hex file
format invented by Roman Czyborra as a convenient way of giving each
character exactly a one line specification.  Conversion between this
.hex format and Bitmap Distribution format (BDF) font format is trivial.

Glyphs can actually be 8, 16, 24, or 32 pixels wide, but this extended
capability should be considered experimental.  Prior to the release of
Unicode 10.0.0, hooks were put in place in some of the Unifont utilities
to allow for the possibility of future fonts to represent complex glyphs
such as Cuneiform.  Unicode 10.0.0 created a need for quadruple-width
glyphs (31 pixels wide, encoded as 32 pixels wide) for some historic
Chinese ideographs assigned to the Plane 0, also referred to as the
Basic Multilingual Plane (BMP); that currently is the only place glyphs
other than single- or double-width are used.  As a result, those Unifont
utilities that support quadruple-width glyphs have updated descriptions
in the reference section of this document.

2.3 Hex File Format
===================

By convention, files containing the Unifont native font format have the
extension ".hex".  Their format is extremely simple, consisting of two
fields separated with a colon (":") and ending with a newline.

The first field is the Unicode code point, in hexadecimal.  For all
Plane 0 code points, this is a four digit hexadecimal number.
Hexadecimal digits are (in order) 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C,
D, E, and F. The Unicode Standard uses a hexadecimal number to assign
each character a location.  These locations are called "code points" and
their range is 0 through 10FFFF, inclusive.

The range 0000 through FFFF, inclusive, is called the Basic Multilingual
Plane (BMP), or Plane 0.  This plane contains glyphs for most of the
world's modern writing scripts.

Unifont utilities support glyphs across the entire Unicode range.  The
current distribution includes glyphs for Unicode's Plane 0, Plane 1 (the
Supplementary Multilingual Plane, or SMP), and beyond.  Coverage of the
SMP is only partial.

The first field in a '.hex' file should be either four digits long for
the Basic Multilingual Plane, or six digits long for higher Unicode
planes, following the convention of the Unicode Standard.

The second field is a string of hexadecimal digits.  There are 32 digits
for a character that is 8 pixels wide, and 64 digits for a character
that is 16 pixels wide.

The good news is you don't have to worry about these long digit strings.
Roman Czyborra wrote a utility, 'hexdraw', to convert .hex fonts to a
form that can be edited with a plain text editor, then converted back
into .hex format.

Paul Hardy wrote two utilities to do the same thing except with
bitmapped graphics images for editing with a graphics editor:
'unihex2bmp' converts a block of 256 characters into a graphics file,
and 'unibmp2hex' converts such a graphics file back into .hex format.
These bitmaps display the 256 characters in a block arranged in a 16 by
16 character grid.  The graphics editor must maintain the image as a
monochrome (black and white) file, with one bit per pixel.  After
conversion from a .bmp file back to a .hex file, the next step is
conversion to a BDF font file.  A BDF file can only encode a pixel being
on or off (i.e., black or white only with no intermediate shades of
gray).

Andrew Miller later converted 'unihex2bmp' and 'unibmp2hex' to Perl,
transforming them into 'unihex2png' and 'unipng2hex', respectively.
These programs convert Unifont .hex files to and from Portable Network
Graphics files.

The 'unihex2png','unipng2hex', and 'hexdraw' programs handle the full
Unicode code point range of 0x000000 through 0x10FFFF. The 'unihex2bmp'
and 'unibmp2hex' programs support the full 32-bit unsigned integer range
of 0x00000000 through 0xFFFFFFFF, but have not been tested extensively
beyond the Unicode upper limit of 0x10FFFF. The range of the C programs
might be truncated in the future to only cover to 0x10FFFF, the limit of
the Unicode code point space.

Rebecca Bettencourt has created two free software programs on her
KreativeKorp.com website that are well-suited for Unifont editing:
Bits'n'Picas and PowerPaint.  The Bits'n'Picas program can read,
directly graphically edit, and write native Unifont .hex format files.
The PowerPaint program can also edit bitmaps, and is compatible with
Unifont's 'unibmp2hex' and 'unipng2hex' utilities.  For more
information, visit Rebecca's software page on her website at
<https://www.kreativekorp.com/software/>.  Kreative License:
Bits'n'Picas and PowerPaint are dual-licensed under the Mozilla Public
License version 1.1 and the GNU Lesser General Public License version 3.

2.4 Using Graphical Tools
=========================

Let's look at an example.  Suppose you want to modify the Coptic letters
in the range U+2C80..U+2CFF ("U+" is Unicode shorthand).  These letters
are in the upper half of the block U+2C00..U+2CFF. The Unicode utilities
in this package refer to this as "page" 2C. "Page" is not a Unicode term
-- it is just a term unique to this package to refer to a block of 256
code points/characters.  The equivalent Unicode term is "row"; however,
that term could cause confusion with a row being 16 code points in a
code chart; hopefully the term "page" is less ambiguous.

The steps to follow will be:

  1. Convert the .hex version of the page 2C range as a 16 by 16
     bitmapped grid.

  2. Modify the bitmap in any graphics editor, being careful to re-save
     it as a Windows Bitmap (.bmp) or Wireless Bitmap file when
     finished.

  3. Convert the modified bitmap back into a .hex font file.

  4. Merge the results with the original 'unifont.hex' file (or whatever
     its name might be).

  5. Run 'unidup' on the resulting sorted file to guard against
     duplicate character definitions.

  6. Create the new bitmapped version of the font.

  7. Check the compiled font for duplicates.

  8. If there are duplicates, remove them and go back to Step 5.

  9. Create the new TrueType version or other versions of the font.

Note that Rebecca Bettencourt's Bits'n'Picas program (mentioned in the
preivous section) can cover Steps 1 through 3.

If the script has combining characters (such as accent glyphs), also add
their code points to the proper '*combining.txt' file in the directory
for the corresponding Unicode plane.  That way, when the font is
converted to TrueType those glyphs will be correctly positioned.  For a
script with combining characters, all glyphs that can appear with
combining characters must have the same width so that the combining
characters will be properly positioned.

*Step 1:* Convert the .hex range into a bitmap grid.  Assuming our font
file is named 'unifont.hex', type

     unihex2bmp -p2C < unifont.hex > uni2C.bmp

*Step 2:* Modify 'uni2C.bmp' with your favorite graphics editor.  Note
that whatever graphics editor you use should ideally preserve the file
as a black and white bitmap (monochrome), with one bit per pixel.
However, 'unibmp2hex' will convert a 24- or 32-bit RGB (Red, Green, and
Blue) image back into a .hex file.

During editing, you can draw guidelines outside the actual 16x16 font
pixel area; they will be ignored when converting back into .hex format.
You can also erase the grid borders between code points on purpose or by
accident, and it will have no effect on the generated .hex file.  Just
don't erase the code point numbers on the outer edges of the grid.  The
conversion from .bmp back to .hex only looks at the "U+0000" in the
upper left-hand corner of the bitmap graphic and other code point
numbers, and at each code point's 16x16 pixel area inside its 32x32
pixel grid area.  Every other artifact in the final graphics file
outside these areas is ignored.

If a new version of Unicode adds glyphs to a page that were previously
unassigned, be sure to remove the newly-assigned code points from the
corresponding 'unassigned.hex' file because the code point is no longer
unassigned.

*Step 3:* Convert the edited .bmp file back into .hex format:

     unibmp2hex < uni2C.bmp > uni2C.hex

Note that the conversion from a bitmap image to a .hex file cannot
distinguish between a legitimate single- or double-width space character
and a code point that does not have an assigned value.  Therefore, space
glyphs are separately contained in the 'spaces.hex' file.

*Step 4:* Merge the results with the original 'unifont.hex' file.  This
requires several sub-steps:

   * Edit the original 'unifont.hex' file and delete the lines that
     begin with "2C".

   * Insert the 'uni2C.hex' file into 'unifont.hex', either with a text
     editor such as 'emacs' or 'vi', or with a GNU/Linux command such
     as:

          sort uni2C.hex unifont.hex > new-unifont.hex

     This second option (using 'sort') is preferred, because 'unidup'
     (in Step 5) might miss duplicate code points if your final result
     isn't in proper order.

*Step 5:* Make sure there are no duplicates with 'unidup':

     unidup < unifont.hex

or

     unidup < new-unifont.hex

depending on the name of your final font file.  If there is no output,
your modified font contains no duplicates.

This editing is best done on an input .hex file, such as
'unifont-base.hex'.

*Step 6:* Create the new bitmapped version of the font.  In the 'font/'
directory, type

     make hex

*Step 7:* Check the compiled font for duplicates.  Change to the
'font/compiled/' directory and run

     unidup < mynewfontfile.hex

for whatever font file you created.

*Step 8:* If there are duplicates, remove them in the 'font/' directory
and go back to Step 5.

*Step 9:* Create the new TrueType version of the font and all other
bitmapped versions.  From the 'font/' directory, type

     make distclean && make

Then be prepared to wait a long time unless you are using a computer
with plenty of RAM and CPU horsepower.  Your computer should have at
least 256 Megabytes of virtual memory (RAM), and at least 500 Megabytes
of free disk space.

To only create a BDF font, in the 'font/' directory just type

     make bdf

To only create a BDF and PCF font, in the 'font/' directory type

     make pcf

Creating a BDF font is the first step in creating a PCF font (not
counting generating the compiled master ".hex" input file).  BDF fonts
can be created just with the tools in this package.  PCF fonts are
created by running 'bdftopcf' on the BDF font.  TrueType fonts require
FontForge.

The Unifont package also includes two programs for working with Portable
Network Graphics (PNG) files instead of BMP files.  These utilities are
'unihex2png' and 'unipng2hex'.  They work in a similar manner to the
corresponding programs 'unihex2bmp' and 'unibmp2hex', respectively.

To use 'unihex2png' instead of 'unihex2bmp', continuing the example of
the Coptic script in the U+2Cxx range, type:

     unihex2png -p 2C -i unifont.hex -o uni2C.png

Note that with 'unihex2bmp' specifying input and output files is
optional, while with 'unihex2png' at least the PNG filename must be
given explicitly.  More specifically, 'unihex2png' will read a .hex file
format input from STDIN if no "-i" argument is specified, but the name
of the binary PNG file must always be specified with the "-o" option.

Then edit the resulting PNG file to your heart's content.  When done,
convert the file back into a 'unifont.hex' format file.  In this
example, type:

     unipng2hex -i uni2C.png -o uni2C.hex

Similar to 'unihex2png', the binary PNG file must be specified with "-i"
but the .hex format file will be written to STDOUT if the "-o" option is
omitted.

Finally, merge your changes in with your main .hex font file as
described previously in this section.

2.5 Using Hexdraw
=================

Roman Czyborra's original utility to edit glyphs is the 'hexdraw' Perl
script.  Using the same script as in the previous chapter, Coptic, here
are the steps for modifying 'unifont.hex' using 'hexdraw'.

First, realize that Unifont has tens of thousands of glyphs (characters,
using the term character loosely).  In this example, out of the tens of
thousands of glyphs, we want to modify the range U+2C80..U+2CFF (only
128 glyphs).

The range U+2C80..U+2CFF could be extracted from 'unifont.hex' by using
the 'egrep' utility to look for lines beginning with "2C8" through
"2CF", or that range could be isolated by copying 'unifont.hex' into
another file, and deleting all lines except the desired range.

The following steps will probably minimize typographical errors, but
they aren't the only way.

  1. "Grep" the desired block of 256 glyphs (using the 'grep' utility)
     and convert this into a text representation for editing.

  2. Edit the block with a text editor, such as 'emacs' or 'vi'.

  3. Convert the edited text file back into .hex format.

  4. Delete the edited block range from the original font file.

  5. Merge the two .hex files into one file.

  6. Check for duplicates with 'unidup'.

  7. Generate new fonts as described in the "Using Graphical Tools"
     section above.

*Step 1:* Extract the desired block with 'grep':

     grep ``^2C'' unifont.hex | hexdraw > uni2C.txt

*Step 2:* Edit 'uni2C.txt' with a text editor.

*Step 3:* Convert the text file back into .hex format:

     hexdraw < uni2C.txt > uni2C.hex

*Step 4:* Delete the lines in the original 'unifont.hex' file that begin
with "2C".

*Step 5:* Merge the two files:

     sort unifont.hex uni2C.hex > new-unifont.hex

or use Roman's 'hexmerge' utility:

     hexmerge unifont.hex uni2C.hex > new-unifont.hex

*Step 6:* Check for duplicates:

     unidup < new-unifont.hex

Of course, remove any reported duplicates.

*Step 7:* Build the font as in the "Using Graphical Tools" section
above.  This can be as simple as typing

     make

in the 'font/' directory.

I (Paul Hardy) had only used 'hexdraw' in the very beginning of my work
on Unifont.  Once I got my graphics programs working, I ignored it for
months.  Then I wanted to go through all of the Yi Syllables and Yi
Radicals -- over 1000 glyphs -- to fine-tune their horizontal alignment
after I drew them.  'hexdraw' turned out to be the perfect tool for
this.  By printing hyphens ("-") as place holders where a pixel is off,
it allowed me to verify space to the left and right of each character.
I later used 'hexdraw' for similar fine-tuning of spacing on Hangul and
other glyphs.  It is ideal for the task.

2.6 Checking Coverage
=====================

There should never be duplicates in a .hex file.  If there are, remove
them before the .hex font is turned into a BDF or other font file.  The
recommendations above include making liberal use of 'unidup' to avoid
such a situation.

The 'unipagecount' program will print a hexadecimal number of code
points that have coverage within each 256 code point block.  The
hexadecimal number will therefore range from 0 (no coverage) to 100 (=
256 decimal; full coverage).  If a number is ever more than 100
hexadecimal (i.e., 256 decimal), there must be an extra character
(glyph) for that page of 256 code points.

To further look at the coverage within just one 256 code point page
(using page 2C, containing Coptic, as our example) use

     unipagecount -p2C < unifont.hex

Note that the "page number" can use upper- or lower-case letters: '-p2C'
or '-p2c' will both work.  That will print a 16 x 16 grid of
U+2C00..U+2CFF. Of course, without placeholder glyphs for the unassigned
code points from 'unassigned.hex' in the U+2C00..U+2CFF range,
unipagecount can give a lower number than the true coverage.

Using the '-l' flag with 'unipagecount' will produce an HTML table with
links to corresponding graphics images.  You can get an idea of how this
works in the 'font/compiled/' directory after running 'make'; the
'index.html' file in that directory will have a table with links to the
256 glyph maps in the 'font/compiled/bmp/' subdirectory.

With 'unipagecount', the background color of the cells will range from
red (for 0% complete in that 256 code point block) to orange (a little
coverage) to yellow (more coverage) to green (complete coverage).  If a
cell looks light red or pink, the corresponding code page probably has
duplicate characters.  Verify that with

     sort unifont.hex | unidup

(substituting the name of your .hex file for 'unifont.hex').

To see the coverage of each Unicode script, copy the file
'font/coverage.dat' into the same directory as the 'unifont.hex' file
you're examining.  Then run

     unicoverage < unifont.hex > coverage.out

This will give you all the scripts within the Unicode Basic Multilingual
Plane, in order, with a percentage (0.0% through 100.0%) of each
script's coverage.  Note that to get the true coverage of assigned code
points, you will have to merge 'unassigned.hex' with the rest of
'unifont.hex' if not done by default in your setup.

Using the .hex files in 'font/plane00/', you can create a font with all
available glyphs with

     sort font/plane00/*.hex >unifont-whole.hex

and run 'unicoverage' using the resulting 'unifont-whole.hex' file.

2.7 Custom Builds
=================

The font can be built from within the 'font/' directory by simply typing

     make

From the top-level directory (one level above the 'font/' directory),
typing

     make BUILDFONT=1

will also build the font.  The font is not built by default by typing
'make' from the top-level directory, because a pre-built version already
exists in the 'font/precompiled/' directory.  Font files are
architecture-independent, so the only reason to build the font is if you
modify its composition.

By default, source glyphs are read from the 'font/plane00/' directory.
Glyphs for unassigned code points are built into the font by default,
but glyphs for Private Use Area code points are not built into the font.

All of the .hex file names can be replaced selectively on the 'make'
command line to override their default values.  Their locations are
relative to the 'font/' directory.  The list of component hex file
variables is:

     'UNIFONTBASE'The bulk of Unifont scripts
                  
     'CJK'        Most of the CJK Ideographs
                  
     'COPYLEFT'   The Copyleft glyph
                  
     'CUSTOM00'   Hand-drawn quadruple-length Plane 0 glyphs
                  
     'HANGUL'     Hangul Syllables block
                  
     'JISHEX'     Plane 0 and Plane 2 glyphs for a Japanese Unifont version
                  
     'SPACES'     Space glyphs, single- and double-width
                  
     'UNASSIGNED' Glyphs for unassigned code points
                  
     'PUA'        Glyphs for the Private Use Area
                  

So, for example, to build a font that includes four-digit hexadecimal
code point glyphs (as white digits on a black background) for the
Private Use Area, type

     make PUA="plane00/pua.hex"

because those glyphs reside in the 'font/plane00/pua.hex' file.

To build a font that includes your own special PUA glyphs, type

     make PUA="my-cool-PUA.hex"

or whatever the name is of your PUA glyph .hex file.

To create a build that includes the supplied PUA glyphs but not the
unassigned code point glyphs, type

     make PUA="plane00/pua.hex" UNASSIGNED=""

If you create a custom font build of your own in one gigantic file, you
can build with just this file by declaring all the ordinary files to be
null:

     make UNIFONTBASE="mycustomfont.hex" \

     CJK="" HANGUL="" UNASSIGNED="" PUA=""

Note that this command did not include an override for the glyphs for
spaces contained in the 'font/plane00/spaces.hex' file; that is, the
variable SPACES was not redefined on the command line.  You could also
pass the argument SPACES="", but just be aware that those spaces glyphs
are in a separate file for a reason.  When graphical (".bmp") glyph
files are converted back into hex string (".hex") format, the
'unibmp2hex' utility doesn't know if a blank glyph area is a space glyph
or not, so it doesn't encode anything.  The 'font/plane00/spaces.hex'
file contains glyphs that are strings of 0s, with length depending on
whether the space is nominally a single- or double-width space.
(Unifont does not distinguish between finer spacing used in traditional
typesetting, such as a thin space, en space, em space, or quad space;
all spaces are either 8 pixels wide or 16 pixels wide.)

2.8 OpenType
============

Unifont version 14.0.03 introduced the 'hex2otf' program, which allows
direct conversion of a Unifont .hex file into an OpenType font.

'hex2otf' reads a file in Unifont .hex file format and optionally reads
a combining-characters file to handle combining character glyphs.  It
then creates an output font file containing a TrueType or OpenType font.

The combining marks are not needed on glyphs that an operating system's
rasterizer already supports.  However, combining mark support is useful
to support new Unicode additions that do not yet have widespread
support.  Combining mark support is also necessary for Private Use Area
glyphs, because a rasterizer will not know which PUA glyphs are
combining marks, or how to correctly position such marks.

'hex2otf' accepts TrueType and OpenType numeric IDs.  For example, ID 1
designates the font family name.  To create a subset of Unifont with
name "Unifont Subset", type the following command with files in the
appropriate locations:

     hex2otf hex=unifont-base.hex pos=plane00-combining.txt \
         1="Unifont Subset" format=cff,bitmap,gpos out=unifont-subset.otf

For more information on 'hex2otf', see the man page in the Reference
section of this document.

2.9 One Glyph per File
======================

The 'unifont1per' program will read a Unifont ".hex" file from standard
input and create bitmap output files, one file per Unicode code point in
the ".hex" file.  This can be useful if you want to include single
glyphs as graphic objects for illustration in a document or web page.
Output files have names of the form "U+<codepoint>.bmp", where
"<codepoint>" is the Unicode code point of the glyph.

Note that if you feed 'unifont1per' a huge file of glyph hexadecimal
strings, you will get a directory loaded with individual ".bmp" files,
so use your judgment!

2.10 Viewing a Unifont File Interactively
=========================================

The 'unifont-viewer' Perl script uses the 'wxWidgets' Perl library to
present a dynamic graphical representation of a Unifont hex file.  This
is a convenient way to scan quickly through a complete Unifont hex file.
It is ideal for scanning through a Unifont hex source file after you
have made changes.

Use 'unifont-viewer' to open any Unifont hex file, whether in the Basic
Multilingual Plane or up to the maximum Unicode code point of U+10FFFF.
The font is displayed graphically in sections of 16-by-16 glyph grids
(256 glyphs--a "page" in Unifont lingo).  The page numbers (the upper
portion of the hexadecimal code point range) appear in a list along the
left-hand side.  Only page ranges that are present in the Unifont hex
file are listed.

When 'unifont-viewer' loads a hex file, it begins by displaying the
first "page" range in that file.

2.11 Seeing the Big Picture (Literally!)
========================================

The GNU Unifont 6.3 release introduced a new program, 'unifontpic'.
This produces a chart of all the Basic Multilingual Plane glyphs in
Unifont.  By default the chart is arranged as a 256-by-256 glyph table.
Specifying the '-l' option produces a chart that is 16 glyphs wide by
4,096 glyphs long.  See unifontpic(1) for more information.

The "long" version, created with 'unifontpic -l', only produces 16
glyphs per row.  This is more useful for scrolling through on a computer
screen.

GIMP, the GNU Image Manipulation Program, will properly display the
resulting long .bmp file (at least under GNOME), but not all graphics
utilities can.  The output file is over 65,536 pixel rows tall, which
causes problems with some graphics programs.

To generate a chart with all your glyphs in one giant 'unifont.hex'
file, type the command

     unifontpic < unifont.hex > unifont.bmp

The output is a monochrome Bitmap Graphics Format (.bmp) file.  If you
prefer PNG files, use your favorite graphics program or conversion
program to convert the BMP file to a PNG file.

This utility is especially useful if you are customizing the font, for
example if adding your own Private Use Area glyphs.

Single-width and double-width glyphs are reproduced in this bitmap file
at the correct aspect ratios.  Triple-width and quadruple-width glyphs
will be compressed 50% in the horizontal dimension to fit within a
16-by-16 pixel glyph cell.

The default 256-by-256 code point chart will render satisfactorily on a
sheet of paper approximately 3 feet by 3 feet (1 meter by 1 meter) at
120 dots per inch.  Thus the square format is suitable for printing.

2.12 Combining Circles
======================

The earliest versions of Unifont (before the 5.1 release) used glyphs
that showed dashed circles for combining characters.  This is how the
glyphs appear in The Unicode Standard code charts.  In version 5.1, Paul
Hardy was able to get combining characters to appear superimposed
correctly in the TrueType version of the font.  (There are no plans to
try to get combining characters to work in a BDF or PCF version owing to
the limitations of those bitmapped font formats.)

With combining characters working in the TrueType font, Paul Hardy
created variations of Unifont with and without combining circles, the
idea being that the version without combining circles would be used to
create the TrueType font.  The variation with combining circles was kept
for reference.

Unifont Version 6.2 simplified the build to produce only one font
variation, without combining circles.

Unifont Version 6.3 introduced a new utility, 'unigencircles', to
superimpose combining circles over glyphs with code points in a
'combining.txt' file.

The latest Unifont release contains a parallel set of font files named
'unifont_sample.*'.  These "Unifont Sample" font files contain glyphs
with combining circles where appropriate.  The "Unifont Sample" font is
therefore not intended for general-purpose writing, but only for
illustrating each individual glyph as represented in The Unicode
Standard.

To run 'unigencircles', start with the file 'font/ttfsrc/combining.txt'
and type a command of this form:

     unigencircles combining.txt < unifont.hex > unifont-circles.hex

where 'unifont.hex' is a single file containing all the glyphs you wish
to render.

Because the output is another .hex file, you can use all Unifont
utilities with this resulting file just as you would with the .hex files
in 'font/plane00/'.

If you want to build a font from this generated 'unifont.hex' file, you
could type

     make UNIFONTBASE="unifont-circles.hex" CJK="" HANGUL="" \

     UNASSIGNED="" PUA=""

as discussed above.  In this case, if you included
'font/plane00/spaces.hex' in the 'unifont.hex' input file, you should
also set SPACES="" on the command line so that you only read in your
final custom 'unifont-circles.hex' file.

2.13 Installing Fonts on GNU/Linux
==================================

The original standard font format of Unifont was a BDF font.  The newer
PCF font format loads much faster when a program begins, and so is
preferable for installations using the X Window System and similar
environments.

Compress PCF fonts using

     gzip -9 fontname.pcf

Copy the resulting 'fontname.pcf.gz' file to
'/usr/share/fonts/X11/misc/' or place in a local font directory if your
windowing software supports that (for example, '~/.fonts/').

Copy TrueType fonts to '/usr/share/fonts/truetype/' uncompressed or
place in your local font directory.  Note: on some versions of Unix,
such as Solaris, the name of the TrueType directory might be TrueType
and might be under '/usr/share/fonts/X11/' -- examine the system fonts
directories, then modify the font 'make install' rule accordingly.

On most flavors of GNU/Linux with the latest 'xset' utility (including
the latest Debian and Red Hat releases), the following command should
allow you to start using the font immediately:

     xset fp rehash

The safest way to make sure the system knows about the new fonts will be
to restart the X Window System or even reboot.

2.14 Creating a Brand New Font
==============================

The original tools will only produce glyphs that are 16 pixels tall, and
either 8 or 16 pixels wide.  The utilities 'unihex2png', 'unipng2hex',
'hexdraw', and 'hex2bdf' now also support glyph heights of 24 and 32
pixels, and glyph widths of 8, 16, 24, and 32 pixels, but this is not
fully tested.  PNG glyphs that are 32 pixels wide are only supported if
the glyphs are also 32 pixels tall.  These dimensions are available for
experimental use.  See the respective sections for each of these
programs in the Reference chapter of this document, or their respective
man pages.

To create a brand new font (or even to add a new script to Unifont in
the future), plan out the basic dimensions of the characters:

   * How far above the lowest pixel will the baseline appear (in other
     words, how many rows are necessary for descenders such as in the
     glyphs for 'g', 'q', and 'y')?

   * How many pixels must be empty on top and bottom for accents (in
     other words, what will the height of capital letters be)?

   * Must glyphs be centered, left-aligned, or right-aligned?

   * For a Latin font, what will the "x-height" be (the height of a
     lower-case "x" and related letters, such as "n" and "r")?

Consistent capital heights, x-heights, descender depths, and centering
will produce a better looking font.  Look over the entire script and
plan out a template grid that is consistent for the entire script.  Then
use that template for each glyph you draw for the script.

Unifont characters for the most part leave the left-most or right-most
column of pixels blank if possible (consistent within each script) for
left-to-right scripts.  Centering is done around the fourth pixel (if a
glyph is eight pixels wide) or around the eighth pixel (if a glyph is 16
pixels wide).

Experimenting and (above all) having fun with these utilities is the
best way to learn.

2.15 Updates to Unicode
=======================

If a currently unassigned code point is assigned to a character in the
future, the font can be updated as follows:

  1. Delete the code point's entry from the corresponding
     'font/plane00/unassigned.hex' file, as that code point will no
     longer be unassigned.

  2. Determine which existing .hex file should contain the newly defined
     character (examine the files to see which one contains other glyphs
     in the script.  For Plane 0:

        * 'unifont-base.hex' contains most scripts

        * 'wqy.hex' contains most CJK ideographs; its name pays homage
          to the Wen Quan Yi font, the source of almost all of its
          glyphs

        * 'hangul-syllables.hex' contains the Hangul Syllables block
          (U+AC00..U+D7A3); this should never have new code points added
          as it covers the fixed range of the Unicode Hangul Syllables
          block

        * 'spaces.hex' contains the list of single- and double-width
          spaces

     If in doubt (for example, if a new script is added to Unicode and
     you are not sure which .hex file to augment), add the new glyphs to
     'unifont-base.hex' for the Plane 0 range.

  3. Update the appropriate .hex file.

  4. Consider if 'font/coverage.dat' has to be updated.  Follow its
     existing format to insert a new glyph range, being sure to change
     any previously unassigned ranges before or after the newly added
     range.

  5. Make a new .hex version of the font, and verify that you did not
     introduce any duplicates.

  6. Run 'unipagecount' and/or 'unicoverage' as described previously to
     verify that you have not mistakenly deleted any existing
     characters.

Enjoy!

3 Reference
***********

3.1 bdfimplode
==============

3.1.1 bdfimplode NAME
---------------------

bdfimplode - Convert a BDF font into GNU Unifont .hex format

3.1.2 bdfimplode SYNOPSIS
-------------------------

bdfimplode < input-font.bdf > output-font.hex

3.1.3 bdfimplode DESCRIPTION
----------------------------

bdfimplode reads a BDF font from STDOUT and writes GNU Unifont .hex
conversion of the font to STDOUT.

3.1.4 bdfimplode FILES
----------------------

*.bdf font files

3.1.5 bdfimplode SEE ALSO
-------------------------

hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1), hexdraw(1),
hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.1.6 bdfimplode AUTHOR
-----------------------

bdfimplode was written by Roman Czyborra.

3.1.7 bdfimplode LICENSE
------------------------

bdfimplode is Copyright (C) 1998 Roman Czyborra.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.1.8 bdfimplode BUGS
---------------------

bdfimplode was written to read a BDF file created by the hex2bdf script.
It will not properly handle other BDF files with differing bounding
boxes.

3.2 hex2bdf
===========

3.2.1 hex2bdf NAME
------------------

hex2bdf - Convert a GNU Unifont .hex file into a BDF font

3.2.2 hex2bdf SYNOPSIS
----------------------

hex2bdf [options] < input-font.hex > output-font.bdf

3.2.3 hex2bdf DESCRIPTION
-------------------------

hex2bdf reads a sorted GNU Unifont .hex file (sorted with the Unix sort
utility) from STDIN and writes a BDF version of the font to STDOUT.

3.2.4 hex2bdf OPTIONS
---------------------

'-f "font-name"'
     Specify the target font name.  If omitted, the default font name
     "Unifont" is assigned.

'-v "font-version"'
     Specify the target font version.  If omitted, the default version
     "1.0" is assigned.

'-c "font-copyright"'
     Specify the target font copyright information.  The default is the
     null string.

'-r pixel-rows'
     Specify how many pixel rows tall a glyph is.  The default is the
     traditional Unifont 16 rows of pixels.  This is an addition to
     support unihex2png(1) and unipng2hex(1), which allow designing
     glyphs that are 16, 24, or 32 pixel rows tall.

3.2.5 hex2bdf EXAMPLE
---------------------

Sample usage:

     hex2bdf -f "Unifont" -c "(C) 2013..."  unifont.hex > unifont.bdf

3.2.6 hex2bdf FILES
-------------------

*.hex GNU Unifont font files

3.2.7 hex2bdf SEE ALSO
----------------------

bdfimplode(1), hex2otf(1), hex2sfd(1), hexbraille(1), hexdraw(1),
hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.2.8 hex2bdf AUTHOR
--------------------

hex2bdf was written by Roman Czyborra.

3.2.9 hex2bdf LICENSE
---------------------

hex2bdf is Copyright (C) 1998 Roman Czyborra.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.2.10 hex2bdf BUGS
-------------------

No known bugs exist.  Support for glyph heights other than 16 pixels is
brand new and has not been extensively tested.  '\" t

3.3 hex2otf
===========

3.3.1 hex2otf NAME
------------------

hex2otf - Convert a GNU Unifont .hex file to an OpenType font

3.3.2 hex2otf SYNOPSIS
----------------------

hex2otf [--help] [--version]

hex2otf operand ...

3.3.3 hex2otf DESCRIPTION
-------------------------

The hex2otf utility generates an OpenType font from a GNU Unifont .hex
file.

hex2otf reads a file in Unifont .hex file format, as specified with the
hex=filename.hex operand, and creates an OpenType file as specified with
the out=filename.otf operand.  A combining character offset file may
optionally be specified with the pos=combining-file operand.

TrueType and OpenType ID fields are specified with operands of the form
id=string.

A dummy GPOS table can be generated with the gpos option.  The following
subsection describes why this is beneficial.

3.3.3.1 GPOS RATIONALE
......................

A dummy GPOS table is useful for positioning combining characters
consistently.  For example, HarfBuzz will perform fallback mark
positioning on certain conditions, trying to put combining marks closer
to their base characters.  But it does not work well with the blank
outlines generated by this utility, because blank outlines do not have
relevant glyph extent values.  The dummy GPOS table contains no useful
position information, but its presence is enough for HarfBuzz to skip
the fallback positioning.  However, both HarfBuzz and Uniscribe will
still precompose characters before rendering.  For example, "a\\u0301"
is rendered exactly as the glyph of U+00E1 (LATIN SMALL LETTER A WITH
ACUTE), not the composite of two glyphs.

3.3.3.2 OUTPUT FORMAT CONSIDERATIONS
....................................

The font format should be carefully chosen.  In general, using the cff
and gpos operands together will produce good results on GNU/Linux, *nix,
Windows, and macOS systems.  The current status of different formats is
as follows:

     'CFF outline'
          May cause rendering issues in the Windows Command Prompt
          program.

     'CFF 2 outline'
          Not recognized by Windows.

     'TrueType outline'
          On Windows, this appears to be blurred in 16 pixels size due
          to the ClearType anti-alias mechanism; this can be fixed by
          embedding bitmaps.

     'Bitmap-only'
          Contrary to the OpenType specification, a bitmap-only font has
          to be accompanied by blank outlines to be recognized.

3.3.3.3 FUTURE DIRECTIONS
.........................

Some font parameters are hard coded into the source code for
convenience.  Other approaches may be preferable.

The generated fonts may produce incorrect result for vertical layout.
More font parameters might be necessary if such a need arises.

Font size may be reduced by using e.g.  CFF subroutines and TrueType
font programs.

3.3.4 hex2otf OPTIONS
---------------------

'--help'
     Print a brief help message and exit.

'--version'
     Print program version information and exit.

3.3.5 hex2otf OPERANDS
----------------------

'hex=file'
     Specify the input hex file pathname.

'pos=file'
     Optional.  Specify the combining position file pathname.

'out=file'
     Specify the output pathname.

'format=word[,word ...]'
     Specify the font format.  Each word shall be one of the following:

          'cff'
               Generate CFF outlines.

          'cff2'
               Generate CFF 2 outlines.

          'truetype'
               Generate TrueType outlines.

          'blank'
               Generate blank outlines.  Generating a font with only
               blank outlines is not allowed.

          'bitmap'
               Generate embedded bitmap.  Required if no outlines are
               generated.

          'gpos'
               Generate dummy GPOS table.  See the "GPOS RATIONALE"
               section above.

          'gsub'
               Generate generic GSUB table with two entries: "DFLT" and
               "thai".  "DFLT" improves glyph positioning in HarfBuzz,
               especially as relates to glyph reordering.  "thai"
               directs HarfBuzz not to obtain Thai glyphs from the
               Unicode Private Use Area.

'id=text'
     Specify font attributes.  id shall be an decimal integer from 0 to
     255, corresponding to "Name ID" as defined in the OpenType
     specification
     <https://docs.microsoft.com/en-us/typography/opentype/spec/name#name-ids>.
     text shall be value of the attribute in English (United States).
     Characters beyond the ASCII range shall be encoded as UTF-8.
     Currently defined attributes relevant to Unifont are briefly listed
     below.  Refer to the specification for full details.

          'ID'
               Meaning and Notes

          '0'
               Copyright notice.

          '1'
               Font family name.

          '2'
               Font subfamily name.  Should be "Regular".

          '3'
               Unique font identifier.

          '4'
               Full font name.

          '5'
               Version string.  Should begin with "Version
               number.number", where each number is in the range of 0 to
               65535.

          '6'
               PostScript name.  Less than 64 printable ASCII characters
               except those in "[](){}<>/%"

          '7'
               Trademark.

          '8'
               Manufacturer name.

          '9'
               Designer.

          '10'
               Description.

          '11'
               Vendor URL.

          '12'
               Designer URL.

          '13'
               License description, in plain language.

          '14'
               License info URL.

          '18'
               Compatible full name; Macintosh only.

          '19'
               Sample text.

3.3.6 hex2otf FONTFORGE NOTE
----------------------------

Default FontForge package installations can incorrectly ignore the
Unicode plane of glyphs beyond Plane 0 in CID-keyed fonts (such as are
generated with the 'format=cff' option).  This is caused by the presence
of the file 'Adobe-Identity-0.cidmap', which FontForge interprets
incorrectly to determine Unicode code point glyph mappings if present.
This file is located in '/usr/share/fontforge/cidmap' or a similar
directory on GNU/Linux systems.  Removing or renaming
'Adobe-Identity-0.cidmap' will cause FontForge to fall back on OpenType
cmap entries in the font.  FontForge will then correctly display all
Unicode code points.

3.3.7 hex2otf EXAMPLE
---------------------

Sample usage:

     'hex2otf hex=unifont.hex pos=combining.txt \'

     'format=cff,gpos,gsub out=unifont.otf'

3.3.8 hex2otf EXIT STATUS
-------------------------

Status values are defined in <stdlib.h>.  The program exits with status
EXIT_SUCCESS upon successful font generation, or EXIT_FAILURE if an
error occurred.  If an error condition is encountered, hex2otf writes a
brief diagnostic message to STDERR; in this event, the state of the
output font file will be undefined.

3.3.9 hex2otf SEE ALSO
----------------------

unifont(5), hex2bdf(1)

3.3.10 hex2otf AUTHOR
---------------------

hex2otf was written by [He Zhixiang](He Zhixiang).

3.3.11 hex2otf LICENSE
----------------------

hex2otf is Copyright (C) 2022 [He Zhixiang](He Zhixiang).

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.4 hex2sfd
===========

3.4.1 hex2sfd NAME
------------------

hex2sfd - Convert a GNU Unifont .hex file into a FontForge .sfd format

3.4.2 hex2sfd SYNOPSIS
----------------------

hex2sfd < input-font.hex > output-font.sfd

3.4.3 hex2sfd DESCRIPTION
-------------------------

hex2sfd reads a GNU Unifont .hex file from STDIN and writes an outline
font representation in FontForge Spline Font Database (.sfd) format.
The resulting .sfd file can then be converted by FontForge into a
TrueType .ttf font.

3.4.4 hex2sfd FILES
-------------------

GNU Unifont .hex font files for input, FontForge .sfd font files for
output

3.4.5 hex2sfd SEE ALSO
----------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hexbraille(1), hexdraw(1),
hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigencircles(1), unigen-hangul(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.4.6 hex2sfd AUTHOR
--------------------

hex2sfd was written by Luis Alejandro González Miranda in 2005, with
modifications by Paul Hardy in 2008.

3.4.7 hex2sfd LICENSE
---------------------

hex2sfd is Copyright (C) 2005 Luis Alejandro González Miranda, (C) 2008
Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.4.8 hex2sfd BUGS
------------------

No known bugs exist.

3.5 hexbraille
==============

3.5.1 hexbraille NAME
---------------------

hexbraille - Algorithmically generate the Unicode Braille range (U+28xx)

3.5.2 hexbraille SYNOPSIS
-------------------------

hexbraille > output-font.hex

3.5.3 hexbraille DESCRIPTION
----------------------------

hexbraille generates a GNU Unifont .hex format file (written on stdout)
containing the Braille dot patterns in the Unicode range U+2800..U+28FF.

3.5.4 hexbraille FILES
----------------------

braille.hex output font files

3.5.5 hexbraille SEE ALSO
-------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexdraw(1),
hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.5.6 hexbraille AUTHOR
-----------------------

hexbraille was written by Roman Czyborra, who named this script
"braille.pl".  In 2003, Roman incorporated a bug fix from Dominique at
unruh.de.

3.5.7 hexbraille LICENSE
------------------------

hexbraille is Copyright (C) 1998 Roman Czyborra.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.5.8 hexbraille BUGS
---------------------

No known bugs exist.

3.6 hexdraw
===========

3.6.1 hexdraw NAME
------------------

hexdraw - Convert a GNU Unifont .hex file to and from an ASCII text file

3.6.2 hexdraw SYNOPSIS
----------------------

hexdraw [--height height] < input-font.hex > output-font.txt
hexdraw [--height height] < input-font.txt > output-font.hex

3.6.3 hexdraw DESCRIPTION
-------------------------

hexdraw reads a sorted GNU Unifont .hex file from STDIN and writes a two
dimensional ASCII art rendering for each glyph to STDOUT. The output
file can be edited with any text editor, then converted back into a .hex
file.  Unifont ASCII hexadecimal glyphs are 16 pixels high and can be 8,
16, 24, or 32 pixels wide.

3.6.4 hexdraw OPTIONS
---------------------

     '--height'
          By default, hexdraw expects glyphs to be 16 rows high.
          Alternatively, a different height of 24, 32, or 64 can be
          specified, for glyphs that are up to 128 columns wide by 64
          rows high.

3.6.5 hexdraw FILES
-------------------

*.hex GNU Unifont font files

3.6.6 hexdraw SEE ALSO
----------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-johab631(5), unifont-viewer(1), unifont1per(1),
unifontchojung(1), unifontksx(1), unifontpic(1), unigen-hangul(1),
unigencircles(1), unigenwidth(1), unihex2bmp(1), unihex2png(1),
unihexfill(1), unihexgen(1), unihexpose(1), unihexrotate(1),
unijohab2html(1), unipagecount(1), unipng2hex(1)

3.6.7 hexdraw AUTHOR
--------------------

hexdraw was written by Roman Czyborra.

3.6.8 hexdraw LICENSE
---------------------

hexdraw is Copyright (C) 1998 Roman Czyborra.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.6.9 hexdraw BUGS
------------------

No known bugs exist.

3.7 hexkinya
============

3.7.1 hexkinya NAME
-------------------

hexkinya - Create the Private Use Area Kinya syllables

3.7.2 hexkinya SYNOPSIS
-----------------------

hexkinya > plane15.hex

3.7.3 hexkinya DESCRIPTION
--------------------------

hexkinya contains pre-defined initial, middle, and final Kinya alphabet
glyphs to form syllables.  The output is the Kinya Syllables Private Use
Area block of the ConScript Unicode Registry (CSUR). The output range is
U+0F0000 through U+0FDE6F, inclusive.

Note that Plane 15 also contains Pikto glyphs, which follow after Kinya.

3.7.4 hexkinya FILES
--------------------

None.

3.7.5 hexkinya SEE ALSO
-----------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.7.6 hexkinya AUTHOR
---------------------

hexkinya was written by Andrew Miller.

3.7.7 hexkinya LICENSE
----------------------

hexkinya is Copyright (C) 2014 by Andrew Miller.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.7.8 hexkinya BUGS
-------------------

No known bugs exist.

3.8 hexmerge
============

3.8.1 hexmerge NAME
-------------------

hexmerge - Merge two or more GNU Unifont .hex font files into one

3.8.2 hexmerge SYNOPSIS
-----------------------

hexmerge input-font1.hex input-font2.hex > output-font.hex

3.8.3 hexmerge DESCRIPTION
--------------------------

hexmerge reads two or more GNU Unifont .hex files, sorts them, and
writes the combined font to stdout.

3.8.4 hexmerge FILES
--------------------

*.hex GNU Unifont font files

3.8.5 hexmerge SEE ALSO
-----------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexkinya(1), hexdraw(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.8.6 hexmerge AUTHOR
---------------------

hexmerge was written by Roman Czyborra.

3.8.7 hexmerge LICENSE
----------------------

hexmerge is Copyright (C) 1998 Roman Czyborra.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.8.8 hexmerge BUGS
-------------------

No known bugs exist.

3.9 johab2syllables
===================

3.9.1 johab2syllables NAME
--------------------------

johab2syllables - Convert Unifont Johab 6/3/1 file to Hangul Syllables

3.9.2 johab2syllables SYNOPSIS
------------------------------

johab2syllables -i hangul-base.hex -o hangul-syllables.hex

3.9.3 johab2syllables DESCRIPTION
---------------------------------

johab2syllables generates the modern Hangul Syllables Unicode range,
U+AC00..U+D7A3, from an input Unifont .hex file encoded in Johab 6/3/1
format.  This program demonstrates how to use functions in the
unihangul-support.c file to map a Hangul Syllables code point to the
choseong, jungseong, and jongseong Hangul Jamo that comprise each
syllable.

This program is specifically designed to generate the Unicode Hangul
Syllables range only, and does not shift final consonants (jongseong) if
the vowel contains two long vertical strokes.  For a more general
program that uses the entire Hangul Jamo modern, ancient, and extended
ancient ranges of U+1100..U+11FF, U+A960..U+A97F, and U+D7B0..D7FF, and
which does shift jongseong right one column for vowels with two long
vertical strokes on the right, see unigen-hangul(1).  That program is
used to generate the distributed Unifont Hangul Syllables range.

     Hangul

     '1100-1112'
          Modern initial consonants (choseong)

     '1161-1175'
          Modern medial vowels and diphthongs (jungseong)

     '11A8-11C2'
          Modern final consonants (jongseong).

3.9.4 johab2syllables OPTIONS
-----------------------------

     Function

     '-h, --help'
          Print a help message and exit.

     '-i input_file'
          Unifont hangul-base.hex formatted input file.

     '-o output_file'
          Unifont .hex format output file.

3.9.5 johab2syllables EXAMPLES
------------------------------

     johab2syllables -i hangul-base.hex -o hangul-syllables.hex

     johab2syllables < hangul-base.hex > hangul-syllables.hex

3.9.6 johab2syllables FILES
---------------------------

Unifont .hex files in Johab 6/3/1 encoding.  See unifont-johab631(5) for
a description of the input file structure.  This program uses functions
contained in the file unihangul-support.c.

3.9.7 johab2syllables SEE ALSO
------------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2ucs2(1), unibdf2hex(1),
unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1), unifont(5),
unifont-johab631(5), unifont-viewer(1), unifont1per(1),
unifontchojung(1), unifontksx(1), unifontpic(1), unigen-hangul(1),
unigen-hangul(1), unigencircles(1), unigenwidth(1), unihex2bmp(1),
unihex2png(1), unihexfill(1), unihexgen(1), unihexpose(1),
unihexrotate(1), unijohab2html(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.9.8 johab2syllables AUTHOR
----------------------------

johab2syllables was written by Paul Hardy.

3.9.9 johab2syllables LICENSE
-----------------------------

johab2syllables is Copyright (C) 2023 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.9.10 johab2syllables BUGS
---------------------------

No known bugs exist.

3.10 johab2ucs2
===============

3.10.1 johab2ucs2 NAME
----------------------

johab2ucs2 - Convert a Johab BDF font into GNU Unifont Hangul Syllables

3.10.2 johab2ucs2 SYNOPSIS
--------------------------

johab2ucs2 < input-font.bdf > output-font.hex

3.10.3 johab2ucs2 DESCRIPTION
-----------------------------

johab2ucs2 reads a Johab encoded BDF font (as used in Hanterm) from
STDIN and writes a GNU Unifont .hex file containing the Unicode Hangul
Syllables to STDOUT.

3.10.4 johab2ucs2 FILES
-----------------------

*.bdf font files

3.10.5 johab2ucs2 SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), unibdf2hex(1),
unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1), unifont(5),
unifont-viewer(1), unifont1per(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.10.6 johab2ucs2 AUTHOR
------------------------

johab2ucs2 was written in 1998 by Jungshik Shin and given to Roman
Czyborra.  Paul Hardy made some modifications and bug fixes in 2008.

3.10.7 johab2ucs2 LICENSE
-------------------------

johab2ucs2 is Copyright (C) 1998 Jungshik Shin and Roman Czyborra, (C)
2008 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.10.8 johab2ucs2 BUGS
----------------------

No known bugs exist.

3.11 unibdf2hex
===============

3.11.1 unibdf2hex NAME
----------------------

unibdf2hex - Convert BDF font glyphs into Unifont .hex glyphs

3.11.2 unibdf2hex SYNOPSIS
--------------------------

unibdf2hex < input-font.bdf > output-font.hex

3.11.3 unibdf2hex DESCRIPTION
-----------------------------

unibdf2hex reads a BDF font file, extracting selected code points and
printing them on stdout in Unifont .hex format.  This program was used
to extract CJK ideographs from the 16x16 version of Wen Quan Yi's BDF
font.  Currently the program is hard-coded to only extract those code
points that comprise the "wqy.hex" source font file used to build
"unifont.hex" but this source code could easily be modified.

3.11.4 unibdf2hex FILES
-----------------------

*.hex GNU Unifont font files

3.11.5 unibdf2hex SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1), unifont(5),
unifont-viewer(1), unifont1per(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.11.6 unibdf2hex AUTHOR
------------------------

unibdf2hex was written by Paul Hardy.

3.11.7 unibdf2hex LICENSE
-------------------------

unibdf2hex is Copyright (C) 2008 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.11.8 unibdf2hex BUGS
----------------------

No known bugs exist.

3.12 unibmp2hex
===============

3.12.1 unibmp2hex NAME
----------------------

unibmp2hex - Bitmap graphics file to GNU Unifont .hex file converter

3.12.2 unibmp2hex SYNOPSIS
--------------------------

unibmp2hex [-phexpage] [-iinput_file.bmp] [-ooutput_file.hex] [-w]

3.12.3 unibmp2hex DESCRIPTION
-----------------------------

unibmp2hex reads a bitmap produced by unihex2bmp before or after
editing, and converts it back into a Unifont .hex format file.  The
graphics file contains a block of 256 Unicode code points arranged in a
16 by 16 grid.  Each code point appears in a 32 by 32 pixel grid.
Characters are 16 rows high, and 8, 16, or 31 (treated as 32) columns
wide.

3.12.4 unibmp2hex OPTIONS
-------------------------

'-p'
     Specify that the code points will be assigned to the 256 block
     space pagenum in the .hex file.  If not specified, unibmp2hex will
     determine the appropriate block by reading the row and column
     headers.  Note that "page" is not a standard Unicode term.  It
     refers to an output bitmap graphics page of 16 by 16 code points.
     If pagenum is greater than FF, the block resides above the Unicode
     Basic Multilingual Plane.  In that event, the .hex file will
     contain eight digit hexadecimal code points rather than the Unifont
     standard of four hexadecimal code points.

'-i'
     Specify the input file.  The default is STDIN.

'-o'
     Specify the output file.  The default is STDOUT.

'-w'
     Force all output .hex glyphs to be 16 pixels wide rather than dual
     width (8 or 16 pixels).

3.12.5 unibmp2hex EXAMPLE
-------------------------

Sample usage:

     unibmp2hex -imy_input_file.bmp -omy_output_file.hex

3.12.6 unibmp2hex FILES
-----------------------

*.bmp or *.wbmp graphics files

3.12.7 unibmp2hex SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmpbump(1), unicoverage(1), unidup(1), unifont(5),
unifont-viewer(1), unifont1per(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.12.8 unibmp2hex AUTHOR
------------------------

unibmp2hex was written by Paul Hardy.

3.12.9 unibmp2hex LICENSE
-------------------------

unibmp2hex is Copyright (C) 2007, 2008 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.12.10 unibmp2hex BUGS
-----------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input files.  If they're not in the
format of the original bitmapped output from unihex2bmp, all bets are
off.

If the output file is for a "page" containing space code points and the
bitmap file squares for those code points are not empty, unibmp2hex
preserves the graphics as they are drawn.

3.13 unibmpbump
===============

3.13.1 unibmpbump NAME
----------------------

unibmpbump - adjust a .bmp image for unibmp2hex processing

3.13.2 unibmpbump SYNOPSIS
--------------------------

unibmpbump [-iinput-file.bmp] [-ooutput-file.bmp] [-v|--verbose]
[-V|--version]

3.13.3 unibmpbump DESCRIPTION
-----------------------------

unibmpbump reads a Microsoft Bitmap Graphics (".bmp") graphics image
file and, if it appears to be in a known format, converts it for
processing by unibmp2hex(1).

unibmpbump supports the following Device Independent Bitmap (DIB) header
byte lengths for input image files:

     '12'
          The BITMAPCOREHEADER format.  This was the original Microsoft
          Windows header format.  It has not been encoutered, and was
          added only as a subset of the formats that appear below.

     '40'
          The BITMAPINFOHEADER format.  This is the format that most
          graphics creation programs support, and is the header format
          that unibmp2hex expects.

     '108'
          The BITMAPV4HEADER format.  This is the format that the Image
          Magick convert program creates when converting a PNG image to
          a BMP image using the "-monochrome" option.

     '124'
          The BITMAPV5HEADER format.  This is the format that the Image
          Magick convert program creates when converting a PNG image to
          a BMP image without the "-monochrome" option; convert will
          encode the image as a "grayscale" image, but with only two
          colors: black and white.

unibmpbump is able to read files created by unihex2png that were
subsequently saved as BMP files, for example by the convert(1) program,
which is part of the Image Magick package.  Images created by
unihex2png(1) are 544 rows high by 560 columns wide.  Images created by
unihex2bmp(1) are 544 rows high by 576 columns wide.  Thus, if the input
Bitmap Graphics file is 544 by 560 pixels, unibmpbump assumes that the
file was originally a Portable Network Graphics (".png") file created by
unihex2png and realigns the glyphs so they are positioned as unibmp2hex
expects.

3.13.4 unibmpbump OPTIONS
-------------------------

'-i'
     Specify an input Bitmaps Graphics (".bmp") file.  If no input file
     is specified, input is taken from stdin.  The input file must be
     either 544 rows by 560 columns (for a file created by unihex2png
     originally) or 544 rows by 576 columns (for a file created by
     unihex2bmp originally).

'-o'
     Specify an output Bitmaps Graphics (".bmp") file.  If no output
     file is specified, output is sent to stdout.  The output file will
     be 544 rows high by 576 columns wide with a 40 byte Device
     Independent Bitmap (DIB) header, which is the format that
     unibmp2hex expects.

'-v, --verbose'
     Verbose output.  Print information about the input file on stderr.

'-V, --version'
     Print the version of unibmpbump and exit.

3.13.5 unibmpbump FILES
-----------------------

Bitmap Graphics (".bmp") input and output files.

3.13.6 unibmpbump SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unicoverage(1), unidup(1), unifont(5),
unifont-viewer(1), unifont1per(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.13.7 unibmpbump AUTHOR
------------------------

unibmpbump was written by Paul Hardy.

3.13.8 unibmpbump LICENSE
-------------------------

unibmpbump is Copyright (C) 2019 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.13.9 unibmpbump BUGS
----------------------

No known bugs exist.

3.14 unicoverage
================

3.14.1 unicoverage NAME
-----------------------

unicoverage - Print coverage of each Unicode Script

3.14.2 unicoverage SYNOPSIS
---------------------------

unicoverage [-iinput-file] [-ooutput-file] [-n]

3.14.3 unicoverage DESCRIPTION
------------------------------

unicoverage reads a GNU Unifont .hex font and uses data in coverage.dat
(which must reside in the current directory).  The output is the percent
coverage of each script listed in the coverage.dat file.  The Unicode
code points in the input .hex file must be in ascending order.

3.14.4 unicoverage OPTIONS
--------------------------

'-i'
     Specify the input file.  The default is STDIN.

'-n'
     Print the number of glyphs in each range instead of a percentage
     count.

'-o'
     Specify the output file.  The default is STDOUT.

3.14.5 unicoverage EXAMPLE
--------------------------

Sample usage:

     unicoverage < unifont.hex >coverage.txt

3.14.6 unicoverage FILES
------------------------

coverage.dat, *.hex GNU Unifont files.

3.14.7 unicoverage SEE ALSO
---------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unidup(1), unifont(5),
unifont-viewer(1), unifont1per(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.14.8 unicoverage AUTHOR
-------------------------

unicoverage was written by Paul Hardy.

3.14.9 unicoverage LICENSE
--------------------------

unicoverage is Copyright (C) 2007, 2008 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.14.10 unicoverage BUGS
------------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input files.

3.15 unidup
===========

3.15.1 unidup NAME
------------------

unidup - Scan through a sorted .hex file and report duplicate code
points

3.15.2 unidup SYNOPSIS
----------------------

unidup [input-font.hex]

3.15.3 unidup DESCRIPTION
-------------------------

unidup reads a sorted GNU Unifont .hex file (sorted with the Unix sort
utility) and prints notification of any duplicate code points on stdout.
The input file can be specified on the command line.  If no file is
specified, input will be read from STDIN until end of file.

3.15.4 unidup FILES
-------------------

*.hex GNU Unifont font files

3.15.5 unidup SEE ALSO
----------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unifont(5),
unifont-viewer(1), unifont1per(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.15.6 unidup AUTHOR
--------------------

unidup was written by Paul Hardy.

3.15.7 unidup LICENSE
---------------------

unidup is Copyright (C) 2007, 2013 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.15.8 unidup BUGS
------------------

No known bugs exist.

3.16 unifont-viewer
===================

3.16.1 unifont-viewer NAME
--------------------------

unifont-viewer - View a .hex font file with a graphical user interface

3.16.2 unifont-viewer SYNOPSIS
------------------------------

unifont-viewer &

3.16.3 unifont-viewer DESCRIPTION
---------------------------------

unifont-viewer reads a GNU Unifont .hex file and displays glyphs in
blocks of 16 by 16, 256 glyphs per screen with a graphical user
interface.  The .hex file is selected by opening it with the File > Open
menu item or by typing Control-O. After loading a file, a list of
"pages" of 256 glyphs will appear in the left-hand column of the window.
The first such page of glyphs in the file will appear in the main
window.

unifont-viewer supports glyph heights of 16, 24, and 32 pixels.  The
height of a .hex font file is selected under the File menu.  The default
selection is Glyph Height 16.

Exit unifont-viewer by selecting File > Exit or by typing Control-X.

3.16.4 unifont-viewer FILES
---------------------------

*.hex GNU Unifont font files

3.16.5 unifont-viewer SEE ALSO
------------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont1per(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.16.6 unifont-viewer AUTHOR
----------------------------

unifont-viewer was written by Andrew Miller.

3.16.7 unifont-viewer LICENSE
-----------------------------

unifont-viewer is Copyright (C) 2014 Andrew Miller.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.16.8 unifont-viewer BUGS
--------------------------

No known bugs exist.

3.17 unifont1per
================

3.17.1 unifont1per NAME
-----------------------

unifont1per - Create BMP glyph files from GNU Unifont .hex file

3.17.2 unifont1per SYNOPSIS
---------------------------

unifont1per < input_file.hex

3.17.3 unifont1per DESCRIPTION
------------------------------

unifont1per reads a GNU Unifont .hex file and for each code point in the
file, creates an output Bitmapped Graphics (".bmp") file in the current
directory.  The filename for each output file is "U+codepoint.bmp",
where codepoint is the Unicode codepoint for the glyph.

Each glyph entry in a Unifont .hex file is expected to be 16 rows tall,
and can be 8, 16, 24, or 32 pixels wide.  The glyph sizes in output
files are determined on a glyph-by-glyph basis.

This program can be of use in extracting individual glyphs to display in
a document or on a web page.

WARNING! This program generates one output file per code point that
appears in the input stream.  If you feed this program a file with 1000
code points, it will generate 1000 files in your current directory.

3.17.4 unifont1per OPTIONS
--------------------------

None.

3.17.5 unifont1per FILES
------------------------

*.hex GNU Unifont font files, read from standard input

3.17.6 unifont1per SEE ALSO
---------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifontchojung(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.17.7 unifont1per AUTHOR
-------------------------

unifont1per was written by Paul Hardy.

3.17.8 unifont1per LICENSE
--------------------------

unifont1per is Copyright (C) 2017 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.17.9 unifont1per BUGS
-----------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input files.  If they're not in the
format of the original GNU Unifont .hex file, all bets are off.  Lines
can be terminated either with line feed, or carriage return plus line
feed.

3.18 unifontchojung
===================

3.18.1 unifontchojung NAME
--------------------------

unifontchojung - Extract Hangul syllables that have no final consonant

3.18.2 unifontchojung SYNOPSIS
------------------------------

unifontchojung < input-font.hex > output-font.hex

3.18.3 unifontchojung DESCRIPTION
---------------------------------

unifontchojung reads a Unifont-format .hex font file from STDIN and
writes a Unifont .hex file containing a subset to STDOUT. The subset
that is output only contains syllables that contain an initial consonant
(chojung) plus middle vowel (jungseong), with no final consonant
(jongseong).  This lets a font designer focus on this subset during font
creation.

3.18.4 unifontchojung FILES
---------------------------

*.bdf font files

3.18.5 unifontchojung SEE ALSO
------------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontksx(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.18.6 unifontchojung AUTHOR
----------------------------

unifontchojung was written by Paul Hardy.

3.18.7 unifontchojung LICENSE
-----------------------------

unifontchojung is Copyright (C) 2012 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.18.8 unifontchojung BUGS
--------------------------

No known bugs exist.

3.19 unifontksx
===============

3.19.1 unifontksx NAME
----------------------

unifontksx - Extract Hangul syllables that comprise KS X 1001:1992

3.19.2 unifontksx SYNOPSIS
--------------------------

unifontksx < input-font.hex > output-font.hex

3.19.3 unifontksx DESCRIPTION
-----------------------------

unifontksx reads a Unifont-format .hex font file from STDIN and writes a
Unifont .hex file containing a subset to STDOUT. The subset that is
output only contains the 2,350 syllables that comprise Korean Standard
KS X 1001:1992.  These are extracted from the Unicode Hangul Syllables
block, U+AC00..U+D7A3.  This lets a font designer focus on those
syllables that are most common in modern Hangul usage during font
development.

3.19.4 unifontksx FILES
-----------------------

*.bdf font files

3.19.5 unifontksx SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.19.6 unifontksx AUTHOR
------------------------

unifontksx was written by Paul Hardy.

3.19.7 unifontksx LICENSE
-------------------------

unifontksx is Copyright (C) 2012 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.19.8 unifontksx BUGS
----------------------

No known bugs exist.

3.20 unifontpic
===============

3.20.1 unifontpic NAME
----------------------

unifontpic - Convert GNU Unifont .hex input to a bitmap image of the
whole font

3.20.2 unifontpic SYNOPSIS
--------------------------

unifontpic [-dnnn] [-l] [-t] [-Pplane] < input-font.hex >
output-font.bmp

3.20.3 unifontpic DESCRIPTION
-----------------------------

unifontpic reads a GNU Unifont .hex file from STDIN and writes a two
dimensional rendering for each glyph to STDOUT. The output displays an
entire Unicode plane of 65,536 glyphs as one large graphic image,
showing a grid of 256 glyphs by 256 glyphs as the default, or (at your
option) a long version of 16 glyphs across by 4,096 glyphs down.

Input can be one or more files in Unifont .hex format.  They don't have
to be sorted, as unifontpic will populate the entire glyph array of
65,536 code points before writing its output.  The input glyph code
points should all be unique, as feeding in duplicate code points will
produce unpredictable results.  Use unidup (1) on a sorted input of .hex
files to guarantee no code point duplication.

3.20.4 unifontpic OPTIONS
-------------------------

'-d'
     Specify a Dots per Inch (DPI) resolution of nnn.  For example,
     specifying -d120 will encode the bitmap graphics file output as
     having a resolution of 120 DPI.

'-l'
     Produce a long chart, 16 glyphs wide by 4,096 glyphs tall.  The
     default is a wide chart, 256 glyphs wide by 256 glyphs tall.

'-t'
     Use tiny numbers for the row and column code point labels.  Tiny
     numbers are on a 4 by 5 pixel grid.  Only tiny code point labels
     appear on the long chart variant; this option only has effect for
     wide charts (the default, of 256 by 256 glyphs).  If this option is
     not specified for the default 256-by-256 grid, row and column code
     point labels are taken from Unifont's glyphs for '0' to '9' and 'A'
     to 'F'.

'-P'
     Print a chart for Unicode plane number plane.  The default is
     Plane 0, the Unicode Basic Multilingual Plane (BMP). The range of
     Unicode plane range is 0 through 17, inclusive.  The plane number
     is printed on the chart title line.

3.20.5 unifontpic EXAMPLES
--------------------------

Sample usage:

     cat *.hex | unifontpic -d120 > unifontpic.bmp

To generate a bitmap that shows combining circles, from the font/
subdirectory:

     sort plane00/*.hex | unigencircles ttfsrc/combining.txt |
     unifontpic -d120 >unifontpic.bmp

3.20.6 unifontpic FILES
-----------------------

*.hex GNU Unifont font files

3.20.7 unifontpic SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unigen-hangul(1), unigencircles(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.20.8 unifontpic AUTHOR
------------------------

unifontpic was written by Paul Hardy.

3.20.9 unifontpic LICENSE
-------------------------

unifontpic is Copyright (C) 2013 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.20.10 unifontpic BUGS
-----------------------

No known bugs exist.

3.21 unigen-hangul
==================

3.21.1 unigen-hangul NAME
-------------------------

unigen-hangul - Generate Hangul syllables from a Johab 6/3/1 Unifont hex
file

3.21.2 unigen-hangul SYNOPSIS
-----------------------------

unigen-hangul -i hangul-base.hex -o hangul-syllables.hex

3.21.3 unigen-hangul DESCRIPTION
--------------------------------

unigen-hangul generates Hangul syllables from an input Unifont .hex file
encoded in Johab 6/3/1 format.  By default, the output is the Unicode
Hangul Syllables range, U+AC00..U+D7A3.  Options allow the user to
specify a starting code point for the output Unifont .hex file, and
ranges in hexadecimal of the starting and ending Hangul Jamo code
points:

     Hangul

     '1100-115E'
          Hangul Jamo initial consonants (choseong)

     'A960-A97C'
          Hangul Jamo Extended-A initial consonants (choseong)

     '1161-11A7'
          Hangul Jamo medial vowels and diphthongs (jungseong)

     'D7B0-D7C6'
          Hangul Jamo Extended-B medial vowels and diphthongs
          (jungseong)

     '11A8-11FF'
          Hangul Jamo final consonants (jongseong).

     'D7CB-D7FB'
          Hangul Jamo Extended-B final consonants (jongseong).

A single code point or 0 to omit can be specified instead of a range.  A
starting code point of one position before a valid starting range for a
Hangul jamo series (choseong, jungseong, and/or jongseong) will first
use a blank glyph for that jamo, and then cycle through remaining valid
code points for the respective choseong, jungseong, or jongseong.  A
range can span modern and ancient, and even Hangul Jamo Extended-A and
Hangul Jamo Extended-B ranges.

For example,

     '-j3 11A7-D7FB'

Will first use no jongseong (because U+11A7 is one before the start of
Hangul Jamo jongseong code points), then loop through jongseong in the
Hangul Jamo range of U+11A8 through U+11FF, and then loop through
jongseong in the Hangul Jamo Extended-B range of U+D7CB through U+D7FB.

3.21.4 unigen-hangul OPTIONS
----------------------------

     Function

     '-h, --help'
          Print a help message and exit.

     '-all'
          Generate all Hangul syllables, using all modern and ancient
          Hangul in the Unicode range U+1100..U+11FF, assigned code
          points in the Extended-A range of U+A960..U+A97C, and assigned
          code points in the Extended-B range of U+D7B0..U+D7FF.
          WARNING: this will generate over 1,600,000 syllables in a 115
          megabyte Unifont .hex format file.  The default is to only
          output the 11,172 modern Hangul syllables.

     '-c code_point'
          Starting code point in hexadecimal for output file.

     '-j1 start-end'
          Choseong (jamo 1) start-end range in hexadecimal.

     '-j2 start-end'
          Jungseong (jamo 2) start-end range in hexadecimal.

     '-j3 start-end'
          Jongseong (jamo 3) start-end range in hexadecimal.

     '-i input_file'
          Unifont hangul-base.hex formatted input file.

     '-o output_file'
          Unifont .hex format output file.

3.21.5 unigen-hangul EXAMPLES
-----------------------------

     unigen-hangul -c 1 -j3 11AB-11AB \

     -i hangul-base.hex -o nieun-only.hex

This command generates Hangul syllables using all modern choseong and
jungseong, and only the jongseong nieun (Unicode code point U+11AB). The
output Unifont .hex file will contain code points starting at 1.
Instead of specifying "-j3 11AB-11AB", simply using "-j3 11AB" will also
suffice.

This next example is a series of syllable sets suggested by Ho-Seok Ee
for preliminary syllable alignment checking of modern Hangul.

     '*'
          The first command generates all modern syllables containing no
          jongseong (final consonant), starting at Unifont hexadecimal
          glyph location 0x1000; selecting a jongseong value that is out
          of range (U+1160 in this case) will use a blank filler in
          place of the jongseong.

     '*'
          The second command generates all modern syllables containing
          jongseong Kiyeok (U+11AB), which has a horizontal line
          extending across the lower portion of a syllable, starting at
          Unifont hexadecimal glyph location 0x2000.

     '*'
          The third command generates all modern Hangul syllables
          containing jongseong Rieul (U+11AF), starting at Unifont
          hexadecimal glyph location 0x3000.

     '*'
          The fourth command generates all modern Hangul syllables
          containing choseong (initial consonant) Rieul (U+1105),
          starting at Unifont hexadecimal glyph location 0x4000.

Here is the command sequence:

     unigen-hangul -c 1000 -j1 1100-1112 -j2 1161-1175 -j3 1160 \

     -i hangul-base.hex > hangul-prep.hex

     unigen-hangul -c 2000 -j1 1100-1112 -j2 1161-1175 -j3 11AB \

     -i hangul-base.hex >> hangul-prep.hex

     unigen-hangul -c 3000 -j1 1100-1112 -j2 1161-1175 -j3 11AF \

     -i hangul-base.hex >> hangul-prep.hex

     unigen-hangul -c 4000 -j1 1105 -j2 1161-1175 -j3 11A8-11C2 \

     -i hangul-base.hex >> hangul-prep.hex

The resulting .hex file can then be examined with hexdraw, unihex2bmp,
etc.

3.21.6 unigen-hangul FILES
--------------------------

Unifont .hex files in Johab 6/3/1 encoding.  See unifont-johab631(5) for
a description of the input file structure.  This program uses functions
contained in the file unihangul-support.c.

3.21.7 unigen-hangul SEE ALSO
-----------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-johab631(5), unifont-viewer(1), unifont1per(1),
unifontchojung(1), unifontksx(1), unifontpic(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.21.8 unigen-hangul AUTHOR
---------------------------

unigen-hangul was written by Paul Hardy.

3.21.9 unigen-hangul LICENSE
----------------------------

unigen-hangul is Copyright (C) 2023 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.21.10 unigen-hangul BUGS
--------------------------

No known bugs exist.

3.22 unigencircles
==================

3.22.1 unigencircles NAME
-------------------------

unigencircles - Add dashed combining circles to a unifont.hex file

3.22.2 unigencircles SYNOPSIS
-----------------------------

unigencircles combining.txt nonprinting.hex < unifont.hex >
unifont-circles.hex

3.22.3 unigencircles DESCRIPTION
--------------------------------

unigencircles reads a unifont.hex file from STDIN, adds dashed combining
circles to the hex strings for code points listed in "combining.txt" but
not listed in "nonprinting.hex", and writes the revised set of glyphs in
unifont.hex format to STDOUT. The resulting combining character glyphs
show the dashed combining circles that appear in The Unicode Standard
code charts.

For each code point listed in the "combining.txt" file but not listed in
the "nonprinting.hex" file, unigencircles will superimpose a
single-width dashed circle in glyphs that are single-width (i.e., their
hex glyph strings are 32 characters long) and will superimpose a
double-width dashed circle in glyphs that are double-width (i.e., their
hex glyph strings are 64 characters long).

3.22.4 unigencircles EXAMPLE
----------------------------

     unigencircles combining.txt nonprinting.hex < unifont.hex >
     unifont-circles.hex

3.22.5 unigencircles FILES
--------------------------

*.hex files for Unifont glyph data

font/ttfsrc/combining.txt for combining code points

font/plane00/nonprinting.hex for non-printing code points

3.22.6 unigencircles SEE ALSO
-----------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigenwidth(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.22.7 unigencircles AUTHOR
---------------------------

unigencircles was written by Paul Hardy.

3.22.8 unigencircles LICENSE
----------------------------

unigencircles is Copyright (C) 2013 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.22.9 unigencircles BUGS
-------------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input files.

3.23 unigenwidth
================

3.23.1 unigenwidth NAME
-----------------------

unigenwidth - Generate C code for POSIX wcwidth and wcswidth functions

3.23.2 unigenwidth SYNOPSIS
---------------------------

unigenwidth unifont.hex combining.txt > wccode.c

3.23.3 unigenwidth DESCRIPTION
------------------------------

unigenwidth reads a collection of glyphs in Unifont's .hex format, then
reads a list of combining characters as a hexadecimal list.  From these
two files, it produces C code to implement the POSIX wcwidth(3) and
wcswidth(3) functions.  The format of these definitions is based upon
POSIX 1003.1-2008 System Interfaces, pages 2251 and 2241, respectively.

3.23.4 unigenwidth EXAMPLE
--------------------------

Sample usage:

     unigenwidth unifont.hex combining.txt > wccode.c

3.23.5 unigenwidth FILES
------------------------

*.hex files for Unifont glyph data; combining.txt for combining code
points.

3.23.6 unigenwidth SEE ALSO
---------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unihex2bmp(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.23.7 unigenwidth AUTHOR
-------------------------

unigenwidth was written by Paul Hardy.

3.23.8 unigenwidth LICENSE
--------------------------

unigenwidth is Copyright (C) 2013 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.23.9 unigenwidth BUGS
-----------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input files.

3.24 unihex2bmp
===============

3.24.1 unihex2bmp NAME
----------------------

unihex2bmp - GNU Unifont .hex file to bitmap graphics file converter

3.24.2 unihex2bmp SYNOPSIS
--------------------------

unihex2bmp [-phexpage] [-iinput_file.hex] [-ooutput_file.bmp] [-f] [-w]

3.24.3 unihex2bmp DESCRIPTION
-----------------------------

unihex2bmp reads a GNU Unifont .hex file Unicode page of 256 code points
and converts the page into a Microsoft Windows Bitmap (.bmp) or Wireless
Bitmap (.wbmp) file.  The bitmap file displays the glyphs of a Unicode
block of 256 code points in a 32 by 32 pixel grid.  The glyphs
themselves must be 16 rows high, and 8, 16, 24, or 31 (encoded as 32)
columns wide.  The default page is 0; that is, the range U+0000 through
U+00FF.

The bitmap can be printed.  It can also be edited with a bitmap editor.
An edited bitmap can then be re-converted into a GNU Unifont .hex file
with the unibmp2hex command.

3.24.4 unihex2bmp OPTIONS
-------------------------

'-p'
     Extract page hexpage from the .hex file.  The default is Page 0
     (Unicode range U+0000 through U+00FF). Note that "page" is not a
     standard Unicode term.  It refers to an output bitmap graphics page
     of 16 by 16 code points.

'-i'
     Specify the input file.  The default is STDIN.

'-o'
     Specify the output file.  The default is STDOUT.

'-f'
     "Flip" (transpose) the grid, swapping rows and columns from the
     Unicode standard orientation.

'-w'
     Produce a Wireless Bitmap format file instead of a Microsoft
     Windows Bitmap file.

3.24.5 unihex2bmp EXAMPLE
-------------------------

Sample usage:

     unihex2bmp -imy_input_file.hex -omy_output_file.bmp

3.24.6 unihex2bmp FILES
-----------------------

*.hex GNU Unifont font files

3.24.7 unihex2bmp SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2png(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.24.8 unihex2bmp AUTHOR
------------------------

unihex2bmp was written by Paul Hardy.

3.24.9 unihex2bmp LICENSE
-------------------------

unihex2bmp is Copyright (C) 2007 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.24.10 unihex2bmp BUGS
-----------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input files.  If they're not in the
format of the original GNU Unifont .hex file, all bets are off.  Lines
can be terminated either with line feed, or carriage return plus line
feed.

3.25 unihex2png
===============

3.25.1 unihex2png NAME
----------------------

unihex2png - GNU Unifont .hex file to Portable Network Graphics
converter

3.25.2 unihex2png SYNOPSIS
--------------------------

unihex2png [-i input_file.hex] -o output_file.png [-p pagenum] [-r rows]

3.25.3 unihex2png DESCRIPTION
-----------------------------

unihex2png reads a page of 256 Unicode code points from a GNU Unifont
.hex file and converts the page into a Portable Network Graphics (PNG)
file.  The graphics file displays the glyphs of a Unicode block of 256
code points in a 32 by 32 pixel grid, or in a 40 by 40 pixel grid if "-r
32" is specified.  The glyphs themselves can be either 16, 24, or 32
pixels tall depending on the "-r" parameter.  They can be 8, 16, 24, or
32 pixels wide (widths of 32 are only supported if "-r 32" is
specified).  The default page is 0; that is, the range U+0000 through
U+00FF, inclusive.

The PNG file can be printed.  It can also be edited with a graphics
editor.  An edited PNG file can then be re-converted into a GNU Unifont
.hex file with the unipng2hex command.

3.25.4 unihex2png OPTIONS
-------------------------

'-i'
     Specify the input file.  If not omitted, a Unifont .hex file is
     read from STDIN.

'-o'
     Specify the output file.

'-p'
     Extract page pagenum from the .hex file.  The default is Page 0
     (Unicode range U+0000 through U+00FF). Note that "page" is not a
     standard Unicode term.  It refers to an output bitmap graphics page
     of 16 by 16 code points.

'-r'
     Specify the rows of pixels in the output glyphs.  Valid values are
     16, 24, and 32.  The default is 16 pixel rows tall.

'-h'
     Print a help message of options and exit.

3.25.5 unihex2png EXAMPLE
-------------------------

Sample usage:

     unihex2png -i my_input_file.hex -o my_output_file.png

3.25.6 unihex2png FILES
-----------------------

*.hex GNU Unifont font files

3.25.7 unihex2png SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihexfill(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.25.8 unihex2png AUTHOR
------------------------

unihex2png was written by Andrew Miller, starting by converting Paul
Hardy's unihex2bmp C program to Perl.

3.25.9 unihex2png LICENSE
-------------------------

unihex2png is Copyright (C) 2007 Paul Hardy, (C) 2013 Andrew Miller.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.25.10 unihex2png BUGS
-----------------------

No known real bugs exist, but the optional pixel rows parameter is not
yet supported by all other Unifont utilities.  Use of glyphs taller than
the default of 16 pixels is considered experimental.  Currently
unihex2png, unipng2hex, hexdraw, and hex2bdf tentatively support glyphs
that are 16, 24, and 32 pixels tall.

Also, there is no extensive error checking on input files.  If they're
not in the format of the original GNU Unifont .hex file, all bets are
off.  Lines can be terminated either with line feed, or carriage return
plus line feed.

3.26 unihexfill
===============

3.26.1 unihexfill NAME
----------------------

unihexfill - Generate range of Unifont 4- or 6-digit hexadecimal glyphs

3.26.2 unihexfill SYNOPSIS
--------------------------

unihexfill < unassigned-ranges.txt > filler-glyphs.hex

3.26.3 unihexfill DESCRIPTION
-----------------------------

unihexfill is a shell script that reads a list of code point ranges from
STDIN and produces filler glyphs of 4- or 6-digit code points on STDOUT.
The format of the input file is a combination of comment lines, single
code points on a line, and start/stop pairs of code points on a line
separated by a space.  Comment lines start with a semicolon (';') by
convention.  Start and stop code points are strings of hexadecimal
digits, by convention either four or six digits.  unihexfill invokes
unihexgen for each non-comment line in its input file.  If a codepoint
is less than or equal to "FFFF" (i.e., 0xFFFF), a four-digit hexadecimal
number is encoded within the corresponding Unifont glyph as two digits
on each of two rows.  Otherwise, a six-digit hexadecimal number is
encoded as three digits on each of two rows.

3.26.4 unihexfill OPTIONS
-------------------------

There are no options.

3.26.5 unihexfill FILES
-----------------------

*.txt as input; *.hex as output.

3.26.6 unihexfill EXAMPLE
-------------------------

In the Unifont source package, the file font/plane01/Makefile generates
Unicode Plane 1 hexadecimal filler glyphs of unassigned code points
within assigned scripts with this single-line command:

     ../../bin/unihexfill < unassigned-ranges.txt > unassigned.hex

3.26.7 unihexfill SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexgen(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.26.8 unihexfill AUTHOR
------------------------

unihexfill was written by Paul Hardy.

3.26.9 unihexfill LICENSE
-------------------------

unihexfill is Copyright (C) 2014 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.26.10 unihexfill BUGS
-----------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input file.  Any line that appears to
begin with a hexadecimal digit is fed to unihexgen.

3.27 unihexgen
==============

3.27.1 unihexgen NAME
---------------------

unihexgen - Generate Unifont 4- or 6-digit hexadecimal glyphs

3.27.2 unihexgen SYNOPSIS
-------------------------

unihexgen startpoint endpoint

3.27.3 unihexgen DESCRIPTION
----------------------------

unihexgen produces unifont.hex entries in the Unicode code point range
startpoint to endpoint (specified as the two command-line arguments).
Output is to STDOUT. If a codepoint is less than or equal to "FFFF"
(i.e., 0xFFFF), a four-digit hexadecimal number is encoded within the
corresponding Unifont glyph as two digits on each of two rows.
Otherwise, a six-digit hexadecimal number is encoded as three digits on
each of two rows.

3.27.4 unihexgen OPTIONS
------------------------

There are no options.

3.27.5 unihexgen FILES
----------------------

*.hex as output.

3.27.6 unihexgen EXAMPLE
------------------------

To generate the Private Use Area glyphs in the Unicode range
U+E000..U+F8FF, invoke unihexgen with these arguments:

     unihexgen e000 f8ff

3.27.7 unihexgen SEE ALSO
-------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.27.8 unihexgen AUTHOR
-----------------------

unihexgen was written by Paul Hardy.

3.27.9 unihexgen LICENSE
------------------------

unihexgen is Copyright (C) 2013 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.27.10 unihexgen BUGS
----------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its command-line arguments.  If they're not
in the format of the original bitmapped output from unihexgen, all bets
are off.

3.28 unihexpose
===============

3.28.1 unihexpose NAME
----------------------

unihexpose - Convert a GNU Unifont glyph into column-major format

3.28.2 unihexpose SYNOPSIS
--------------------------

unihexpose < input-font.hex > transposed-font.hex

3.28.3 unihexpose DESCRIPTION
-----------------------------

unihexpose reads a sorted GNU Unifont .hex file from STDIN and writes a
transposed Unifont .hex file to STDOUT. The output .hex file contains
glyphs encoded in column major format, with 8 rows per output column.
This will simplify output of Unifont glyphs on graphics displays with
controller chips designed to autoincrement across a line of 8 pixel
rows, one column at a time.

The output .hex file contains a Unifont glyph in two halves: the first
half is the first 8 pixels rows, and the second half the second 8 pixel
rows.  The glyphs are 8 or 16 columns wide.

3.28.4 unihexpose FILES
-----------------------

*.hex GNU Unifont font files

3.28.5 unihexpose SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-johab631(5), unifont-viewer(1), unifont1per(1),
unifontchojung(1), unifontksx(1), unifontpic(1), unigen-hangul(1),
unigencircles(1), unigenwidth(1), unihex2bmp(1), unihex2png(1),
unihexfill(1), unihexgen(1), unihexrotate(1), unijohab2html(1),
unipagecount(1), unipng2hex(1)

3.28.6 unihexpose AUTHOR
------------------------

unihexpose was written by Paul Hardy.

3.28.7 unihexpose LICENSE
-------------------------

hexdraw is Copyright (C) 2023 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.28.8 unihexpose BUGS
----------------------

No known bugs exist.

3.29 unihexrotate
=================

3.29.1 unihexrotate NAME
------------------------

unihexrotate - rotate Unifont hex glyphs in quarter turn increments

3.29.2 unihexrotate SYNOPSIS
----------------------------

unihexrotate [-n quarter-turns] [input-font.hex] > output-font.hex

3.29.3 unihexrotate DESCRIPTION
-------------------------------

unihexrotate reads a GNU Unifont .hex format file named on the command
line, or from stdin if no filename is given.  If a number of quarter
turns is specified, it rotates each glyph clockwise by that number of
quarter turns, or counterclockwise if the number is negative.  The
resulting modified .hex file is written to stdout.  The format of a .hex
file is described in the unifont(5) man page.

If the number of quarter turns is not specified, unihexrotate will
rotate each glyph by a default value of one quarter turn (i.e., 90
degrees) clockwise.

unihexrotate only supports Unifont .hex files with glyphs that are 8
columns and 16 columns wide.  If an 8-column glyph is rotated, it is
first centered within a 16-column glyph so the rotation will be
performed on a 16-by-16 pixel glyph.  One additional use of this program
is that a glyph can be converted from 8\~columns wide to 16\~columns
wide by specifying a rotation of 0\~quarter turns.

3.29.4 unihexrotate OPTIONS
---------------------------

'-n'
     Specify an integer number of quarter turn clockwise rotations to
     perform, typically as "-n\~0" through "-n\~3" (alternatively as
     "-n=0" through "-n=3") for rotations of 0, 90, 180, or 270 degrees,
     respectively.  Negative values will perform counterclockwise
     rotations by the specified number of quarter turns.

3.29.5 unihexrotate EXAMPLES
----------------------------

This example extracts the Mongolian glyphs in the "unifont-base.hex"
file (located in the "font/plane00" directory) and pipes them to
unihexrotate to rotate by the default amount of one quarter turn
clockwise (i.e., by 90 degrees).  The basic Mongolian glyphs are in the
Unicode range U+1800 through U+18AF. The original glyphs in
"unifont-base.hex" are drawn for horizontal rendering (as per the
Unicode Standard).  The output rotated glyphs are suitable for rendering
Mongolian in its traditional vertical form.  Because no filename is
specified to unihexrotate in this example, its input is taken from
stdin.

     grep "^18[0-A]" unifont-base.hex | unihexrotate > vertical.hex

The next example reverses the rotation performed above, by one quarter
turn counterclockwise.  In this example, the input filename
"vertical.hex" is specified.

     unihexrotate -n -1 vertical.hex > horizontal.hex

3.29.6 unihexrotate FILES
-------------------------

Unifont .hex format input and output files.

3.29.7 unihexrotate SEE ALSO
----------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unijohab2html(1), unipagecount(1),
unipng2hex(1)

3.29.8 unihexrotate AUTHOR
--------------------------

unihexrotate was written by David Corbett.

3.29.9 unihexrotate LICENSE
---------------------------

unihexrotate is Copyright (C) 2019 David Corbett.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.29.10 unihexrotate BUGS
-------------------------

No known bugs exist.

3.30 unijohab2html
==================

3.30.1 unijohab2html NAME
-------------------------

unijohab2html - Show combined Hangul syllable jamo juxtaposition as a
web page

3.30.2 unijohab2html SYNOPSIS
-----------------------------

unijohab2html -i hangul-base.hex -o hangul-syllables.hex

3.30.3 unijohab2html DESCRIPTION
--------------------------------

unijohab2html reads glyphs in a Unifont .hex file organized in a Johab
6/3/1 format (6 choseong variations, 3 jungseong variations, and 1
jongseung variation).  It then produces an HTML output file showing all
Hangul letters in a color-coded output in 16-by-16 cell grids: blue
cells show where choseong glyphs appear; green for jungseong; and red
for jongseong.

Any overlaps are shown with a combination of the colors.  For example,
where one or more choseong (blue) letters overlap jungseong (green), the
associated cell will be blue + green = cyan.  Likewise, jungseong
(green) and jongseong (red) overlaps will appear as green + red =
yellow, etc.  There is a color key at the beginning of the HTML table.

If any overlaps of choseong and jungseong exist, these will then be
output in the HTML file identifying the overlapping letters in a
combined Unifont .txt file format.  From these overlaps, a Hangul font
creator can decide whether the overlap is acceptable or should be
modified.

If an overlap is with an ancient vowel or diphthong (i.e., U+1176,
HANGUL JUNGSEONG A-O through U+11A7, HANGUL JUNGSEONG O-YAE), it is
marked as an "Ancient Vowel" in this ending list of overlaps.  If a
choseong is ancient (i.e., U+11C3, HANGUL JONGSEONG KIYEOK-RIEUL,
through U+11FF, HANGUL JONGSEONG SSANGNIEUN), it is marked as "Ancient
Choseong" in the output.  Overlapping choseong and jungseong in the
Hangul Jamo Extended-A and Extended-B ranges are listed as "Extended
Ancient".  This identification of ancient and extended ancient versus
modern Hangul will allow a font designer to optimize modern Hangul when
weighing design tradeoffs.

3.30.4 unijohab2html OPTIONS
----------------------------

     Function

     '-h, --help'
          Print a help message and exit.

     '-i input_file'
          Unifont hangul-base.hex formatted input file.

     '-m, --modern'
          Only examine modern Hangul letters.

     '-o output_file'
          HTML output file, viewable in a web browser.

3.30.5 unijohab2html EXAMPLES
-----------------------------

     unijohab2html -i hangul-base.hex -o hangul-overlaps.html

     unijohab2html < hangul-base.hex > hangul-overlaps.html

3.30.6 unijohab2html FILES
--------------------------

Unifont .hex files in Johab 6/3/1 encoding.  See unifont-johab631(5) for
a description of the input file structure.  This program uses functions
contained in the file unihangul-support.c.

3.30.7 unijohab2html SEE ALSO
-----------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-johab631(5), unifont-viewer(1), unifont1per(1),
unifontchojung(1), unifontksx(1), unifontpic(1), unigen-hangul(1),
unigen-hangul(1), unigencircles(1), unigenwidth(1), unihex2bmp(1),
unihex2png(1), unihexfill(1), unihexgen(1), unihexpose(1),
unihexrotate(1), unijohab2html(1), unipagecount(1), unipng2hex(1)

3.30.8 unijohab2html AUTHOR
---------------------------

unijohab2html was written by Paul Hardy.

3.30.9 unijohab2html LICENSE
----------------------------

unijohab2html is Copyright (C) 2023 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.30.10 unijohab2html BUGS
--------------------------

No known bugs exist.

3.31 unipagecount
=================

3.31.1 unipagecount NAME
------------------------

unipagecount - Count the assigned code points in a GNU Unifont .hex file

3.31.2 unipagecount SYNOPSIS
----------------------------

unipagecount [-Pplane] [-ppagenum] [-h|-l]

3.31.3 unipagecount DESCRIPTION
-------------------------------

unipagecount reads a GNU Unifont .hex file from STDIN and prints a 16 by
16 grid of the number of defined code points in each 256 character block
within a Unicode plane to STDOUT. Code points proceed from left to
right, then top to bottom.  In all planes, code points U+*FFFE and
U+*FFFF are not expected in the input hex file; they are reserved and
always counted as being present in a plane.

3.31.4 unipagecount OPTIONS
---------------------------

'-P'
     Select a Unicode plane, from 0 through 16, inclusive.  If not
     specified, unipagecount defaults to Plane 0 (the Basic Multilingual
     Plane).

'-p'
     Just print information on one 256 code point "page" rather than the
     entire Basic Multilingual Plane.  This prints a 16 by 16 table with
     an asterisk in every code point that has an assigned glyph.

'-h'
     Print an HTML table with color-coded cell background colors instead
     of a plain text table.

'-l'
     [The letter "l"]: Print hyperlinks to font bitmaps in the HTML
     table.  To create the bitmaps themselves, use the unihex2bmp
     program.  The bitmaps are assumed to be in the directory "bmp/".

3.31.5 unipagecount FILES
-------------------------

*.hex GNU Unifont font files

3.31.6 unipagecount SEE ALSO
----------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipng2hex(1)

3.31.7 unipagecount AUTHOR
--------------------------

unipagecount was written by Paul Hardy.

3.31.8 unipagecount LICENSE
---------------------------

unipagecount is Copyright (C) 2007, 2014 Paul Hardy.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.31.9 unipagecount BUGS
------------------------

No known real bugs exist, except that this software does not perform
extensive error checking on its input files.  If they're not in the
format of the original GNU Unifont .hex file, all bets are off.

3.32 unipng2hex
===============

3.32.1 unipng2hex NAME
----------------------

unipng2hex - Portable Network Graphics to GNU Unifont .hex file
converter

3.32.2 unipng2hex SYNOPSIS
--------------------------

unipng2hex -i input_file.png [-o output_file.hex] [-w width]

3.32.3 unipng2hex DESCRIPTION
-----------------------------

unipng2hex reads a PNG file produced by unihex2png before or after
editing, and converts it back into a Unifont .hex format file.  The PNG
file contains a block of 256 Unicode code points arranged in a 16 by 16
grid.  Each code point appears in a 32 by 32 or a 40 by 40 pixel grid.
Characters are either 16, 24 or 32 pixel rows high, depending on the
"-r" parameter specified by unihex2png.  They can be 8, 16, 24, or 32
pixel columns wide (widths of 32 are only supported for 32 pixel row
tall characters).

3.32.4 unipng2hex OPTIONS
-------------------------

'-i'
     Specify the input file.

'-o'
     Specify the output file.  If omitted, a file in the Unifont .hex
     format is written to STDOUT.

'-w'
     Specify the minimum width of the output glyphs.  Valid values are
     16, 24, and 32.  The default is no minimum width.

'-h'
     Print a help message of options and exit.

3.32.5 unipng2hex EXAMPLE
-------------------------

Sample usage:

     unipng2hex -i my_input_file.png -o my_output_file.hex

3.32.6 unipng2hex FILES
-----------------------

*.png graphics files

3.32.7 unipng2hex SEE ALSO
--------------------------

bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1),
hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1),
unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1),
unifont(5), unifont-viewer(1), unifont1per(1), unifontchojung(1),
unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1),
unigenwidth(1), unihex2bmp(1), unihex2png(1), unihexfill(1),
unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1),
unipagecount(1)

3.32.8 unipng2hex AUTHOR
------------------------

unipng2hex was written by Andrew Miller, starting by converting Paul
Hardy's unibmp2hex C program to Perl.

3.32.9 unipng2hex LICENSE
-------------------------

unipng2hex is Copyright (C) 2007, 2008 Paul Hardy, (C) 2013 Andrew
Miller.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

3.32.10 unipng2hex BUGS
-----------------------

No known real bugs exist, but the optional pixel rows parameter is not
yet supported by all other Unifont utilities.  Use of glyphs taller than
the default of 16 pixels is considered experimental.  Currently
unihex2png, unipng2hex, hexdraw, and hex2bdf tentatively support glyphs
that are 16, 24, and 32 pixels tall.

Also, this software does not perform extensive error checking on its
input files.  If they're not in the format of the original PNG output
from unihex2png, all bets are off.

If the output file is for a "page" containing space code points and the
PNG file squares for those code points are not empty, unipng2hex
preserves the graphics as they are drawn.

unipng2hex is designed to work with black and white pixels; do not use
other colors.