I'm building a font editor and want to be able to open .ufo/.designspace files through babelfont-rs. Since wasm doesn't support native file system access and it can't be spoofed to it either, the simple solution is to build a hashmap and have norad open the files through it.
Please see this branch comparison for the changes: https://github.com/linebender/norad/compare/master...yanone:norad:hasmap-loading?expand=1
I would create a PR if you are interested and then babelfont-rs would need its own PR to call the new methods.
Please note that I'm not very familiar with Rust, so feel free to request any changes. It works over here.
cc @simoncozens
I'm building a font editor and want to be able to open
.ufo/.designspacefiles throughbabelfont-rs. Since wasm doesn't support native file system access and it can't be spoofed to it either, the simple solution is to build a hashmap and havenoradopen the files through it.Please see this branch comparison for the changes: https://github.com/linebender/norad/compare/master...yanone:norad:hasmap-loading?expand=1
I would create a PR if you are interested and then
babelfont-rswould need its own PR to call the new methods.Please note that I'm not very familiar with Rust, so feel free to request any changes. It works over here.
cc @simoncozens