comment
This commit is contained in:
parent
009e1fbb9e
commit
fe80fd27f5
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
package font
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
@ -77,9 +81,6 @@ func calcChecksum(buf []byte) uint32 {
|
||||||
return sum
|
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) {
|
func Sfnt2Woff(fontBuf []byte) ([]byte, error) {
|
||||||
numTables := binary.BigEndian.Uint16(fontBuf[4:])
|
numTables := binary.BigEndian.Uint16(fontBuf[4:])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue