plot icon indicating copy to clipboard operation
plot copied to clipboard

Only error about missing fonts if text is actually drawn

Open eaburns opened this issue 11 years ago • 2 comments

Original issue 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.

eaburns avatar Mar 17 '15 10:03 eaburns

Comment #1 originally posted by eaburns on 2014-12-08T11:38:06.000Z:

Yes, please export the defaultFont variable. That would make customizing text style much easier.

eaburns avatar Mar 17 '15 10:03 eaburns

Comment #2 originally posted by eaburns on 2014-12-20T14:43:04.000Z:

See issue 147 for exporting defaultFont.

eaburns avatar Mar 17 '15 10:03 eaburns