srilakshmikanthanp/libfiglet
Use this library to Generate large text out of ordinary text akin to popular program FIGlet with C++ Easily!
libfiglet
Figlet For C++
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
About The Project
This is Figlet Library for C++ to generate Large text out of ordinary text like this,
_ _ _ _ ____
| | | | ___| | | ___ / ___| _ _
| |_| |/ _ \ | |/ _ \ | | _| |_ _| |_
| _ | __/ | | (_) | | |__|_ _|_ _|
|_| |_|\___|_|_|\___( ) \____||_| |_|
|/
Getting Started
Project Scope
This Project currently only works With ASCII Characters and it currently does not support Unicode Characters (at least flf font parser).
Installation
Starting with version 1.3.0 the library is no longer header-only But you generate the header file using quom and then you can use it in your project.
- Clone the repo from the GitHub
git clone https://github.com/srilakshmikanthanp/libfiglet.git- Install the quom with pip
pip install --user quom- Generate Include Files
mkdir dist && quom ./src/srilakshmikanthanp/libfiglet.hpp ./dist/libfiglet.hpp- Use the header file in your project
Usage
Usage of This Library is very easy a Hello C++ would be,
#include "libfiglet.hpp"
#include <iostream>
using namespace srilakshmikanthanp::libfiglet;
int main()
{
const figlet figlet(flf_font::make_shared("./path/to/font"), smushed::make_shared());
std::cout << figlet("Hello, C++");
}
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Project Link: https://github.com/srilakshmikanthanp/libfiglet