Jump to content

Loading fonts from external flash: RLE vs BW


Recommended Posts

We managed to pack the arrays and structures of the c font file in a binary form. We are also able to load and unload such "binary" fonts into uGFX during runtime. My question is: how can we distinguish if the binary data in the font file is a RLE or a BW one based on the properties in struct mf_font_s? I assume that if the flags value is 2 (MF_FONT_FLAG_BW), then the file is a BW. RLE has flags value set to 0. Is this correct?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...