Commit Graph

13 Commits

Author SHA1 Message Date
Vincent Sanders ea033c54d4 Doxygen cleanups 2014-11-10 16:05:22 +00:00
Michael Drake 9a08ec9ad3 Free header_path. 2014-09-06 20:48:06 +01:00
Vincent Sanders a57278f574 fix framebuffer internal font generation 2014-08-20 15:38:34 +01:00
Vincent Sanders ee3247f532 remove logically dead code path (coverity 1231842) 2014-08-18 17:20:28 +01:00
Vincent Sanders 1a71a84b62 cope with error return from ftell (coverity 1231843) 2014-08-18 17:15:57 +01:00
Vincent Sanders 98a4985b30 generate internal font from glyph data on demand 2014-08-17 23:49:06 +01:00
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