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

Fontbakery should perform some default actions #4183

Open
justinpenner opened this issue Jun 14, 2023 · 3 comments
Open

Fontbakery should perform some default actions #4183

justinpenner opened this issue Jun 14, 2023 · 3 comments
Assignees
Labels
Tool improvement Desirable but not crucial for the tool

Comments

@justinpenner
Copy link

In reference to Dave's recent TypeDrawers thread requesting feedback on how to make Fontbakery better for type designers who may want to use it, but perhaps find it intimidating, hard to install, or hard to use.

As a casual/occasional user of Fontbakery, I find it to be a bit of a pain looking up and writing all the command line flags just to perform some basic actions. I think there should be some sane default actions that are performed if only the check profile is specified.

For example, if I run fontbakery check-universal, it responds with No applicable files found, which is confusing since I have plenty of .ttf files in the current folder. If no flags/parameters are entered after check-xxxx, it would be sensible to me if it simply runs on all font files (ttf/otf/woff/woff2/etc) in the current folder, with the default log level, and outputs to some default formats like gh-markdown and html.

Further to this idea, it would be useful if those default actions could be overriden with a config file in the current folder, and perhaps a default config file somewhere else on the user's system.

@davelab6
Copy link
Contributor

Thanks for posting this @justinpenner

@simoncozens
Copy link
Collaborator

Agree. I also think that the fontbakery CLI is completely unintuitive. For example:

fontbakery check-profile myprofile.py --html report.html font.ttf

does not work; it needs to be

fontbakery check-profile --html report.html myprofile.py font.ttf

even though conceptually check-profile *profilename* is more tightly coupled than *profilename* *fontname*.

As well as having some default settings (I'm forever running checks and then looking for the report file, only to find that it gave me a long output on the terminal but never saved anything because I forgot to ask it to), I think putting the rest of the settings - report format and output filename, profile name to be checked, etc. - into a config file would make the user experience much easier.

@felipesanches felipesanches added this to the 0.9.0 milestone Jun 15, 2023
@felipesanches felipesanches added the Tool improvement Desirable but not crucial for the tool label Jun 15, 2023
@davelab6
Copy link
Contributor

davelab6 commented Jun 16, 2023

We may need to manage the migration process, eg have a new fontbakery-nextgen command line for say 3 months, with the new args/order/defaults, and also a fontbakery-legacy command with the old ones, alias the fb command to the legacy one, and then after 3 months remap the alias.

Also, alert users that this is coming in the stdout, install messages, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tool improvement Desirable but not crucial for the tool
Projects
None yet
Development

No branches or pull requests

4 participants