Added more glyphs

This commit is contained in:
Peter Williams 2018-07-30 18:09:28 +10:00
parent 435bb91cb0
commit 6b73b0d9eb
5 changed files with 3511 additions and 19 deletions

BIN
contrib/testdata/font/Ingmar.txt vendored Executable file

Binary file not shown.

BIN
contrib/testdata/font/estimation.txt vendored Executable file

Binary file not shown.

10
contrib/testdata/font/helminths.txt vendored Executable file
View File

@ -0,0 +1,10 @@
19 0 obj
<</BaseFont/DXCOJF+TTE231A280t00/FontDescriptor 18 0 R/Type/Font
/FirstChar 1/LastChar 75/Widths[ 317 526 713 582 207 207 375 244 207 394 319 713 489 244 394
394 229 530 588 244 263 337 394 319 601 432 582 207 338 526 268
531 526 526 526 638 526 244 531 244 821 544 250 489 530 229 846
638 282 337 319 319 526 319 526 506 526 526 526 601 588 800 526
207 526 563 450 638 582 394 846 789 530 413 450]
/Encoding 58 0 R/Subtype/TrueType>>
endobj

View File

@ -252,6 +252,26 @@ var charcodeBytesToUnicodeTest = []fontFragmentTest{
177, 151, 178, 179, 183, 185, 188, 205, 184, 189},
"‘ł’ “Ł” Ø `o´ it's ˝ˆ˜¯˘˙¨˚ˇªº‹ı›—–—†‡•„…˛¸‰",
},
fontFragmentTest{"A potpourri of glyph naming conventions",
"../../contrib/testdata/font/Ingmar.txt", 144,
[]byte{18, 20, 10, 11, 13, 14, 15, 16, 21, 22, 23, 25, 26, 27, 28, 29, 30,
31, 33, 12, 17, 19, 24},
"ʼ8ČŽĆřćĐĭűőftffiflfffičž!fbfkffl\u00a0",
},
fontFragmentTest{"Zapf Dingbats",
"../../contrib/testdata/font/estimation.txt", 122,
[]byte{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14},
"✏✮✁☛\x00\x00❄❍❥❇◆✟✙",
},
fontFragmentTest{"Found these by trial and error",
"../../contrib/testdata/font/helminths.txt", 19,
[]byte{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},
" *ﺏﻁﻝﺍﺔﻴﻠﻜ،ﺕﺭﺘﻌﻤﺎﺠﻲﻨﻘﺩﻬ/ﻙﻭﻕﺃﻡﻋﻓﺴ٢٠٣ﻯﻥﺒﺸﺌﺱﻷ,ﺯﺤﺄﻀـﺓﺫ.)٤(٩ل٥٧٨ﻸﻰ%١ﺇ٦ﺡﻱﻅﻐﺼﻑﺨﺀﻊLM",
},
}
type fontFragmentTest struct {

File diff suppressed because it is too large Load Diff