1. Thank you for this, I've made some glyphs using your extension, how do I make(convert to) a ttf or an otf font using the generated font data?
  2. I've found a way to convert generated font data to OTF or TTF using Fontforge,
  3. What you have to do is to create a template for a typography canvas in Inkscape to match the canvas from Fontforge,
  4. on default Fontforge uses 1000em. Here's the template I made - https://pastebin.com/raw/f10wYAPd (Save as a SVG file)
  5. In this template I've added the Left and Right Vertical Guides, and the Baseline.
  6. For OTF fonts I've found you can use open path characters in them. The following details how to create an open path OTF font,
  7. The first step is copy a character(For example "A") from the window you get from "Edit font data" to the template, and adjust the left and right vertical guides to match the character from the "Edit font data" window after that move the character glyph to match with the baseline guide from the "Edit font data" window. You only have to adjust the Vertical guides and the glyph, leave the Baseline as it is.
  8. After that save them by their glyph name as default 'Inkscape SVG' type to a location of you choice.
  9. After doing the above step for each character, Next step is to open Fontforge -> New -> Elements -> Font info -> Layers -> Font Type -> set to "Stroked Font"
  10. Then Open a glyph cell, For example "A" and import the "A.svg" which you generated before, then adjust the left and
  11. right vertical guides in the Fontforge canvas to match with the template vertical guides, after that delete the vertical guides and the bottom baseline guide of the template from the canvas.
  12. After creating all the glyphs you can go ahead and generate the OTF font by going to File -> Generate Fonts -> Select Opentype(CFF) and clicking Generate.
  13. For TTF Fonts since you can't have open paths, you have to close the open paths, but what I found out was you can do it with a gap with almost 0 pixels, basically following on top of the original path back to the first node.
  14. The steps are almost same as the OTF font generation but,
  15. On Inkscape after copying the character from "Edit font data" window and adjusting vertical guides and matching glyph with baseline in the template, go to Path-> Path Effects.. , then choose the glyph(only the glyph not the guides) and In the "Path Effects" tab, click "+" and add "Join Type". In Join type set Line Cap to Rounded, Line Width to "0.001".
  16. Then follow rest of the OTF font conversion steps until you get to the Font Generation Step.
  17. After you have done adding all the glyph to the Fontforge and adjusting guides, go to Elements -> Font info -> Layers -> Font Type -> set to "Outline Font", At this point in the window all the glyphs would just appear to be vanished, but they are still there. Now Go to File-> Generate Fonts-> Select TrueType and click Generate.
  18. Once you have done this you should successfully get a true Open path OTF font or a TTF font with Stroke Font like features.
  19. For a Pen Plotter the above TTF font would basically follow the same path backwards when drawing a letter without leaving behind any gaps. But to use the above OTF Font you have to use a software that has an option to allow single stroke fonts which the software like Rhino does.
  20. Another thing I found out was there is this type of fonts called 'OPF', which is basically a OTF or TTF font with open paths which is renamed to OPF extension. The software that does support these 'OPF' Fonts does not closes paths when loading as Windows does. I guess the above generated OTF file can be renamed to .OPF extension but to save a TTF as OPF, you can follow as the OTF font generation steps(Not the TTF Steps) and before generating font change the Font type to 'Outline Font', then after generating as a TrueType font rename the extension from .TTF to .OPF.
  21. PS. Without copying the character from the "Edit font data" window you can add the character to the Template easily by Using the "Render Text" function in the extension by setting the font size to 285.0, then you can begin adjusting the vertical guides.
 
 

549

Convert generated font data to OTF or TTF using Fontforge

For Stroke font generation, first use https://inkscape.org/~khemadeva/%E2%98%85inkscape-stroke-font-extensions to generate stroke version of an existing font.

The follow the guide to convert the generated font data to OTF or TTF using Fontforge.

Tutorial

Lines
39
Words
744
Dimensione
4,0 KB
Creato
Tipo
text/plain
Public Domain (PD)
Per favore accedi per lasciare un commento!