How to use SVG fonts with CLI or Python API ?

Home Evil Mad Scientist Forums AxiDraw How to use SVG fonts with CLI or Python API ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29678
    stephanschulz
    Participant

    I found this great list of center line fonts on Windell’s gitlab
    https://gitlab.com/oskay/svg-fonts
    But it is unclear to me how to assemble a string and get it plotted using CLI or Python API.
    I believe that Inkscape can somehow utilize these SVG and EMS fonts, but I am working on a larger interactive artwork that needs to assemble and plot text on the fly.
    I have worked with both APIs before to draw SVG files and also use moveto and lineto commands; though I could not find any hints about the fonts.

    I appreciate any advice.
    Thank you

    • This topic was modified 7 months, 2 weeks ago by Windell Oskay.
    • This topic was modified 7 months, 2 weeks ago by Windell Oskay. Reason: Requested spelling correction
    #29690
    Windell Oskay
    Keymaster

    Those fonts are used by Hershey Text.

    #29694
    stephanschulz
    Participant

    Noted. Thanks.

    I noticed I misspelled SVG and instead wrote SVF in the title. Is there a way to edit that?

    I thought that the Axidraw API would have a way to interface/use the Hershey Text, since Inkscape does it too.
    But it’s not a big problem.

    I integrated these fonts in the ofxHersheyText openframeworks addon: https://github.com/stephanschulz/ofxHersheyFont
    And here how to parse the font’s SVGs in to a string that can be run as a python script that then uses the axidraw API to plot.
    https://github.com/stephanschulz/ofxHersheyFont/blob/master/example-python-string/src/ofApp.cpp#L22

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to use SVG fonts with CLI or Python API ?’ is closed to new replies.