gonum / gonum/plot

Only error about missing fonts if text is actually drawn

Open
#160 2 comments 0 reactions 0 assignees View on GitHub
bug gonum
Dominant language
Go
Stars
3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

Original [issue 132](https://code.google.com/p/plotinum/issues/detail?id=132) created by eaburns on 2013-07-08T11:26:19.000Z:

Currently, plot.New returns an error if it cannot find the default font. There are two concerns here: 1) if the default font will remain unexported then this might as well be a panic, and 2) we should support drawing plots that do not contain any text if the fonts aren't actually installed.

My plan is: export the defaultFont variable, leave the error return on plot.New, and change plot and vg so that, if the fonts aren't installed, they only error if/when text is actually drawn.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.