readme update 0.2

This commit is contained in:
my 2019-10-29 13:25:46 +01:00
parent a384a7b927
commit c51063359b
1 changed files with 10 additions and 10 deletions

View File

@ -14,11 +14,7 @@ TextRender build exports an interface target TextRender::TextRender.
This means that if TextRender has been installed on the Project Path, it This means that if TextRender has been installed on the Project Path, it
should be enough to do. should be enough to do.
translate a string from terminal to the readable form of FLTK . translate a string from terminal to the readable form of shared memory .
## Usage ## Usage
@ -27,11 +23,15 @@ translate a string from terminal to the readable form of FLTK .
cmake .. cmake ..
make make
## Example ## Description
TextRenderer textRenderer; TextRender has two class, Bitmap class and Font class.
string bitmap = textRenderer.translate(testString); res/font.bmp (bitmap data, used by Bitmap::load() function)
textRenderer.outputInscreen(bitmap); res/font.toml (configuration file, it configure how to read the font.bmp)
src/Bitmap class, it used to load the font.bmp file.
src/Font class, it read the font.bmp data by Bitmap class,
translate a string to a bitmap