Updates:
Status: Accepted
Cc:
plotinum...@googlegroups.com
Comment #1 on issue 144 by
burns...@gmail.com: Allows fonts to be loaded
from io.Reader
http://code.google.com/p/plotinum/issues/detail?id=144
I am interested in this. The font situation in vg is awful. The problem is
that I don't know how to embed fonts into PDF and EPS files, so vg just
allows the fonts in FontMap, which are guaranteed to be supported by PDF
and PS. I don't know SVG, but it may have similar issues. The vgimg backend
is the only one that I am certain can support any arbitrary TrueType font.
Your proposal will allow the loading of arbitrary fonts. I have a few
questions about it.
Are you only loading the Plotinum-supplied fonts with font names that match
those in vg.FontMap? If so, then this is going to be perfectly safe for all
of the vg backends. (By the way, the fonts that are distributed with
Plotinum are from Ghostscript and are distributed under the GPL--whatever
that means for a font. If you add them into the binary of your program your
program probably needs to be under the GPL too.)
If no to the above question, are you using only the vgimg backend (are you
only generating raster images like PNG, etc.)? If so, then you probably
don't notice any problems. Have you tried saving a plot as a PDF, EPS, or
SVG file? I would be very surprised if it worked.
If we accept something like this change into Plotinum, I think that we have
to be careful. We either need to have very strongly worded comments
pointing out the danger of loading arbitrary fonts, or we need to make vg
panic when a backend doesn't support a font. I prefer the later, because
strongly worded comments are easy to miss and easy to ignore.
--
You received this message because you were CC'd on the issue.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply to this email to add a comment.