Skip to content

Commit

Permalink
embedded font in svg (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube authored and alecthomas committed Oct 15, 2019
1 parent 73d11b3 commit 611a24c
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 3 deletions.
2 changes: 1 addition & 1 deletion formatters/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
}))
// Default HTML formatter outputs self-contained HTML.
htmlFull = Register("html", html.New(html.Standalone(), html.WithClasses())) // nolint
Svg = Register("svg", svg.New())
SVG = Register("svg", svg.New(svg.EmbedFont("Liberation Mono", svg.FontLiberationMono, svg.WOFF)))
)

// Fallback formatter.
Expand Down
Loading

0 comments on commit 611a24c

Please sign in to comment.