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

Add true support for FIGlet fonts - port FIGlet for Unix to C# #3

Open
Athari opened this issue Feb 25, 2018 · 1 comment
Open

Add true support for FIGlet fonts - port FIGlet for Unix to C# #3

Athari opened this issue Feb 25, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@Athari
Copy link
Owner

Athari commented Feb 25, 2018

Apparently FIGlet font implementation from Colorful.Console is a joke which doesn't support any FIGlet features like smushing and transforms. Slanted fonts look like crap because they're designed to be smushed. All FIGlet implementations in C# and Java seem to be based on the same ancestor from which Colorful.Console's implementation descended too (also almost nobody cares about linking to source, apparently). There're forks with basic smushing, but they're far from complete.

According to FIGlet,org, the reference imlementation is FIGlet for Unix (ftp://ftp.figlet.org/pub/figlet/program/unix/) written in C, which also includes FIGlet specification (which is anything but OSS thanks to non-commercial requirements btw) and "intergation-y" tests. There's also FIGwin (ftp://ftp.figlet.org/pub/figlet/program/windows/) written in VB (and compiled to 16-bit NE .exe file) with a somewhat different feature set (see feature comparison in the "spec"), sources of which are lost in the nether.

The whole FIGlet program is 2K LOC of C, half of which are low-level C utilities, so no longer relevant. Should be pretty easy to port. FIGlet also switched to normal open-source license, New BSD. (It contradicts the requirements from the "spec"... Let's assume it's dual-licensed. Nobody is going to sue over FIGlet anyway.)

@Athari Athari self-assigned this Feb 25, 2018
@Athari Athari added the type:feature Feature label Feb 25, 2018
@Athari Athari added this to the 1.x milestone Feb 26, 2018
@Athari
Copy link
Owner Author

Athari commented Feb 26, 2018

Looks like true FIGlet implementation for .NET exists, it's Figgle (conveniently also licensed Apache 2.0). It supports horizontal smushing according to the spec. Word wrap, transforms and vertical smush aren't implemented. API is weird: internal font constructor, only built-in fonts, no public smush rule enums etc. Well, at least something to compare output with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant