-
Notifications
You must be signed in to change notification settings - Fork 51
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
UFO to glyphs conversion #74
Comments
I started to implement a proper object model to represent glyphs files in memory. One advantage if it would be to able to write files. That is not 100% there yet and needs some updating an better integration with the rest of the code. And what is your usecase for this? |
The use case is working on collaborative projects between users using Glyphs and those using FontForge. (At least until I persuade you to release a Linux version of Glyphs, round-tripping through UFO is the best alternative.... :) ) |
it might be more useful to add .glyphs support to fontforge directly. |
Well, personally, I'd consider a FontForge-only solution less useful; because there are other UFO-centric tools. @jamesgk , what do you think? |
We have gotten requests for a UFO->Glyphs converter before. We can read UFOs into UFO-like Python objects and write Glyphs source from Glyphs-like Python objects but the missing piece is converting UFO-like objects to Glyphs-like objects. Basically the opposite of builder.py which is ~750 lines and pretty messy. Complicating this as a todo item is that we also want to overhaul our Glyphs-like Python objects to be class-based instead of Python-builtin-based (as Georg mentioned; this could make builder.py cleaner as well as making glyphsLib more generally useful). That is kind of a few weeks out for me unfortunately since I have other obligations I have to get to. Perhaps in the meantime someone could write a rudimentary UFO obj -> Glyph obj converter based on what we have now. |
Depending on the time pressure for the ufo>glyphs converter, I would wait until the object model is in better shape? |
But if you want a glyphs file you probably have the Glyphs app too. Is its import function dissactisfactory or anything? |
Not necessarily. The use-case here and with Noto is that someone may want to contribute to a project which is based on existing Glyphs sources, but without using the Glyphs app. |
Oh I see. |
My (old) branch is able to write .glyphs file. So if we could implement this, it would be much easier to implement moving data in both directions. |
So is the master branch. The missing piece is converting UFO-structured data to Glyphs-structured data.
Assuming you're talking about overhauling the Glyphs data handling, that's a big if. It's not a trivial task, and I'm quite busy these days. Honestly at this point I'm not sure if I'm ever going to have time for it. But I would like to see it happen. |
There was a plan to refactor the lib to be object oriented. Then it would be easier to such things as migrating data. |
Yes, that's exactly what I was referring to as "overhauling the Glyphs data handling". |
Activate link to googlefonts/glyphsLib#74
Fixed in #244 |
🍰 |
Activate link to googlefonts/glyphsLib#74
Activate link to googlefonts/glyphsLib#74
Activate link to googlefonts/glyphsLib#74
Activate link to googlefonts/glyphsLib#74
Activate link to googlefonts/glyphsLib#74
Activate link to googlefonts/glyphsLib#74
It would be extremely helpful for me to be able to convert UFO files directly to glyphs format.
I realize from informal conversation that many of the internals necessary are in place or close; it wasn''t clear what remains.
I'm thinking primarily of the need to handle single UFOs, not multiple masters, although obviously that would be useful in the long run.
The text was updated successfully, but these errors were encountered: