cancel
Showing results for 
Search instead for 
Did you mean: 

How touch trans a unicode charater into "C" code array? While the same size have different array lenth.

cyneer
Associate II

Hi,all!

I'm trying to use touchGFX to index all charaters in a self-make TFT type file.While I found that touchGFX designer trans differnt charater into different "C" code length array as the following :

//---------font type in -20_4bpp----that created by touchGFX----Roboto condensed Regular-----------

  // Unicode: [0x0029, parenright]

  0x48, 0x00, 0x00, 0xF6, 0x03, 0x00, 0xC0, 0x0C, 0x00, 0x40, 0x5F, 0x00, 0x00, 0xBE, 0x00, 0x00,

  0xFA, 0x01, 0x00, 0xF7, 0x05, 0x00, 0xF4, 0x08, 0x00, 0xF3, 0x0A, 0x00, 0xF1, 0x0B, 0x00, 0xF1,

  0x0C, 0x00, 0xF1, 0x0B, 0x00, 0xF2, 0x0A, 0x00, 0xF4, 0x08, 0x00, 0xF6, 0x05, 0x00, 0xFA, 0x01,

  0x00, 0xCE, 0x00, 0x40, 0x5F, 0x00, 0xB0, 0x0D, 0x00, 0xF5, 0x03, 0x00, 0x58, 0x00, 0x00,

  // Unicode: [0x002A, asterisk]

  0x00, 0xB0, 0x0A, 0x00, 0x00, 0xB0, 0x09, 0x00, 0x43, 0xA0, 0x09, 0x15, 0xF8, 0xDD, 0xDC, 0x6F,

  0x30, 0xF9, 0x8F, 0x03, 0x00, 0xE8, 0x4F, 0x00, 0x30, 0x5F, 0xE9, 0x00, 0x90, 0x0C, 0xF1, 0x06,

  0x00, 0x02, 0x20, 0x00,

  // Unicode: [0x002B, plus]

  0x00, 0x00, 0x89, 0x00, 0x00, 0x00, 0x00, 0xEF, 0x00, 0x00, 0x00, 0x00, 0xEF, 0x00, 0x00, 0x00,

  0x00, 0xEF, 0x00, 0x00, 0x00, 0x00, 0xEF, 0x00, 0x00, 0xF5, 0xFF, 0xFF, 0xFF, 0x4F, 0xB4, 0xBB,

  0xFF, 0xBB, 0x3B, 0x00, 0x00, 0xEF, 0x00, 0x00, 0x00, 0x00, 0xEF, 0x00, 0x00, 0x00, 0x00, 0xEF,

  0x00, 0x00, 0x00, 0x00, 0xEF, 0x00, 0x00,

  // Unicode: [0x002C, comma]

  0xC0, 0x0C, 0xE0, 0x0F, 0xF0, 0x0B, 0xF3, 0x05, 0xE6, 0x00,

  // Unicode: [0x002D, hyphen]

  0x82, 0x88, 0x08, 0xF4, 0xFF, 0x1F,

  // Unicode: [0x002E, period]

  0x00, 0x00, 0xFA, 0x05, 0xFA, 0x05,

  // Unicode: [0x002F, slash]

  0x00, 0x00, 0xF5, 0x03, 0x00, 0x00, 0xEA, 0x00, 0x00, 0x00, 0x9E, 0x00, 0x00, 0x30, 0x5F, 0x00,

  0x00, 0x80, 0x0F, 0x00, 0x00, 0xD0, 0x0B, 0x00, 0x00, 0xF1, 0x06, 0x00, 0x00, 0xF6, 0x02, 0x00,

  0x00, 0xDB, 0x00, 0x00, 0x00, 0x8F, 0x00, 0x00, 0x40, 0x4F, 0x00, 0x00, 0x90, 0x0F, 0x00, 0x00,

  0xE0, 0x0A, 0x00, 0x00, 0xF2, 0x05, 0x00, 0x00, 0xF7, 0x01, 0x00, 0x00, 0xCC, 0x00, 0x00, 0x00,

//---------font type in -20_4bpp----that created by touchGFX----Roboto condensed Regular-----------

what I wanna to do is to use a SD card to store TFT typed like files,and use the files system to index all charater in that file and put it on my LCD screen.This was what I used to do in other emdebed GUI such as emWIN.

However, TouchGFX seems no have provied this interface so I have to do it by myselfs.Now I'm confused about the transformtion about unicode above.

Could someone soled this problem?I'm long for your time and appreciated for you gental to answer my qustion!

3 REPLIES 3
Martin KJELDSEN
Chief III

Hi @cyneer​ ,

Are you doing this because of flash constraints? Version 4.11.0 of TouchGFX will support something like this where you can place your glyph pixel data anywhere you want (e.g. SD card) and load them dynamically to display texts on screen.

Best regards,

Martin

Thanks Martin,For one reason is that touch GFX Verson 4,10 have to put fonts and load it to SDRAM by myself.Another is than I wanna to develop someting like E-book or file browser,that will need some kind of different fonts and will change by time.TouchGFX seems no have support for this yet.

Thank you for your mention ,I'll check it later..

Just to give you an update here. 4.11.0 still isn't released, even though it's been ready for quite some time. We are awaiting other internal deadlines.

In the meantime, have you made any other progress on this?