You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JFYI: I've tried to have a plot rendered to SVG using another default font (plot.DefaultFont = font.Font{Typeface: "Arial"}). This was incredibly painful to get going up to a certain point. Along the way it just crashes, because FontFaces are accessed without checking if they are nil. To work around that, I needed to make font directories known to the vg package, then use vg.MakeFont() to obtain a Face, then register this face with the DefaultFontCache. Only to have it fail regardless, because the SVG renderer has a hard-coded, non-changeable map of type faces to CSS style strings. :-(
Activity
vg/vgpdf: remove use of vg.FontMap, retrieve TTF data from sfnt.Font
kortschak commentedon Jun 1, 2021
SGTM
vg/vgpdf: remove use of vg.FontMap, retrieve TTF data from sfnt.Font
vg/vgpdf: remove use of vg.FontMap, retrieve TTF data from sfnt.Font
vg/vgpdf: drop use of vg/fonts package
vg/vggio: drop use of vg/fonts package
vg/vgpdf: remove use of vg.FontMap, retrieve TTF data from sfnt.Font
vg: remove FontMap, AddFont and MakeFont
vg/vgpdf: drop use of vg/fonts package
vg/vggio: drop use of vg/fonts package
vg/vgpdf: drop use of vg/fonts package
vg/vggio: drop use of vg/fonts package
vg/{fonts,vgpdf}: remove vg/fonts package
vg: remove FontMap, AddFont and MakeFont
vg/vggio: drop use of vg/fonts package
vg: remove FontMap, AddFont and MakeFont
vg/vggio: drop use of vg/fonts package
vg/{fonts,vgpdf}: remove vg/fonts package
stippi2 commentedon Jun 10, 2021
JFYI: I've tried to have a plot rendered to SVG using another default font (
plot.DefaultFont = font.Font{Typeface: "Arial"}). This was incredibly painful to get going up to a certain point. Along the way it just crashes, because FontFaces are accessed without checking if they arenil. To work around that, I needed to make font directories known to thevgpackage, then usevg.MakeFont()to obtain aFace, then register this face with theDefaultFontCache. Only to have it fail regardless, because the SVG renderer has a hard-coded, non-changeable map of type faces to CSS style strings. :-(kortschak commentedon Jun 10, 2021
@stippi2 Please file an issue.
vg/{fonts,vgpdf}: remove vg/fonts package
vg/{fonts,vgpdf}: remove vg/fonts package
vg/{fonts,vgpdf}: remove vg/fonts package
vg/{fonts,vgpdf}: remove vg/fonts package
vg/{fonts,vgpdf}: remove vg/fonts package
vg/{fonts,vgpdf}: remove vg/fonts package