Re: [fontforge-users] Where is the changeWeight code?
Abraham Lee <[email protected]>
| Newsgroups | gmane.comp.fonts.fontforge.devel,gmane.comp.fonts.fontforge.user |
|---|---|
| Message-ID | <CAHAQwh3+HT7XYkoVRF5JPRNpCYDZaDJ-Pjf2kkwpLRPQ8PCPDQ@mail.gmail.com> |
Well, it doesn't happen all the time, but occasionally I'll get extraneous lines that didn't exist prior to changing the weight or glyphs that are no longer closed (sometimes both). I've attached a before change, after change (manually), and after change (python API). The glyph done manually ends up not being closed in two places (look for the direction arrows) even though there are two points in each of those places, but not connected. The glyph done via python ends up making strange connections between the same four points, but diagonally (at least it gets "closed", though). What do you think? I've also attached a trimmed down sfd of just that glyph for you to look at, if you'd like. The original (before) is definitely closed, so I don't see any reason why it would end up NOT closed after changing the weight (by +7 em-units). Guide layer: original; background: after manually increasing weight; foreground: after automatically changing weight (with python API). Thanks, -Abraham On Wed, Dec 31, 2014 at 5:01 PM, Frank Trampe <[email protected]> wrote: > Hi, Abraham. > > The Python changeWeight function is in fontforge/python.c. What problems > are you experiencing? > > > On Wed, Dec 31, 2014 at 5:35 PM, Abraham Lee <[email protected]> > wrote: > >> Developers, >> >> I have really enjoyed using FF over the past year, making both text and >> music fonts. I'd like to make more use of the changeWeight function, but >> I've had mixed experiences using it (via the python API) where I can't use >> it reliably. I am happy to dig into the code to figure out how to improve >> it, but I am not having any luck finding it in the repositories. Can anyone >> be so kind to point me in the right direction? Thanks so much and keep up >> the excellent work! >> >> Happy New Year! >> -Abraham >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> fontforge-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/fontforge-users >> http://fontforge.10959.n7.nabble.com/User-f8781.html >> > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > fontforge-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fontforge-users > http://fontforge.10959.n7.nabble.com/User-f8781.html > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ fontforge-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fontforge-devel http://fontforge.10959.n7.nabble.com/Developer-f3.html
before-and-after.png
(image/png, 119.7 KB) - not displayed
changeWeight-issue.sfd
(application/vnd.font-fontforge-sfd, 14.1 KB) - not displayed