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

How do I add external fonts to be used? #10

Closed
rikashore opened this issue Jun 1, 2021 · 1 comment
Closed

How do I add external fonts to be used? #10

rikashore opened this issue Jun 1, 2021 · 1 comment

Comments

@rikashore
Copy link

I wish to use some external figlet fonts to accompany the current ones available, although the readme doesn't specify how I could do this. Any help is appreciated.

@drewnoakes
Copy link
Owner

Great question. Here's how you would do it:

using var fontStream = System.IO.File.OpenRead("myfont.flf");
var font = FiggleFontParser.Parse(fontStream);
var text = font.Render("Hello World, from My Font");

I added this as an example to the README as well.

If you think those fonts should be added to this library, please comment on #2.

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