vega / vl-convert

Utilities for converting Vega-Lite specs from the command line and Python
BSD 3-Clause "New" or "Revised" License
98 stars 12 forks source link

Add fallback textinfo #13

Closed jonmmease closed 1 year ago

jonmmease commented 1 year ago

Background

0.3.0rc1 fails on binder with this error:

Screen Shot 2022-10-16 at 5 01 16 PM

This PR adds a fallback to the text width calculation. When text width calculation fails, we fallback to using the "sans-serif" font family that is always supported. It also adds some extra info to the error message above.