BRT Community

Please login or register.

Login with username, password and session length
Advanced search  


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: accessing custom font Glyphs in Flash  (Read 61 times)


  • Newbie
  • *
  • Posts: 6
    • View Profile
accessing custom font Glyphs in Flash
« on: January 13, 2021, 07:54:01 PM »

Currently I am setting the “start_of_Graphic_data”  (p + 32),  to the location of where the glyph file is in RAM.

        local Xfont = assetLoader.ImageInfo[xfont].index;
        local Glyph = assetLoader.ImageInfo[glyph].index;
        MCU_WriteMem32(Xfont + 32, Glyph);

For a glyph stored in Flash ([0x02F000 -> 0x057000]) for instance,
How would I compute the flash address to store in the “start_of_Graphic_data”  ?
Is there anything else I need to modify in the xfont (Font Metrics Block)?



  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: accessing custom font Glyphs in Flash
« Reply #1 on: January 20, 2021, 02:38:54 AM »

If the glyph is in ASTC and stored in flash, the address shall offset from 0x800000.
See the picture from programming guide