diff options
42 files changed, 50 insertions, 1 deletions
@@ -2,6 +2,7 @@ *.o *.pdf *.vim +[A-Z]*.txt .indent.pro hextobdf diff --git a/Images/Alphabetic-Presentation-Forms.png b/Images/Alphabetic-Presentation-Forms.png Binary files differnew file mode 100644 index 0000000..cb6d611 --- /dev/null +++ b/Images/Alphabetic-Presentation-Forms.png diff --git a/Images/Arrows.png b/Images/Arrows.png Binary files differnew file mode 100644 index 0000000..2f4c5cf --- /dev/null +++ b/Images/Arrows.png diff --git a/Images/BasicLatin.png b/Images/BasicLatin.png Binary files differnew file mode 100644 index 0000000..8ce7c02 --- /dev/null +++ b/Images/BasicLatin.png diff --git a/Images/Block-Elements.png b/Images/Block-Elements.png Binary files differnew file mode 100644 index 0000000..c0e54a8 --- /dev/null +++ b/Images/Block-Elements.png diff --git a/Images/Box-Drawing.png b/Images/Box-Drawing.png Binary files differnew file mode 100644 index 0000000..0c3c458 --- /dev/null +++ b/Images/Box-Drawing.png diff --git a/Images/Braille-Patterns.png b/Images/Braille-Patterns.png Binary files differnew file mode 100644 index 0000000..1d2c973 --- /dev/null +++ b/Images/Braille-Patterns.png diff --git a/Images/Combining-Diacritical-Marks-for-Symbols.png b/Images/Combining-Diacritical-Marks-for-Symbols.png Binary files differnew file mode 100644 index 0000000..e662b9d --- /dev/null +++ b/Images/Combining-Diacritical-Marks-for-Symbols.png diff --git a/Images/Combining-Diacritical-Marks.png b/Images/Combining-Diacritical-Marks.png Binary files differnew file mode 100644 index 0000000..c2a3538 --- /dev/null +++ b/Images/Combining-Diacritical-Marks.png diff --git a/Images/Control-Pictures.png b/Images/Control-Pictures.png Binary files differnew file mode 100644 index 0000000..e9f4e1b --- /dev/null +++ b/Images/Control-Pictures.png diff --git a/Images/Currency-Symbols.png b/Images/Currency-Symbols.png Binary files differnew file mode 100644 index 0000000..d18a5ec --- /dev/null +++ b/Images/Currency-Symbols.png diff --git a/Images/Cyrillic.png b/Images/Cyrillic.png Binary files differnew file mode 100644 index 0000000..3fbeedc --- /dev/null +++ b/Images/Cyrillic.png diff --git a/Images/Dingbats.png b/Images/Dingbats.png Binary files differnew file mode 100644 index 0000000..f64e231 --- /dev/null +++ b/Images/Dingbats.png diff --git a/Images/Enclosed-Alphanumerics.png b/Images/Enclosed-Alphanumerics.png Binary files differnew file mode 100644 index 0000000..d162528 --- /dev/null +++ b/Images/Enclosed-Alphanumerics.png diff --git a/Images/General-Punctuation.png b/Images/General-Punctuation.png Binary files differnew file mode 100644 index 0000000..89799c4 --- /dev/null +++ b/Images/General-Punctuation.png diff --git a/Images/Geometric-Shapes.png b/Images/Geometric-Shapes.png Binary files differnew file mode 100644 index 0000000..30b3c84 --- /dev/null +++ b/Images/Geometric-Shapes.png diff --git a/Images/Greek-Extended.png b/Images/Greek-Extended.png Binary files differnew file mode 100644 index 0000000..b53cf04 --- /dev/null +++ b/Images/Greek-Extended.png diff --git a/Images/Greek-and-Coptic.png b/Images/Greek-and-Coptic.png Binary files differnew file mode 100644 index 0000000..7847def --- /dev/null +++ b/Images/Greek-and-Coptic.png diff --git a/Images/IPA-Extensions.png b/Images/IPA-Extensions.png Binary files differnew file mode 100644 index 0000000..a6a8fe8 --- /dev/null +++ b/Images/IPA-Extensions.png diff --git a/Images/Katakana.png b/Images/Katakana.png Binary files differnew file mode 100644 index 0000000..7cba9d3 --- /dev/null +++ b/Images/Katakana.png diff --git a/Images/Latin-1-Supplement.png b/Images/Latin-1-Supplement.png Binary files differnew file mode 100644 index 0000000..83d5138 --- /dev/null +++ b/Images/Latin-1-Supplement.png diff --git a/Images/Latin-Extended-A.png b/Images/Latin-Extended-A.png Binary files differnew file mode 100644 index 0000000..09556ca --- /dev/null +++ b/Images/Latin-Extended-A.png diff --git a/Images/Latin-Extended-Additional.png b/Images/Latin-Extended-Additional.png Binary files differnew file mode 100644 index 0000000..b44f7d8 --- /dev/null +++ b/Images/Latin-Extended-Additional.png diff --git a/Images/Latin-Extended-B.png b/Images/Latin-Extended-B.png Binary files differnew file mode 100644 index 0000000..408bdc9 --- /dev/null +++ b/Images/Latin-Extended-B.png diff --git a/Images/Letterlike-Symbols.png b/Images/Letterlike-Symbols.png Binary files differnew file mode 100644 index 0000000..4a7f835 --- /dev/null +++ b/Images/Letterlike-Symbols.png diff --git a/Images/Mathematical-Operators.png b/Images/Mathematical-Operators.png Binary files differnew file mode 100644 index 0000000..4b46e97 --- /dev/null +++ b/Images/Mathematical-Operators.png diff --git a/Images/Miscellaneous-Mathematical-Symbols-A.png b/Images/Miscellaneous-Mathematical-Symbols-A.png Binary files differnew file mode 100644 index 0000000..c1594a2 --- /dev/null +++ b/Images/Miscellaneous-Mathematical-Symbols-A.png diff --git a/Images/Miscellaneous-Symbols.png b/Images/Miscellaneous-Symbols.png Binary files differnew file mode 100644 index 0000000..81d9031 --- /dev/null +++ b/Images/Miscellaneous-Symbols.png diff --git a/Images/Miscellaneous-Technical.png b/Images/Miscellaneous-Technical.png Binary files differnew file mode 100644 index 0000000..f93c703 --- /dev/null +++ b/Images/Miscellaneous-Technical.png diff --git a/Images/Misclellaneous-Symbols-and-Arrows.png b/Images/Misclellaneous-Symbols-and-Arrows.png Binary files differnew file mode 100644 index 0000000..cf85022 --- /dev/null +++ b/Images/Misclellaneous-Symbols-and-Arrows.png diff --git a/Images/Number-Forms.png b/Images/Number-Forms.png Binary files differnew file mode 100644 index 0000000..3295fb1 --- /dev/null +++ b/Images/Number-Forms.png diff --git a/Images/Optical-Character-Recognition.png b/Images/Optical-Character-Recognition.png Binary files differnew file mode 100644 index 0000000..4d4e5b9 --- /dev/null +++ b/Images/Optical-Character-Recognition.png diff --git a/Images/Private-Use-Area.png b/Images/Private-Use-Area.png Binary files differnew file mode 100644 index 0000000..f407d70 --- /dev/null +++ b/Images/Private-Use-Area.png diff --git a/Images/Spacing-Modifier-Letters.png b/Images/Spacing-Modifier-Letters.png Binary files differnew file mode 100644 index 0000000..998a190 --- /dev/null +++ b/Images/Spacing-Modifier-Letters.png diff --git a/Images/Specials.png b/Images/Specials.png Binary files differnew file mode 100644 index 0000000..666930a --- /dev/null +++ b/Images/Specials.png diff --git a/Images/Superscripts-and-Subscripts.png b/Images/Superscripts-and-Subscripts.png Binary files differnew file mode 100644 index 0000000..dacff91 --- /dev/null +++ b/Images/Superscripts-and-Subscripts.png diff --git a/Images/Supplemental-Arrows-A.png b/Images/Supplemental-Arrows-A.png Binary files differnew file mode 100644 index 0000000..36d7493 --- /dev/null +++ b/Images/Supplemental-Arrows-A.png diff --git a/Images/Supplemental-Arrows-B.png b/Images/Supplemental-Arrows-B.png Binary files differnew file mode 100644 index 0000000..2cbfb3e --- /dev/null +++ b/Images/Supplemental-Arrows-B.png diff --git a/Images/Supplemental-Mathematical-Operators.png b/Images/Supplemental-Mathematical-Operators.png Binary files differnew file mode 100644 index 0000000..e939567 --- /dev/null +++ b/Images/Supplemental-Mathematical-Operators.png diff --git a/Images/UTF-8-demo-Markus-Kuhn-2002.png b/Images/UTF-8-demo-Markus-Kuhn-2002.png Binary files differnew file mode 100644 index 0000000..8c39770 --- /dev/null +++ b/Images/UTF-8-demo-Markus-Kuhn-2002.png diff --git a/make-images.sh b/make-images.sh new file mode 100755 index 0000000..b616fa5 --- /dev/null +++ b/make-images.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +while read -r name first last; do + ./lscp "0x$first" "0x$last" > "$name.txt" + ./txttopng -f gallant.hex -t "$name.txt" -p "Images/$name.png" +done << EOF +BasicLatin 0000 007F +Latin-1-Supplement 00A0 0100 +Latin-Extended-A 0100 0180 +Latin-Extended-B 0180 0250 +IPA-Extensions 0250 02B0 +Spacing-Modifier-Letters 02B0 0300 +Combining-Diacritical-Marks 0300 0370 +Greek-and-Coptic 0370 0400 +Cyrillic 0400 0500 +Latin-Extended-Additional 1E00 1F00 +Greek-Extended 1F00 2000 +General-Punctuation 2000 2070 +Superscripts-and-Subscripts 2070 20A0 +Currency-Symbols 20A0 20D0 +Combining-Diacritical-Marks-for-Symbols 20D0 2100 +Letterlike-Symbols 2100 2150 +Number-Forms 2150 2190 +Arrows 2190 2200 +Mathematical-Operators 2200 2300 +Miscellaneous-Technical 2300 2400 +Control-Pictures 2400 2440 +Optical-Character-Recognition 2440 2460 +Enclosed-Alphanumerics 2460 2500 +Box-Drawing 2500 2580 +Block-Elements 2580 25A0 +Geometric-Shapes 25A0 2600 +Miscellaneous-Symbols 2600 2700 +Dingbats 2700 27C0 +Miscellaneous-Mathematical-Symbols-A 27C0 27F0 +Supplemental-Arrows-A 27F0 2800 +Braille-Patterns 2800 2900 +Supplemental-Arrows-B 2900 2980 +Supplemental-Mathematical-Operators 2A00 2B00 +Misclellaneous-Symbols-and-Arrows 2B00 2C00 +Katakana 30A0 3100 +Private-Use-Area E0A0 E0F0 +Alphabetic-Presentation-Forms FB00 FB50 +Specials FFF0 10000 +EOF + +./txttopng -f gallant.hex -t "$HOME/UTF-8-demo.txt" -p "Images/UTF-8-demo-Markus-Kuhn-2002.png" @@ -378,9 +378,10 @@ void parse_font_hexdata(FILE *aFile) { if (line[0] == '#') continue; parse_font_line(line, line_no, &gGlyphset[glyphs]); + ++glyphs; } if (gGlyphs != glyphs) - errx("glyph count changed unexpectedly\n"); + errx("glyph count changed unexpectedly (%zu != %zu)\n", gGlyphs, glyphs); qsort(gGlyphset, gGlyphs, sizeof *gGlyphset, compare_glyphs); set_replacement_character(); } |
