Coder Social home page Coder Social logo

Comments (7)

risacher avatar risacher commented on August 23, 2024

So... I was editing the XML ID with the Object Properties dialog, which disallows special characters, but the XML editor allows them.

from inkscapestrokefont.

risacher avatar risacher commented on August 23, 2024

I'm closing this since I found the "workaround" to my problem.

from inkscapestrokefont.

Shriinivas avatar Shriinivas commented on August 23, 2024

Sorry for the delayed reply.
I tried creating a font with : as one of the characters. I was able to assign : as xml ID and also successfully generate font data with Inkscape 1.2. Could you let me know your OS? Which other special characters had problem? Also, great to know you found a workaround, what exactly did you do to make it work? This information will help others facing similar issue.

from inkscapestrokefont.

risacher avatar risacher commented on August 23, 2024

I'm using MacOS 12.5.1. (Although I might have been using Ubuntu when I first reported the issue.)

If I create a path in my font template, right-click on it and select "object properties", I get a dialog in which if I assign a character that is invalid in an XML id (such as ":") it will change the label of the ID input box to "Id invalid!" and it will not change the ID attribute, and I therefore cannot seem to make a glyph in my font for such a character.

However, if I open the XML Editor (from the Edit menu) and select the path for my glyph, I can edit the 'id' attribute of the svg:path object in the XML Editor pane and set it to be whatever, including ':' or '"'. Afterwards, if I then open the "object properties" dialog for the same path, it will show the ID attribute as the same character that it forbid me to set earlier.

I have not tested extensively what characters cause a problem, but at the minimum it includes ':', '\'' and '"'

from inkscapestrokefont.

risacher avatar risacher commented on August 23, 2024

I think this is confusing to explain in text, so I made a quick video to show what I meant: https://youtu.be/TXolpG_CChw

from inkscapestrokefont.

Shriinivas avatar Shriinivas commented on August 23, 2024

Sorry for not getting back to you earlier. Are you still facing the issue?

from inkscapestrokefont.

risacher avatar risacher commented on August 23, 2024

I just tested this in Inkscape 1.3, and yeah, it still happens, but the workaround I proposed still works okay too.

Fundamentally, I think there's a bit of a conceptual issue in that the inkscape stroke font extension assumes that the id of the path for the glyph will be the character that it represents, and certain characters are generally not allowed in XML ids. But they sorta work anyway, although Inkscape isn't consistent in how it handles them. Specifically, ':' is okay in the XML editor, but not in the object property editor. I suggest that you document the issue and the workaround in the video tutorials, and move on with your life. I made a comment on Tutorial 1 trying to explain the issue and linking to my own video.

from inkscapestrokefont.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.