|
From: Thales M. <tha...@gm...> - 2026-08-26 15:45:48
|
Do you know any programming at all? Take a look at this documentation: https://fontforge.org/docs/scripting/python/fontforge.html As you can see, there are methods like "glyph.anchorPoints" and "glyph.addReference" that allow you to look at an anchor, create a proper transformation matrix and position the reference to create your composites. Learning Python with chatbots is really fun. Programming in general can be really fun but it can also be really annoying and drive you crazy. The fun part is when you're developing the ideas, testing, and it's all working, and the project is moving forward. The really annoying part is when the project gets really really complex, that every now and then a bug arises, and you get stuck for 3 weeks turning everything upside down and can't for the love of God make it work. And just so you know, so you can make an informed decision, the fun part is usually 10% of the time, while the annoying, crazy driving part, is the other 90%. On Tue, Aug 25, 2026 at 3:10 PM Mauro Sacchetto via fontforge-users < fon...@li...> wrote: > > I've never used Python scripts; I'm curious where I could find some > examples, especially for managing composite glyphs. Or should I create > one myself? Because I don't know Python. :( > > I opened the file you indicated, but I don't understand anything... > > > > Il 24/08/26 17:04, Thales Martins ha scritto: > > I'm sorry. I wrote a reply earlier that didn't pass through the > > moderation because I attached a file. What I said was that I would > > move to the Python's scripting functionality of FontForge to resolve > > this issue. I'm pretty sure it delivers access to all the variables > > required to do any type of composite generation. And, if you want, you > > can go to FontForge's source code and look into the file > > "fvcomposite.c", because that's probably where the bug you are > > referring to can be found. > > > > There's one more hack that you can try. You could get a professional > > font that already contains all the small caps that you want in > > composite form, and then replace the splines of that with your splines > > by copying and pasting(open both fonts through the same instance of > > FontForge, otherwise the copying and pasting won't work). > > > > > _______________________________________________ > fontforge-users mailing list > fon...@li... > https://lists.sourceforge.net/lists/listinfo/fontforge-users > http://fontforge.10959.n7.nabble.com/User-f8781.html |