opening gi/font.go causes massive cpu load
rcoreilly opened this issue · 1 comments
rcoreilly commented
because font.go imports font files with massive raw font data, which parser seems to fail badly on -- include some safety fallback or something or fix the parsing.
"golang.org/x/image/font/gofont/gobold"
"golang.org/x/image/font/gofont/gobolditalic"
"golang.org/x/image/font/gofont/goitalic"
"golang.org/x/image/font/gofont/gomedium"
"golang.org/x/image/font/gofont/gomediumitalic"
"golang.org/x/image/font/gofont/gomono"
"golang.org/x/image/font/gofont/gomonobold"
"golang.org/x/image/font/gofont/gomonobolditalic"
"golang.org/x/image/font/gofont/gomonoitalic"
"golang.org/x/image/font/gofont/goregular"
"golang.org/x/image/font/gofont/gosmallcaps"
"golang.org/x/image/font/gofont/gosmallcapsitalic"
rcoreilly commented
added a special case as there isn't anything obvious about these files otherwise syntax-wise..