-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: How to use this? #2
Comments
I use Arch not Ubuntu so I can't give super-reliable answers here. But this is probably close: When your OS package manager has prepped packages it's better to use them. It looks to me like However, now you need FontForge, and this is Ubuntu's list of fontforge packages: https://packages.ubuntu.com/search?keywords=fontforge . So you're right, the only xenial versions of FontForge are 20120731, which is super old and almost certainly python 2 anyway. The focal or groovy packages would work fine -- I don't believe my script depends on anything in the very latest version, and if it does I could probably fix that, but it at least needs access to the point types via python, which were added in 2019. I think the next thing to try is seeing if I can help you compile and install it. The current installation guidance is actually Ubuntu-focused, which is handy. So suppose you do the following to compile in a
(So, compiling but stopping before the installation step.) What happens? |
Installation instructions are here, btw: https://github.com/fontforge/fontforge/blob/master/INSTALL.md |
I wonder if I could use the FontForge AppImage to run your script? if so, how? |
That will be at least a bit tricky, but let me experiment a little. |
Well, you're somewhat of an expert on appimages, right? If I do:
(so, run the program via the app image directly passing the full path) I get a Now, you already have the dependencies installed in a So the question is: Is it possible to set specific environment variables pointing to "external" resources with an AppImage? |
Well, there may be some truth in that ;-) Looks like the Python inside the FontForge AppImage has no This may be the brute-force method, but I seem to be getting somewhere with it:
I think I can work with this... |
Oh, yeah, I don't think you'd get that usage error at all unless it was basically working. |
In fact it is working so well that I just noticed a bug in the typeface I am working on ;-)
|
Can you upload |
Sure: doc.sfd.txt Note that it's just a disorganized jumble of the source contours for my Expand Stroke documentation. |
...works for me:
Any chance to turn it into a png directly? mobi does not support svg... And using |
If you have inkscape installed try |
I haven't thought about this much because my whole point in writing it was to avoid the problems of screenshots, and converting to PNG at the end still has most of those problems. Of course, one could still organize one's document sources using SVG and generate images only for those platforms that need them -- when possible generating at multiple resolutions so the tool-at-the-end can pick the one that best matches the screen resolution. |
Let's go for the 1.0 Inkscape that was released yesterday...
|
Well, unusually (as an Arch Linux user) I have an older version of Inkscape installed. What does |
Yup, looks right to me ... |
Edited above, seems to work. Is the output as expected? Cool! 👍 |
I recommend playing with the |
We would now need to think about how to put the instructions ("recipe") for each illustration into the "source code" of the book. But I guess we need to discuss that back over in fontforge/designwithfontforge.com#204. In any case, thanks for helping here, I think this issue can be closed. |
Thanks for this useful repository. Can you please document a bit more clearly how to use it e.g., on an Ubuntu xenial system?
Do I need to use https://launchpad.net/~silnrsi/+archive/ubuntu/smith-py3/? It seems not to be available for xenial, only for the very recent bionic.
I realize that those are not issues specific to your code but more long-standing annoyance factors with Python. Nevertheless I would appreciate if you could point me in the right direction. Thanks!
The text was updated successfully, but these errors were encountered: