linebender / runebender

A font editor written in Rust.
Apache License 2.0
765 stars 37 forks source link

Various suggestions #224

Open davelab6 opened 3 years ago

davelab6 commented 3 years ago

I have a fresh macOS so went through this fresh, and played with it and took notes on things that occurred to me as I was playing for about 90 minutes... I'm sure many of these things are already known and on the roadmap, but hopefully that I noticed them can be helpful for prioritization :)

I think this should be stated in the README, just in case people from the type community who will be up for an adventure running stuff in Terminal, but don't know the pre-reqs implicitly, can get started.

This is what I saw:

Screen Shot 2021-02-17 at 19 25 27 Screen Shot 2021-02-17 at 19 25 41 Screen Shot 2021-02-17 at 19 26 42 Screen Shot 2021-02-17 at 19 26 49 Screen Shot 2021-02-17 at 19 27 38 Screen Shot 2021-02-17 at 19 27 48 Screen Shot 2021-02-17 at 19 27 52 Screen Shot 2021-02-17 at 19 58 27 Screen Shot 2021-02-17 at 19 50 38 Screen Shot 2021-02-17 at 20 06 38

Then I go, App, Quit Runebender, then run it again, and File, Open, and it opens my UFO and I see my existing glyph data as expected :)

If run the app, and close the first glyph window, I get this INFO in console, and File, Open, no longer opens the Open dialog; and many of the pull down menu items are still active, although obviously inert.

$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.30s
     Running `target/debug/runebender`
DEBUG [druid::localization] available locales [], current en-US
DEBUG [druid::localization] resolved: [en-US]
INFO  [druid_theme_loader::widget] loaded 45 items to theme
INFO  [runebender_lib::app_delegate] window WindowId(1) is not an editor window
Screen Shot 2021-02-17 at 20 23 34
0xpr03 commented 3 years ago

Also how do I get some example .ufo files ? I was just curious about this project and searching the web didn't show much about where you can get some (free?) .ufo font files.

alerque commented 3 years ago

Try babelfont to convert any font in nearly any format into a UFO. FontForge and many other font editors can also do this conversion. There are also plenty of open source fonts that use UFO sources, for example Raleway and some of the others from @theleagueof.

Do note that Runebender currently will not play nicely with UFOs created in other editors. It currently refuses to save them for fear of overwriting some bit of them it didn't understand. You can only save fonts that were created in Runebender. Try Baby Shark for an existing open source project with UFOs created in Runebender so they are easier to play with.

0xpr03 commented 3 years ago

Try Baby Shark for an existing open source project with UFOs created in Runebender so they are easier to play with.

How do I open this with runebender ? There is no .ufo file inside, or do I have to convert it ?

alerque commented 3 years ago

UFOs are not files, they are directories. On some platforms such as macOS they can appear as "packages" where the finder presents the entire directory as an object, but Linux for example doesn't support this.

Runebender expects the path to the UFO directory as the first argument. For example if testing out Runebender from a Git clone of this project, you can compile and run it like this (using your path to the Baby Shark projct).

$ cargo run -- ~/projects/github/baby-shark/sources/BabyShark-Regular.ufo

Note that on Linux at least the File→Open selection dialog box is broken and you can't select UFOs. See #108 for the relevant bug tracking issue.

0xpr03 commented 3 years ago

Ah ok, I know there is a folder-selection dialog in windows, but currently that isn't shown, only the "file selection" dialog for .ufo files.

cmyr commented 3 years ago

Oops, had a comment in here from a few days ago that didn't get posted: in any case: good notes dave, happy to have new eyes on things. A lot of the stuff you touch on is definitely important, and it's nice to see it enumerated.

On the file opening: good to be reminded of this, I've definitely been principally been working on macOS the last half-year or so.

eliheuer commented 3 years ago

@davelab6 The magenta fill color thing is fixed in this PR, note how easy this is with the theme system! People can make PRs like this without touching any Rust code: https://github.com/linebender/runebender/pull/246/files

davelab6 commented 3 years ago

nice :)

davelab6 commented 3 years ago

Going over Zulip, I see @eliheuer mentioned wanting

a way to keep the off-curve points horizontal or vertical

I think this is useful for both regular and hyper beziers :)