Skip to content
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

[tx] Improvements to UFO handling #475

Open
1 of 4 tasks
miguelsousa opened this issue Jul 12, 2018 · 8 comments
Open
1 of 4 tasks

[tx] Improvements to UFO handling #475

miguelsousa opened this issue Jul 12, 2018 · 8 comments

Comments

@miguelsousa
Copy link
Member

miguelsousa commented Jul 12, 2018

  • Replace house-made XML parser (e.g. with libxml2)
  • Support converting between UFO versions
    • anchors
    • glyph colors
  • Change the current -ufo option to write v3 UFOs, or add a new -ufo3 option?
  • ... (to be continued)
@miguelsousa miguelsousa added the tx label Jul 12, 2018
@benkiel
Copy link
Contributor

benkiel commented Jul 12, 2018

Perhaps use ufoLib?

@miguelsousa
Copy link
Member Author

I have no idea. tx is C code.

@benkiel
Copy link
Contributor

benkiel commented Jul 12, 2018

Ah, never mind...

@anthrotype
Copy link
Member

Cython can be used to go the other way around as well and export a C API from a cython module, so that other C programs can call functions defined in python (via cython).
http://cython.readthedocs.io/en/latest/src/userguide/external_C_code.html#c-api-declarations

It’s doable.

@frankrolf
Copy link
Member

Let’s keep in mind that tx is quite fast at converting files, our CJK fonts rely on it quite heavily (correct me if I’m wrong, @kenlunde). It would be a shame to give up the speed benefit.

@kenlunde
Copy link

Not only for converting large fonts, but also for subroutinizing them.

@khaledhosny
Copy link
Collaborator

I think it is rather useful to have another UFO implementation, especially in a language like C which allows it to be used in more places than a pure Python implementation. It might be even a good idea to turn in into an independent library for better re-use, if it isn’t already the case.

@madig
Copy link

madig commented Dec 18, 2019

(https://github.com/linebender/norad is a WIP effort to make a UFO library in Rust for the WIP font editor Runebender)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants