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

Consider add more font examples and usage examples #132

Open
Dentrax opened this issue Nov 18, 2020 · 1 comment
Open

Consider add more font examples and usage examples #132

Dentrax opened this issue Nov 18, 2020 · 1 comment

Comments

@Dentrax
Copy link

Dentrax commented Nov 18, 2020

Currently, none of below are working as expected. I could not understand how to use --font flag in correct way. The fonts that described in README is built-in fonts? Can not we give custom font if it already installed?

  • silicon --from-clipboard -l yaml -f "SourceCodePro"
  • silicon --from-clipboard -l yaml -f "SourceCodePro=15"
  • silicon --from-clipboard -l yaml -f "SourceCodePro:15"

Custom fonts:

  • silicon --from-clipboard -l yaml -f "./Downloads/my-custom-font.tff"

And please describe what the purpose of ; in -f flag. (i.e: -f "Hack; SourceCodePro") What Hack; means? What else can be used there? Like, -f "Nerd; JetBrainsMono=15" are correct?

You give an example in font.rs but it is not included in fonts folder. It would be great if you create a new flag called: --list-available-fonts.

@Aloxaf
Copy link
Owner

Aloxaf commented Nov 21, 2020

Currently, none of below are working as expected. I could not understand how to use --font flag in correct way. The fonts that described in README is built-in fonts? Can not we give custom font if it already installed?

* `silicon --from-clipboard -l yaml -f "SourceCodePro"`

* `silicon --from-clipboard -l yaml -f "SourceCodePro=15"`

* `silicon --from-clipboard -l yaml -f "SourceCodePro:15"`

Custom fonts:

* `silicon --from-clipboard -l yaml -f "./Downloads/my-custom-font.tff"`

Both the first and the second should work. What do you mean "not working as expected"? What's the output of these two commands?

Silicon can use custom fonts. But currently, they need to be installed into the system first. I will improve this.

And please describe what the purpose of ; in -f flag. (i.e: -f "Hack; SourceCodePro")

Just a delimiter.

What Hack; means?

It's the built-in font of silicon.

It would be great if you create a new flag called: --list-available-fonts.

That's a good idea. Thanks for your advice.

Aloxaf added a commit that referenced this issue Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants