Comments (7)
So... I was editing the XML ID with the Object Properties dialog, which disallows special characters, but the XML editor allows them.
from inkscapestrokefont.
I'm closing this since I found the "workaround" to my problem.
from inkscapestrokefont.
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.
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.
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.
Sorry for not getting back to you earlier. Are you still facing the issue?
from inkscapestrokefont.
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)
- No font data; please select a font and ensure that the list is synchronized HOT 4
- Extension "Custom Stroke Font" errors in Inkscape 1.0beta2 HOT 3
- Issues with special characters in generated font file HOT 4
- Workaround for Inkscape v1.0.2 and v1.1 HOT 5
- Menu is disabled HOT 3
- Edit svg font with missing horiz-adv-x
- Sync Fonts doesn't actually sync the fonts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inkscapestrokefont.