BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: BT81x CustomFont using unicode  (Read 11158 times)

JuergenD

  • Newbie
  • *
  • Posts: 5
    • View Profile
BT81x CustomFont using unicode
« on: March 06, 2019, 07:33:13 PM »

Hello,

we try to get the BT81x run with a font set, contained in the BT81x flash. We converted the font set with the asset tool, loaded the glyph to 4096 ff and the .xfont to G-Ram, put this to flash_fast. So far so good.

The font basically  works, but it does not show up all characters, although they are contained in the font set. (we talk about characters on the first byte, 0 - 0xFF).

A small test program, displaying characters between 0 to 255 (using CMD_TEXT) should show everything, containing in the font set which is mapped in this range.

But it it shows characters between 0 to 190 properly, above it  shows  wrong characters (which is in the font set but on a different mapping), some show up nothing and some cause a crash on the BT81x and needs a reset.(which are some extra characters used for German language)

Seems that the xfont file points to the wrong glyph,  or to no-where.

the source font set works under windows with all characters properly and seems to be correct. The font set is completely converted with the asset manager (without the .txt file)

Is this a known issue, maybe of your font conversion tool?

What can I do, need the German extra characters mapped to the 'correct' codes.


Has anybody tried getting a unicode font set in the complete range (we talk about 1 Byte, 0 to 0xFF) wit the right mapping to work with CMD_TEXT?  What can I do, did I miss something?

would really appreciate your help. Tried to contact your support per mail, unfortunately no response so far.

Juergen
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 744
    • View Profile
Re: BT81x CustomFont using unicode
« Reply #1 on: March 11, 2019, 03:18:13 PM »

Hello Juergen,

We're currently investigating this and will continue our discussion by email at the moment and we'll post an update here once we have closed the issue for other users to refer to in future. We'll send you another email in case you missed our first reply.

Best Regards,
BRT Community
Logged

pauljiao

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: BT81x CustomFont using unicode
« Reply #2 on: April 12, 2019, 07:24:27 AM »

It may be caused by bitmap limitation of ASTC format in flash. ASTC bitmaps in flash must be 64-bytes aligned. In particular , fonts in flash must use a multiple of four ASTC blocks per character.   So the suggestion is to load the glyph into RAM_G and change the offset 32(start_of_graphics_data) of xfont to the glyph address of RAM_G. The glyph in RAM_G has no such limitation and it shall work.
Logged