summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Images/Alphabetic-Presentation-Forms.pngbin0 -> 14990 bytes
-rw-r--r--Images/Arrows.pngbin0 -> 28648 bytes
-rw-r--r--Images/BasicLatin.pngbin0 -> 20766 bytes
-rw-r--r--Images/Block-Elements.pngbin0 -> 8214 bytes
-rw-r--r--Images/Box-Drawing.pngbin0 -> 27629 bytes
-rw-r--r--Images/Braille-Patterns.pngbin0 -> 31127 bytes
-rw-r--r--Images/Combining-Diacritical-Marks-for-Symbols.pngbin0 -> 12005 bytes
-rw-r--r--Images/Combining-Diacritical-Marks.pngbin0 -> 26988 bytes
-rw-r--r--Images/Control-Pictures.pngbin0 -> 14017 bytes
-rw-r--r--Images/Currency-Symbols.pngbin0 -> 9253 bytes
-rw-r--r--Images/Cyrillic.pngbin0 -> 54949 bytes
-rw-r--r--Images/Dingbats.pngbin0 -> 55112 bytes
-rw-r--r--Images/Enclosed-Alphanumerics.pngbin0 -> 29275 bytes
-rw-r--r--Images/General-Punctuation.pngbin0 -> 31735 bytes
-rw-r--r--Images/Geometric-Shapes.pngbin0 -> 23386 bytes
-rw-r--r--Images/Greek-Extended.pngbin0 -> 50145 bytes
-rw-r--r--Images/Greek-and-Coptic.pngbin0 -> 33330 bytes
-rw-r--r--Images/IPA-Extensions.pngbin0 -> 23695 bytes
-rw-r--r--Images/Katakana.pngbin0 -> 13281 bytes
-rw-r--r--Images/Latin-1-Supplement.pngbin0 -> 21288 bytes
-rw-r--r--Images/Latin-Extended-A.pngbin0 -> 24189 bytes
-rw-r--r--Images/Latin-Extended-Additional.pngbin0 -> 50466 bytes
-rw-r--r--Images/Latin-Extended-B.pngbin0 -> 46164 bytes
-rw-r--r--Images/Letterlike-Symbols.pngbin0 -> 20460 bytes
-rw-r--r--Images/Mathematical-Operators.pngbin0 -> 69406 bytes
-rw-r--r--Images/Miscellaneous-Mathematical-Symbols-A.pngbin0 -> 17336 bytes
-rw-r--r--Images/Miscellaneous-Symbols.pngbin0 -> 66773 bytes
-rw-r--r--Images/Miscellaneous-Technical.pngbin0 -> 75606 bytes
-rw-r--r--Images/Misclellaneous-Symbols-and-Arrows.pngbin0 -> 77157 bytes
-rw-r--r--Images/Number-Forms.pngbin0 -> 14226 bytes
-rw-r--r--Images/Optical-Character-Recognition.pngbin0 -> 4956 bytes
-rw-r--r--Images/Private-Use-Area.pngbin0 -> 6822 bytes
-rw-r--r--Images/Spacing-Modifier-Letters.pngbin0 -> 20148 bytes
-rw-r--r--Images/Specials.pngbin0 -> 3129 bytes
-rw-r--r--Images/Superscripts-and-Subscripts.pngbin0 -> 9311 bytes
-rw-r--r--Images/Supplemental-Arrows-A.pngbin0 -> 4565 bytes
-rw-r--r--Images/Supplemental-Arrows-B.pngbin0 -> 37935 bytes
-rw-r--r--Images/Supplemental-Mathematical-Operators.pngbin0 -> 82206 bytes
-rw-r--r--Images/UTF-8-demo-Markus-Kuhn-2002.pngbin0 -> 49597 bytes
-rwxr-xr-xmake-images.sh47
-rw-r--r--txttopng.c3
42 files changed, 50 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 88c12cc..562fade 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
new file mode 100644
index 0000000..cb6d611
--- /dev/null
+++ b/Images/Alphabetic-Presentation-Forms.png
Binary files differ
diff --git a/Images/Arrows.png b/Images/Arrows.png
new file mode 100644
index 0000000..2f4c5cf
--- /dev/null
+++ b/Images/Arrows.png
Binary files differ
diff --git a/Images/BasicLatin.png b/Images/BasicLatin.png
new file mode 100644
index 0000000..8ce7c02
--- /dev/null
+++ b/Images/BasicLatin.png
Binary files differ
diff --git a/Images/Block-Elements.png b/Images/Block-Elements.png
new file mode 100644
index 0000000..c0e54a8
--- /dev/null
+++ b/Images/Block-Elements.png
Binary files differ
diff --git a/Images/Box-Drawing.png b/Images/Box-Drawing.png
new file mode 100644
index 0000000..0c3c458
--- /dev/null
+++ b/Images/Box-Drawing.png
Binary files differ
diff --git a/Images/Braille-Patterns.png b/Images/Braille-Patterns.png
new file mode 100644
index 0000000..1d2c973
--- /dev/null
+++ b/Images/Braille-Patterns.png
Binary files differ
diff --git a/Images/Combining-Diacritical-Marks-for-Symbols.png b/Images/Combining-Diacritical-Marks-for-Symbols.png
new file mode 100644
index 0000000..e662b9d
--- /dev/null
+++ b/Images/Combining-Diacritical-Marks-for-Symbols.png
Binary files differ
diff --git a/Images/Combining-Diacritical-Marks.png b/Images/Combining-Diacritical-Marks.png
new file mode 100644
index 0000000..c2a3538
--- /dev/null
+++ b/Images/Combining-Diacritical-Marks.png
Binary files differ
diff --git a/Images/Control-Pictures.png b/Images/Control-Pictures.png
new file mode 100644
index 0000000..e9f4e1b
--- /dev/null
+++ b/Images/Control-Pictures.png
Binary files differ
diff --git a/Images/Currency-Symbols.png b/Images/Currency-Symbols.png
new file mode 100644
index 0000000..d18a5ec
--- /dev/null
+++ b/Images/Currency-Symbols.png
Binary files differ
diff --git a/Images/Cyrillic.png b/Images/Cyrillic.png
new file mode 100644
index 0000000..3fbeedc
--- /dev/null
+++ b/Images/Cyrillic.png
Binary files differ
diff --git a/Images/Dingbats.png b/Images/Dingbats.png
new file mode 100644
index 0000000..f64e231
--- /dev/null
+++ b/Images/Dingbats.png
Binary files differ
diff --git a/Images/Enclosed-Alphanumerics.png b/Images/Enclosed-Alphanumerics.png
new file mode 100644
index 0000000..d162528
--- /dev/null
+++ b/Images/Enclosed-Alphanumerics.png
Binary files differ
diff --git a/Images/General-Punctuation.png b/Images/General-Punctuation.png
new file mode 100644
index 0000000..89799c4
--- /dev/null
+++ b/Images/General-Punctuation.png
Binary files differ
diff --git a/Images/Geometric-Shapes.png b/Images/Geometric-Shapes.png
new file mode 100644
index 0000000..30b3c84
--- /dev/null
+++ b/Images/Geometric-Shapes.png
Binary files differ
diff --git a/Images/Greek-Extended.png b/Images/Greek-Extended.png
new file mode 100644
index 0000000..b53cf04
--- /dev/null
+++ b/Images/Greek-Extended.png
Binary files differ
diff --git a/Images/Greek-and-Coptic.png b/Images/Greek-and-Coptic.png
new file mode 100644
index 0000000..7847def
--- /dev/null
+++ b/Images/Greek-and-Coptic.png
Binary files differ
diff --git a/Images/IPA-Extensions.png b/Images/IPA-Extensions.png
new file mode 100644
index 0000000..a6a8fe8
--- /dev/null
+++ b/Images/IPA-Extensions.png
Binary files differ
diff --git a/Images/Katakana.png b/Images/Katakana.png
new file mode 100644
index 0000000..7cba9d3
--- /dev/null
+++ b/Images/Katakana.png
Binary files differ
diff --git a/Images/Latin-1-Supplement.png b/Images/Latin-1-Supplement.png
new file mode 100644
index 0000000..83d5138
--- /dev/null
+++ b/Images/Latin-1-Supplement.png
Binary files differ
diff --git a/Images/Latin-Extended-A.png b/Images/Latin-Extended-A.png
new file mode 100644
index 0000000..09556ca
--- /dev/null
+++ b/Images/Latin-Extended-A.png
Binary files differ
diff --git a/Images/Latin-Extended-Additional.png b/Images/Latin-Extended-Additional.png
new file mode 100644
index 0000000..b44f7d8
--- /dev/null
+++ b/Images/Latin-Extended-Additional.png
Binary files differ
diff --git a/Images/Latin-Extended-B.png b/Images/Latin-Extended-B.png
new file mode 100644
index 0000000..408bdc9
--- /dev/null
+++ b/Images/Latin-Extended-B.png
Binary files differ
diff --git a/Images/Letterlike-Symbols.png b/Images/Letterlike-Symbols.png
new file mode 100644
index 0000000..4a7f835
--- /dev/null
+++ b/Images/Letterlike-Symbols.png
Binary files differ
diff --git a/Images/Mathematical-Operators.png b/Images/Mathematical-Operators.png
new file mode 100644
index 0000000..4b46e97
--- /dev/null
+++ b/Images/Mathematical-Operators.png
Binary files differ
diff --git a/Images/Miscellaneous-Mathematical-Symbols-A.png b/Images/Miscellaneous-Mathematical-Symbols-A.png
new file mode 100644
index 0000000..c1594a2
--- /dev/null
+++ b/Images/Miscellaneous-Mathematical-Symbols-A.png
Binary files differ
diff --git a/Images/Miscellaneous-Symbols.png b/Images/Miscellaneous-Symbols.png
new file mode 100644
index 0000000..81d9031
--- /dev/null
+++ b/Images/Miscellaneous-Symbols.png
Binary files differ
diff --git a/Images/Miscellaneous-Technical.png b/Images/Miscellaneous-Technical.png
new file mode 100644
index 0000000..f93c703
--- /dev/null
+++ b/Images/Miscellaneous-Technical.png
Binary files differ
diff --git a/Images/Misclellaneous-Symbols-and-Arrows.png b/Images/Misclellaneous-Symbols-and-Arrows.png
new file mode 100644
index 0000000..cf85022
--- /dev/null
+++ b/Images/Misclellaneous-Symbols-and-Arrows.png
Binary files differ
diff --git a/Images/Number-Forms.png b/Images/Number-Forms.png
new file mode 100644
index 0000000..3295fb1
--- /dev/null
+++ b/Images/Number-Forms.png
Binary files differ
diff --git a/Images/Optical-Character-Recognition.png b/Images/Optical-Character-Recognition.png
new file mode 100644
index 0000000..4d4e5b9
--- /dev/null
+++ b/Images/Optical-Character-Recognition.png
Binary files differ
diff --git a/Images/Private-Use-Area.png b/Images/Private-Use-Area.png
new file mode 100644
index 0000000..f407d70
--- /dev/null
+++ b/Images/Private-Use-Area.png
Binary files differ
diff --git a/Images/Spacing-Modifier-Letters.png b/Images/Spacing-Modifier-Letters.png
new file mode 100644
index 0000000..998a190
--- /dev/null
+++ b/Images/Spacing-Modifier-Letters.png
Binary files differ
diff --git a/Images/Specials.png b/Images/Specials.png
new file mode 100644
index 0000000..666930a
--- /dev/null
+++ b/Images/Specials.png
Binary files differ
diff --git a/Images/Superscripts-and-Subscripts.png b/Images/Superscripts-and-Subscripts.png
new file mode 100644
index 0000000..dacff91
--- /dev/null
+++ b/Images/Superscripts-and-Subscripts.png
Binary files differ
diff --git a/Images/Supplemental-Arrows-A.png b/Images/Supplemental-Arrows-A.png
new file mode 100644
index 0000000..36d7493
--- /dev/null
+++ b/Images/Supplemental-Arrows-A.png
Binary files differ
diff --git a/Images/Supplemental-Arrows-B.png b/Images/Supplemental-Arrows-B.png
new file mode 100644
index 0000000..2cbfb3e
--- /dev/null
+++ b/Images/Supplemental-Arrows-B.png
Binary files differ
diff --git a/Images/Supplemental-Mathematical-Operators.png b/Images/Supplemental-Mathematical-Operators.png
new file mode 100644
index 0000000..e939567
--- /dev/null
+++ b/Images/Supplemental-Mathematical-Operators.png
Binary files differ
diff --git a/Images/UTF-8-demo-Markus-Kuhn-2002.png b/Images/UTF-8-demo-Markus-Kuhn-2002.png
new file mode 100644
index 0000000..8c39770
--- /dev/null
+++ b/Images/UTF-8-demo-Markus-Kuhn-2002.png
Binary files differ
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"
diff --git a/txttopng.c b/txttopng.c
index a9649c9..bac5900 100644
--- a/txttopng.c
+++ b/txttopng.c
@@ -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();
}