Skip to content

An example which uses stb_truetype to render the entire Bee Movie script into a file

Notifications You must be signed in to change notification settings

PucklaJ/stb_truetype_bee_movie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STB TrueType Bee Movie

This is an example which uses stb_truetype to render the entire Bee Movie script into a file. The Bee Movie script has been extracted from here.

It is based on an example from stb itself, but converted to C++ and upgraded to output the Bee Movie script.

Build

xmake is used to build the example, but since it is so small you can put it into whatever build system you want. Just make sure to add stb_truetype to the include directories. Everything else is default C++11.

Usage

There are some command line arguments. All of them are optional.

bee_movie [font_size] [font_file] [input_string] [output_file]

  • font_size
    • Controls the size of the text in pixels (default is 25)
  • font_file
    • The TTF or OTF file to load (default is /usr/share/fonts/TTF/DejaVuSans.ttf)
  • input_string
    • Renders this string into the output file instead of the Bee Movie script
  • output_file
    • Determines to which file to write the output (default is output.txt)

About

An example which uses stb_truetype to render the entire Bee Movie script into a file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published