This commit is contained in:
cuishuang 2022-03-02 10:45:11 +08:00
Родитель 6944b10bf4
Коммит 79ce945721
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -437,7 +437,7 @@ func makeCachedCoverageRange(buf []byte) indexLookupFunc {
// pairs: 130=0, 131=1, 132=2, 133=3, 134=4, 135=5, 137=6
// ranges: 130, 135, 0 137, 137, 6
// startCoverageIndex is used to calculate the index without counting
// the length of the preceeding ranges
// the length of the preceding ranges
idx := sort.Search(num, func(i int) bool {
return gi <= GlyphIndex(u16(ranges[i*6:]))

Просмотреть файл

@ -567,7 +567,7 @@ func TestPostScriptSegments(t *testing.T) {
// drawn in a consistent direction. Clockwise for external paths,
// anti-clockwise for internal paths. (Actually PostScript requires the
// exact opposite, but FontForge reverses PostScript contours when it loads
// them so that everything is consistant internally -- and reverses them
// them so that everything is consistent internally -- and reverses them
// again when it saves them, of course)."
//
// The .notdef glyph isn't explicitly in the SFD file, but for some unknown

Просмотреть файл

@ -30,7 +30,7 @@ Aldus "off by one" algorithm.
The Go code doesn't read (invalid) TIFF files written by old versions of
libtiff, but the LZW algorithm in this package still differs from the one in
Go's standard package library to accomodate this "off by one" in valid TIFFs.
Go's standard package library to accommodate this "off by one" in valid TIFFs.
*/
import (