-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fonts #11
Comments
So, this here means that we'll (unfortunately) need docker for plotly.js image testing (see plotly/plotly.js#1972). Of course we could ask devs to install the fonts locally before running the tests, but that sounds even more painful than using docker. I thought about removing all non-default-font-related mocks from our plotly.js image tests arguing that plotly.js is font-agnostic, so plotly.js testing should be font-agnostic. But, that will most likely lead to breakage down the road. That said, our docker logic will be trimmed considerably. In theory, we should only need one |
Here's a side-by-side comparison of our font mocks: https://github.com/plotly/plotly.js/compare/compare-fonts-baselines In brief, the new baselines look a lot better than with the old image server 🎉 |
The image server side of this issue was resolved by @scjody 's #1 🎉 But, the plotly.js image testing side (cc plotly/plotly.js#1972) remains open. We'll need use a docker container in the plotly.js image test to ensure that (1) the correct fonts are used (2) the generate image are pixel-perfect in all operating system. So, @scjody is there an easy way to reuse the |
Yes - there are two main options:
|
Unfortunately, we'll have to install them on the system, like we currently do here.
I thought that adding something like:
in the SVG's
<defs>
would work, but no.<img>
with SVGsrc
values don't import fonts, soPlotly.toImage
fails to render the fonts correctly. See this article for more details.cc #1
The text was updated successfully, but these errors were encountered: