187
Comment:
|
1380
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#acl FriedemannBunjes:read,write,delete,revert All:read #format wiki #language en #pragma section-numbers 2 |
|
Line 2: | Line 7: |
<<TableOfContents(2)>> == doxygen generated API reference == The automatically generated class reference can be read at [[http://134.2.114.11/nrec/hierarchy.html|this location]]. It has been generated with the nice [[http://www.stack.nl/~dimitri/doxygen/|doxygen]] tool. |
|
Line 5: | Line 15: |
A diagram showing some of the nrec objects and their relationships is here: | A diagram showing some of the nrec objects and their relationships: |
Line 7: | Line 18: |
== Using Font Primitives == nrec uses a special bitmap file format (.bmf) for fonts. There is a command line tool called ttf2bmf that can be used to convert ttf font files into bmf files. The font size specified defines the file size and the resolution of the font bitmaps and defaults to 12. Usage: {{{ ./ttf2bmf fontfile outputfile [fontsize] }}} Examples: {{{ $ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf 24 ./ttf2bmf: Wrote default.bmf, 256 by 256 pixels. $ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf 10 ./ttf2bmf: Wrote default.bmf, 256 by 64 pixels. $ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf 48 ./ttf2bmf: Wrote default.bmf, 256 by 1024 pixels. $ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf ./ttf2bmf: Wrote default.bmf, 256 by 128 pixels. }}} |
Design Concepts
1. doxygen generated API reference
The automatically generated class reference can be read at this location. It has been generated with the nice doxygen tool.
2. Object Model
A diagram showing some of the nrec objects and their relationships:
3. Using Font Primitives
nrec uses a special bitmap file format (.bmf) for fonts. There is a command line tool called ttf2bmf that can be used to convert ttf font files into bmf files. The font size specified defines the file size and the resolution of the font bitmaps and defaults to 12.
Usage:
./ttf2bmf fontfile outputfile [fontsize]
Examples:
$ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf 24 ./ttf2bmf: Wrote default.bmf, 256 by 256 pixels. $ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf 10 ./ttf2bmf: Wrote default.bmf, 256 by 64 pixels. $ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf 48 ./ttf2bmf: Wrote default.bmf, 256 by 1024 pixels. $ ./ttf2bmf LucidaTypewriterRegular.ttf default.bmf ./ttf2bmf: Wrote default.bmf, 256 by 128 pixels.