designing fonts within Inkscape
Now users can design a font within inkscape, save it and then open the SVG file in Fontforge in order to export a truetype font (or other system font formarts fontforge supports). This improves previous workflow of font design using Inkscape which involved creating one SVG for each glyph. Now user only needs to create a single SVG file containing an SVGFont.
Glyph kerning settings for the font can also be defined withing Inkscape itself with live preview. The kerning management still needs some improvements but is currently functional at least.
Improvements in the SVGFonts dialog:
* In Global Settings tab you can define the font family name. Other attributes should be added to this tab in the future. * Glyphs tab allows the user to: ** see a list (combobox) of glyphs available in the currently selected font. ** add/remove glyphs ** edit glyph name and unicode ** set the glyph curves based on a given path (selected from canvas). Same feature for the missing glyph. * Kerning tab allows user to: ** add new kerning pairs ** adjust kerning values of selected kerning pair ** live preview while adjusting the kerning values
Code refactoring:
* Inner classes DocumentProperties::SignalObserver and FilterEffectsDialog::SignalObserver were duplicated code and another instance would be needed in SVGFonts dialog. So, I moved it to Inkscape::XML::SignalObserver (in helper-observer.{cpp,h}) * changed SPGlyph->glyph_name and SPGlyph->unicode from char* to Glib::ustring * added sp_remove_resource to the release method in sp-font.cpp * glyph curves used to be stored (in d attribute) and rendered upside-down. Now that bug is fixed.
Sorry about this huge commit. I got one week away from the Internet during a xmas travel. The lack of 'net connection made me work more intensely in Inkscape :-D
Felipe Sanches
2008/12/28 Felipe Sanches wrote:
Now users can design a font within inkscape, save it and then open the SVG file in Fontforge in order to export a truetype font (or other system font formarts fontforge supports). This improves previous workflow of font design using Inkscape which involved creating one SVG for each glyph. Now user only needs to create a single SVG file containing an SVGFont.
Glyph kerning settings for the font can also be defined withing Inkscape itself with live preview. The kerning management still needs some improvements but is currently functional at least.
Felipe, this sounds like a lot of fun :-) Thanks heaps!
Alexandre
This is amazing...fwd'ing to openfontlibrary list...
Jon
On Sun, 2008-12-28 at 22:49 +0300, Alexandre Prokoudine wrote:
2008/12/28 Felipe Sanches wrote:
Now users can design a font within inkscape, save it and then open the SVG file in Fontforge in order to export a truetype font (or other system font formarts fontforge supports). This improves previous workflow of font design using Inkscape which involved creating one SVG for each glyph. Now user only needs to create a single SVG file containing an SVGFont.
Glyph kerning settings for the font can also be defined withing Inkscape itself with live preview. The kerning management still needs some improvements but is currently functional at least.
Felipe, this sounds like a lot of fun :-) Thanks heaps!
Alexandre
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
2008/12/28 Jon Phillips <jon@...235...>:
This is amazing...fwd'ing to openfontlibrary list...
Jon
On Sun, 2008-12-28 at 22:49 +0300, Alexandre Prokoudine wrote:
2008/12/28 Felipe Sanches wrote:
Now users can design a font within inkscape, save it and then open the SVG file in Fontforge in order to export a truetype font (or other system font formarts fontforge supports). This improves previous workflow of font design using Inkscape which involved creating one SVG for each glyph. Now user only needs to create a single SVG file containing an SVGFont.
Glyph kerning settings for the font can also be defined withing Inkscape itself with live preview. The kerning management still needs some improvements but is currently functional at least.
Felipe, this sounds like a lot of fun :-) Thanks heaps!
Alexandre
Really amazing!! Please, please upload a screenshot.
Jose
2008/12/28 Felipe Sanches wrote:
Now users can design a font within inkscape, save it and then open the SVG file in Fontforge in order to export a truetype font (or other system font formarts fontforge supports). This improves previous workflow of font design using Inkscape which involved creating one SVG for each glyph. Now user only needs to create a single SVG file containing an SVGFont.
Glyph kerning settings for the font can also be defined withing Inkscape itself with live preview. The kerning management still needs some improvements but is currently functional at least.
I have two crashes for you already :)
1. Try to get curves from selection for a non-existing glyph:
2. Create two new glyphs, define unicode values, try to create a kerning pair - fail!
Alexandre
2008/12/28 Felipe Sanches <felipe.sanches@...400...>:
Now users can design a font within inkscape, save it and then open the SVG file in Fontforge in order to export a truetype font (or other system font formarts fontforge supports).
This improves previous workflow of font design using Inkscape which involved creating one SVG for each glyph. Now user only needs to create a single SVG file containing an SVGFont.
Okay, that's interesting, and suggests a big dirty hack to get SVG User fonts "working" in Inkscape :-)
Could a python script use Inkscape and FontForge's python scripting features (or as a pyFF script called as an Inkscape plugin, perhaps) to:
1. save the current Inkscape document as name.svg 2. close Inkscape 3. open name.svg with pyFontForge 4. generate a TrueType font as name.ttf 5. copy name.ttf to ~/.fonts 6. run "fc-cache -f" 7. open name.svg with Inkscape
?
participants (5)
-
Alexandre Prokoudine
-
Dave Crossland
-
Felipe Sanches
-
Jon Phillips
-
Jose Hevia