This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2650EM-7ID-RD: Help required in understanding Fontfixed6x8.c

Part Number: CC2650EM-7ID-RD
Other Parts Discussed in Thread: MSP430WARE

Tool/software: TI-RTOS

I am trying understand the contents of Fontfixed6x8.c, unable to correlate the font data with the actual characters. The snippet of which is pasted below:

static const uint8_t g_pucFontFixed6x8Data[760] =
{
  8,   6,   0,   0,   0,   0,   0,   0,   //Space

 8,   6,  32, 130,  8,   0,   2,   0,   //!

 8,   6,  81,  69,   0,   0,   0,   0, //"

 8,   6,  81,  79, 148, 249,  69,   0, //#  

..

..

..}

I understand that first two bytes corresponds to height and width, I am not clear on what basis the other bytes are derived for e.g (81,  79, 148, 249,  69,   0) for '#'.

Please clarify

  • Hi Naveen,

    The graphics library is more or less borrowed from MSP430Ware, for the 430BOOST-SHARP96 boosterpack in particular.

    The above site is all I could find for documentation. The API documentation has a small section about fonts:  

    There is also a repository on GitHub where someone has uploaded converted open source fonts:

    Finally there is a post where a user describes making a font and has uploaded a conversion tool:
     

    If this doesn't help you I would suggest you post on the Tiva or MSP430 forum here on E2E as they would have more direct experience with this.

    Best regards,
    Aslak

  • Hi Aslak,

    Thanks for sharing this information.

    I am yet to understand the correlation between these fonts data, actual character and pixel mapping.

    I will give another try by posting on the Tiva forum.

    Thanks again

    Naveen