"Inkforge": Inkscape Becomes an SVG Font Editor?
Hi,
(I've blogged this at http://understandinglimited.com/2008/06/09/proposing-inkforge/)
I hope I can inspire people to patch Inkscape to make it suitable for drawing type :-)
SVG Fonts isn't supported much anywhere, but Chris Lilley's talk at LGM2008 has got me thinking :-)
Could Inkscape become an SVG Font Editor?
Designing type involves working at four scales:
A. designing individual letters ("drawing letters") B. designing letters that look like they belong together ("drawing type") C. designing letters that fit together to form words ("designing metrics") D. designing letters that fit together to form paragraphs ("looking at typeset text")
I think Inkscape could be good at all four of these.
Inkscape already has a template "fontforge_glyph" that sets up a canvas suitable for drawing a single letter - (A)
One way of making (B) possible could be through layers. SVG has "svg fonts" already, and this could work by having each glyph appear to be a layer. It would be possible to write a simple program to output an XML tree with the glyphs you want to design, and have a bunch of SVG Font templates for various common scripts. For this to really be useful though, Inkscape needs to have a new kind of layer-specific guideline. Inkscape doesn't appear to have this right now, but since it has global ones, this ought to be simple to add. (If it isn't again the SVG spec, it can be in the Inkscape-specific namespace.) Then, if the layers palette and "duplicate window" features could be extended to make it easy to compare layers (and thus glyphs) - stacking them, seeing them side by side, and so on.
The FontForge tutorial at http://fontforge.sourceforge.net/editexample5.html explains a little about designing metrics - (C). Having the left and right bearings appear as the page size (width) would be simple - and then Inkscape would be extended to allow changing the page size's width directly on the canvas, instead of via the document properties dialog, so just like moving a guideline. But perhaps having layers with different page sizes is against the SVG spec… Although that would be the most straightforward way of setting the sidebearings from a UI perspective, if that isn't possible, having the metrics appear as layer-specific guides with "left bearing" and "right bearing" IDs or Class could do the same job easily enough.
But what is really needed is to create a special "metrics" dialog. This could re-use the "duplicate window" feature to grab the glyph's outline and render it on another canvas, a special one where the left and right bearings can be adjusted in the context of several letters next to each other in a word. (Again, see the FontForge tutorial if you're not familiar with font editor programs.)
For typesetting text with the font, it would be straightforward to write some (python) glue scripts that open the SVG Font within FontForge, compile it into a system font format (Type 1, OpenType CFF) and then generate a PDF 'specimen' sheet to be printed. But eventually Inkscape will have to be able to render SVG Fonts directly on the canvas, and then it will be simple to have a "paragraph view" layer with some text that uses the glyphs from the self SVG.
I also think this should be possible. Currently I am working on SVG Fonts rendering as my Google Summer of Code project. Maybe I can work a bit on it after SoC. Not sure yet.
Did anybody record the LGM talks? What did Chris Lilley say about SVG Fonts?
Juca
Hi Felipe!
2008/6/10 Felipe Sanches <felipe.sanches@...400...>:
I also think this should be possible.
:-D
Currently I am working on SVG Fonts rendering as my Google Summer of Code project.
Wow - awesome!
Did anybody record the LGM talks? What did Chris Lilley say about SVG Fonts?
I did a pretty poor quality audio recording and some typed notes I am yet to process and publish; I'll be sure to post the links on this list though :-)
www.river-valley.tv has some very nice recordings of all the talks in the main ecture hall, but sadly Chris was in the second lecture hall.
2008/6/10 Dave Crossland <dave@...1555...>:
2008/6/10 Felipe Sanches <felipe.sanches@...400...>:
Did anybody record the LGM talks? What did Chris Lilley say about SVG Fonts?
http://www.w3.org/Talks/2008/LGM3/cover.svg is the start of his slides :-)
On Tuesday, June 10, 2008, 1:16:30 AM, Felipe wrote:
FS> I also think this should be possible. Currently I am working on SVG FS> Fonts rendering as my Google Summer of Code project. Maybe I can work FS> a bit on it after SoC. Not sure yet.
FS> Did anybody record the LGM talks? FS> What did Chris Lilley say about SVG Fonts?
There was no video recording since it was in the other room.
My slides are online, starting at http://www.w3.org/Talks/2008/LGM3/cover.svg (the left and right blue bars link to previous and next slides)
I added two slides with static screenshots of the demos.
They work fine in Opera, an look fine in Inkscape too.
(Firefox does not do SVG fonts and also seems to miss off some text).
On Wed, Jun 11, 2008 at 5:20 PM, Chris Lilley wrote:
My slides are online, starting at http://www.w3.org/Talks/2008/LGM3/cover.svg (the left and right blue bars link to previous and next slides)
Chris,
The slide mention modules like 2.5D effects, but googling doesn't help. It is something just planned or already in the works?
Alexandre
On Wednesday, June 11, 2008, 4:38:35 PM, Alexandre wrote:
AP> On Wed, Jun 11, 2008 at 5:20 PM, Chris Lilley wrote:
My slides are online, starting at http://www.w3.org/Talks/2008/LGM3/cover.svg (the left and right blue bars link to previous and next slides)
AP> Chris,
AP> The slide mention modules like 2.5D effects, but googling doesn't AP> help. It is something just planned or already in the works?
Google will not show up anything as there is no public draft yet, sorry. But we are already working on it, yes.
Its not 3D, but does allow non-affine transformations. So flip, tumble type animated effects are possible, for example.
participants (4)
-
Alexandre Prokoudine
-
Chris Lilley
-
Dave Crossland
-
Felipe Sanches