Skip to content

Extension for the OLC PGE, that handles different fonts

License

Notifications You must be signed in to change notification settings

gorbit99/OLC-Font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OLC-Font

Extension for the OLC PGE, that handles different fonts

Exporter

Usage:
The exporter part of the software is a command line program. The following is the template for the command:
OlcFontExporter <path> [-f #<color>] [-b #<color>] [-o <output>] [-e <true/false>]
Flags:

  • f Specifies the foreground color
  • b Specifies the background color
  • o Specifies the output file
  • e Specifies if error should be thrown on unknown color

By default the output file will be named "output.of"
Color should be given in hexadecimal format with a preceding hashtag in the order of #rrggbbaa

Loader

A Font object can be created with olc::Font(path-to-file). After this, calling Font#DrawString(x, y, text, color, size); draws the text with the specified font.

The aim of this project is to stay faithful to the original font format found in the pixel game engine.

About

Extension for the OLC PGE, that handles different fonts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages