Commit Graph

7 Commits

Author SHA1 Message Date
Michael Drake
4c9a9f24f9 Tidy up the #defines used for setting particular codepoint bits.
Align the definitions correctly.
  #undef them after they're used.
2014-06-02 15:49:44 +01:00
Michael Drake
a2c0e05197 Avoid use of math.h
To update the generated source file, first build the converter:

      $ gcc -O2 -Wall framebuffer/convert_font.c \
          -o build-Linux-framebuffer/tools/convert_font

  And then use it to generate the souce file:

      $ build-Linux-framebuffer/tools/convert_font \
          framebuffer/res/fonts/glyph_data \
          framebuffer/GEN_font_internal.c
2014-06-02 14:22:41 +01:00
Michael Drake
31c3f4b81d Remove unused #define 2014-06-02 14:01:31 +01:00
Michael Drake
0f6fd6b800 Add an extra logging verbosity level.
Now, when run without arguments, the final result is printed.
2014-06-02 13:16:25 +01:00
Michael Drake
5abfbba049 Make the glyph style more readable in the debug output. 2014-06-02 13:08:25 +01:00
Michael Drake
56556a677e Detect bad line endings and print error. 2014-06-01 20:37:26 +01:00
Michael Drake
4cbc56ebc1 Add Unicode support to internal font.
+ Now contains more glpyhs (was previously limited to cp-1252).
  + When a glyph is unavailable, the codepoint is now rendered.
  + Added glyph data file.
  + Added converter to generate the font's .c file from the data.

TODO:

  The generated file is currently checked into the repo, but it
  should be generated as part of the build process, in the
  build-* directory.

  To update the generated source file, first build the converter:

      $ gcc -O2 -Wall framebuffer/convert_font.c -lm \
          -o build-Linux-framebuffer/tools/convert_font

  And then use it to generate the souce file:

      $ build-Linux-framebuffer/tools/convert_font \
         framebuffer/res/fonts/glyph_data \
         framebuffer/GEN_font_internal.c -v

  The converter's usage is:

     convert_font [options] <in_file> <out_file>

  See convert_font --help for more details.
2014-05-06 21:31:05 +01:00