This commit is contained in:
Bernard Xie 2023-03-29 12:00:55 -07:00
parent 009e1fbb9e
commit fe80fd27f5
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -1,3 +1,7 @@
// Sfnt2Woff is a native go port of the JS library
// https://github.com/fontello/ttf2woff
// that converts sfnt fonts (.ttf and .otf) to .woff fonts
package font
import (
@ -77,9 +81,6 @@ func calcChecksum(buf []byte) uint32 {
return sum
}
// Sfnt2Woff is a native go port of the JS library
// https://github.com/fontello/ttf2woff
// that converts sfnt fonts (.ttf and .otf) to .woff fonts
func Sfnt2Woff(fontBuf []byte) ([]byte, error) {
numTables := binary.BigEndian.Uint16(fontBuf[4:])