root/lib/font/font_8x16.c

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

DEFINITIONS

This source file includes following definitions.
  1. get_current_font_data
  2. font_set

   1 #include "font_8x16_uni_packed.h"
   2 
   3 //-------------------------------------------------------------------
   4 // Currently selected codepage
   5 static int current_cp = 0;
   6 
   7 //-------------------------------------------------------------------
   8 unsigned char *get_current_font_data(unsigned char ch)
   9 {
  10     // Test for 'common' char?
  11     if (ch < 128)
  12         return font_data + cp_common[ch];
  13     // If not return value from current codepage
  14     return font_data + codepages[current_cp][ch-128];
  15 }
  16 
  17 //-------------------------------------------------------------------
  18 void font_set(int codepage)
  19 {
  20     // Save selected codepage
  21     current_cp = codepage;
  22 }
  23 
  24 //-------------------------------------------------------------------

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