GithubHelp home page GithubHelp logo

candela's Introduction

candela

Simple Glyph Bitmap Distribution Format (BDF) font renderer for the console

This has only been tested on one 6x4 font, and will surely not work on large fonts. Needs additional word to support fonts wider than 8 pixels, since it assumes that the bitmaps for each line are only one byte each. It uses a hash (#) character to represent a font pixel.

This implementation was not written for efficiency; it was written in a few hours for fun.

This is intended to be cross-platform C++ requiring only C++98. It has not been tested on anything other than Linux (g++ and clang++), but there is no reason to expect it not to work on any platform, including MS Visual Studio.

To build (on a Unix-like platform):

$ make

To test:

$ make print

To run:

$ ./bdf tom-thumb.bdf "Message to render"

Example outout:

./bdf tom-thumb.bdf "Hello, world!"
# #     ##  ##                          ##    #  #
# #  ##  #   #   #          # #  #   ##  #   ##  #
### # #  #   #  # #         ### # # #    #  # #  #
# # ##   #   #  # #  #      ### # # #    #  # #
# #  ## ### ###  #  #       ###  #  #   ###  ##  #

This work is licensed under the Apache Software License (ASL) version 2.0. Please see LICENSE.txt for details.

candela's People

Contributors

mpercy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.