root/include/font.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef FONT_H
   2 #define FONT_H
   3 
   4 // CHDK Font interface
   5 
   6 // Note: used in modules and platform independent code. 
   7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values)
   8 
   9 //-------------------------------------------------------------------
  10 #define FONT_CP_WIN     0
  11 #define FONT_CP_DOS     1
  12 
  13 #define  FONT_CP_WIN_1250       0
  14 #define  FONT_CP_WIN_1251       1
  15 #define  FONT_CP_WIN_1252       2
  16 #define  FONT_CP_WIN_1253       3   /* 1253 (Greek) */
  17 #define  FONT_CP_WIN_1254       4
  18 #define  FONT_CP_WIN_1257       5
  19 
  20 //-------------------------------------------------------------------
  21 extern void font_set(int codepage);
  22 extern unsigned char *get_current_font_data(unsigned char ch);
  23 
  24 extern unsigned char fontdata_lookup[];
  25 
  26 extern int rbf_load_symbol(char *file);
  27 extern void rbf_load_from_file(char *file, int codepage);
  28 extern int rbf_font_height();
  29 extern int rbf_symbol_height();
  30 extern int rbf_char_width(int ch);
  31 extern int rbf_symbol_width(int ch);
  32 extern int rbf_str_width(const char *str);
  33 extern void rbf_set_codepage(int codepage);
  34 extern int rbf_draw_char(int x, int y, int ch, twoColors cl);
  35 extern int rbf_draw_symbol(int x, int y, int ch, twoColors cl);
  36 extern int rbf_draw_string(int x, int y, const char *str, twoColors cl);
  37 extern int rbf_draw_clipped_string(int x, int y, const char *str, twoColors cl, int l, int maxlen);
  38 extern int rbf_draw_string_len(int x, int y, int len, const char *str, twoColors cl);
  39 extern int rbf_draw_string_right_len(int x, int y, int len, const char *str, twoColors cl);
  40 extern int rbf_draw_menu_header(int x, int y, int len, char symbol, const char *str, twoColors cl);
  41 extern void rbf_enable_cursor(int s, int e);
  42 extern void rbf_disable_cursor();
  43 
  44 //-------------------------------------------------------------------
  45 #endif
  46 

/* [<][>][^][v][top][bottom][index][help] */