How do I use a custom font with u8glib?

I knew how to do this at one time but have since forgot. Where do I place the font file so the u8glib library can access it?

Just place the generated font into your sketch itself (copy/paste). Use the font name as argument for "setFont".

Oliver

I must have hit my head or something. In what fashion would I "place it in the sketch"?

The font should look like this:

const u8g_fntpgm_uint8_t u8g_font_4x6r[734] U8G_FONT_SECTION("u8g_font_4x6r") = {
  1,4,6,0,255,5,1,3,1,250,32,127,255,5,255,5,
  255,7,0,64,18,21,69,128,128,128,0,128,5,50,66,160,
  160,2,69,69,160,240,160,240,160,1,54,70,64,224,192,32,
  224,64,2,53,69,128,32,64,128,32,2,69,69,64,160,64,
  160,80,21,18,66,128,128,17,38,70,64,128,128,128,128,64,
  1,38,70,128,64,64,64,64,128,2,53,69,160,64,224,64,
  160,2,53,69,64,64,224,64,64,1,34,66,64,128,4,49,
  65,224,18,17,65,128,2,53,69,32,32,64,128,128,2,53,
  69,64,160,224,160,64,2,53,69,64,192,64,64,224,2,53,
  69,64,160,32,64,224,2,53,69,224,32,64,32,192,2,53,
  69,160,160,224,32,32,2,53,69,224,128,192,32,192,2,53,
  69,96,128,192,160,64,2,53,69,224,32,64,128,128,2,53,
  69,96,160,64,160,192,2,53,69,64,160,96,32,192,18,20,
  68,128,0,0,128,1,37,69,64,0,0,64,128,2,53,69,
  32,64,128,64,32,3,51,67,224,0,224,2,53,69,128,64,
  32,64,128,2,53,69,192,32,64,0,64,2,53,69,96,160,
  160,128,96,2,53,69,64,160,224,160,160,2,53,69,192,160,
  192,160,192,2,53,69,64,160,128,160,64,2,53,69,192,160,
  160,160,192,2,53,69,224,128,192,128,224,2,53,69,224,128,
  192,128,128,2,53,69,96,128,160,160,96,2,53,69,160,160,
  224,160,160,2,53,69,224,64,64,64,224,2,53,69,32,32,
  32,160,64,2,53,69,160,160,192,160,160,2,53,69,128,128,
  128,128,224,2,53,69,160,224,224,160,160,2,53,69,32,160,
  224,160,128,2,53,69,64,160,160,160,64,2,53,69,192,160,
  192,128,128,1,54,70,64,160,160,160,64,32,2,53,69,192,
  160,192,160,160,2,53,69,96,128,64,32,192,2,53,69,224,
  64,64,64,64,2,53,69,160,160,160,160,224,2,53,69,160,
  160,160,224,64,2,53,69,160,160,224,224,160,2,53,69,160,
  160,64,160,160,2,53,69,160,160,64,64,64,2,53,69,224,
  32,64,128,224,18,37,69,192,128,128,128,192,2,53,69,128,
  128,64,32,32,2,37,69,192,64,64,64,192,5,50,66,64,
  160,1,49,65,224,21,34,66,128,64,2,52,68,96,160,160,
  96,2,53,69,128,192,160,160,192,2,52,68,96,128,128,96,
  2,53,69,32,96,160,160,96,2,52,68,64,160,192,96,2,
  53,69,32,64,224,64,64,1,53,69,96,160,96,32,192,2,
  53,69,128,192,160,160,160,2,53,69,64,0,192,64,224,1,
  54,70,32,0,32,32,32,192,2,53,69,128,160,192,160,160,
  2,53,69,192,64,64,64,224,2,52,68,160,224,160,160,2,
  52,68,192,160,160,160,2,52,68,64,160,160,64,1,53,69,
  192,160,192,128,128,1,53,69,96,160,160,96,32,2,52,68,
  160,192,128,128,2,52,68,96,192,32,192,2,53,69,64,224,
  64,64,32,2,52,68,160,160,160,96,2,52,68,160,160,160,
  64,2,52,68,160,160,224,160,2,52,68,160,64,64,160,1,
  53,69,160,160,96,32,192,2,52,68,224,32,64,224,1,54,
  70,32,64,192,64,64,32,18,21,69,128,128,128,128,128,1,
  54,70,128,64,96,64,64,128,5,66,66,80,160,255};

This is plain c-code and can be pasted into your sketch file (.ino). Here, the name is "u8g_font_4x6r", which can be used as argument for setFont.

Oliver

I see. Thank you.