Closed sbinet closed 3 years ago
PTAL @stippi2
@kortschak what do you see?
here is what I get:
could it be that the Liberation fonts are not available to your browser?
Merging #704 (1a37402) into master (bd0e370) will increase coverage by
0.05%
. The diff coverage is77.02%
.
@@ Coverage Diff @@
## master #704 +/- ##
==========================================
+ Coverage 71.91% 71.96% +0.05%
==========================================
Files 56 58 +2
Lines 4957 5230 +273
==========================================
+ Hits 3565 3764 +199
- Misses 1206 1272 +66
- Partials 186 194 +8
Impacted Files | Coverage Δ | |
---|---|---|
vg/vgsvg/vgsvg.go | 64.68% <77.02%> (+4.10%) |
:arrow_up: |
vg/vggio/context.go | 100.00% <0.00%> (ø) |
|
vg/vggio/vggio.go | 67.37% <0.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update bd0e370...1a37402. Read the comment docs.
I get this with my browser:
(master
is left.)
and this in the github rich-diff:
It's entirely possible that the installed fonts impacts on this. There should probably be some documentation explaining how to ensure that fonts are available for SVG-rendered plots with this change. We're bound to get issues otherwise.
you're probably right.
perhaps this could be addressed with embedding fonts? i.e.: https://github.com/gonum/plot/issues/703 and adding the proper documentation+example.
@kortschak I have a CL ready to add fonts embedding to SVG canvases. should I add it to this PR or send another one (once that one is merged.)
Are they independent? If they are, then looking at the PR adding embedding and then rebasing this only that once merged would be the best I think.
they are independent. I'll send a PR.
actually, it's a bit more intertwined than I remembered. (the coupling is in the naming taxonomy of fonts) it's #705.
superseded by https://github.com/gonum/plot/pull/705
This CL drops the use of the internal fontMap that was associating some pre-defined set of fonts with a set of SVG naming schemes (derived from PostScript). Instead, use the informations contained in plot/font.Font to derive the expected SVG font-family (and friends) font style string.
Updates #702.
Please take a look.