Friday, February 23rd 2018, 3:23am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Jay Doyle


Date of registration: Aug 13th 2013

Posts: 1

Location: The Netherlands

Occupation: Engineer


Tuesday, August 13th 2013, 4:01pm

External XBF Font Files / Character Caching

We have started using XBF font files stored on an external uSD cards (using emFile) as a means of supporting the full Unicode character set without having to load the entire font into SDRAM (which we cannot do because of the size of the font with all the Unicode characters.) The solution works fine in the sense that we can render any Unicode character, but the performance is terrible especially since we are constantly writing the same strings with the same characters. Is there any way to cache a small set of character data read from the XBF file so that we don't have to re-read it from the file every time we write the same string? I can tolerate a slow initial read from the external XBF file, but constantly having to re-read the data makes our application intolerably slow.

Date of registration: May 26th 2009

Posts: 1,022


Wednesday, August 14th 2013, 9:20am


Currently there is no internal caching function for XBF fonts, but you can of course use your GetData() function to buffer characters in order to avoid re-reading them from external memory.

Best regards,