Using sif font file in addressable external flash like memory mapped QSPI

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Using sif font file in addressable external flash like memory mapped QSPI

      hi
      When using c font file ( crated by font converter) there is no problem for the linker to reference the font structure since it is linked and compiled at run time.
      We need to update the fonts at run time into an addressable flash (QSPI), means the font structure is not available when we compile and ling the firmware.
      We also prefer to run the fonts directly from the flash without loading them to the RAM since we have small RAM and large fonts.
      We thought sif files will solve our problem, but the location of the data is different than the location in the compatible C file.
      How can we link a sif file into our project.
      Thanks

      Rona
    • Hi,

      You could use our tool Bin2C.exe to convert a binary file into a c-array. This array can be compiled along with the other files in your project.

      For large fonts I recommend to xbf fonts. xbf fonts use some sort of a look up table to find a character in a font. This requires only two files accesses. With sif fonts emWin will search the complete font to find a character. Especially with large fonts it might take a while to find a character if the character is at the end of the font.

      The Bin2C tool can be found here:
      segger.com/downloads/emwin/

      Simply drag and drop the binary file on the exe. the tool will create a c-file beside the original file.

      Regards,
      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.