FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Messages - TonyZ

Pages: [1]
1
Discussion - Software / Re: Screen Editor - how to create Font Metric Block
« on: November 05, 2018, 10:11:39 PM »
Hello,

OK, we seem to be going around in circles here. So I'll state my issue a different way:

I wish to add a custom font, and it must be generated in compressed form because I have limited flash memory on my microcontroller to store it.
If I use ESE with the compressed option, then use INFLATE when loading RAMG, it does not work. The characters on the screen look like random bitmaps.
On the other hand, if I use FNT_CVT, this does indeed work, but FNT_CVT does not have a "compressed" option.

Therefore, I either need to figure out why ESE is not producing valid compressed data, or I need to find
a way to compress the output of FNT_CVT.

Any suggestions would be much appreciated.
Tony


2
Hello,

Thank you for your continuous help and support.

So are you saying that using the "compressed" option in ESE generates ONLY the font data without the font metric block, or
are you saying that it generates both the font metric block and font data, but the font metric block portion is corrupt and unusable?

Thank you,
Tony
PS. All my posts still have to be approved by the moderator. Can this restriction be removed? I am a legitimate FTDI customer.

3
Hello,

But in your first reply in this thread, you instructed me to "insure that the compressed option is UNSELECTED". I understood this to mean that
there is a bug in Screen Editor, and that for custom fonts you should not use the compressed option. What am I missing?

Regards,
Tony

4
Thank you.
It would be great if the "Compressed" feature were also fixed in the next release. My custom fonts are using up more than half of my FLASH, and being able to compress
them and then using the INFLATE function would be great.

Regards,
Tony

5
Hi,

Yes, I do see the "1000" in both places as the RAMG starting address. I see this in the code that the Screen Editor exports. This is good!

But my question was that the "1000" does not appear in the font metric block itself. There is a field toward the end of the 148 byte font metric block
that is supposed to hold the RAMG starting address. And the Screen Editor ALWAYS outputs 0 for this field, regardless of the specified starting address you use in Screen Editor.
(note: if I use FNT_CVT to convert a font, then the RAMG starting address does, indeed, show correctly in the font metric block)

Perhaps this field is not used by SETFONT2, since the actual starting address is passed as an argument in the SETFONT2 function. I haven't tried running the code
with an actual LCD screen, so I'm not sure if this matters.

On a related issue, do you know the name of the built-in fonts (ROM fonts) for handles 16, and 26-29. They look like "Ariel", but I wasn't sure.

Thank you,
Tony

6
Hello,
Thank you for your reply.

I had actually already tried unchecking the "compressed" option and I can, indeed, see the metric block at the beginning of the output data. However, the
the starting address of RAMG always appears as 0,0,0,0 regardless of what I set it to in the screen editor. Is this a bug, or is the starting address irrelevant?

Note that I'm using SETFONT2, not SETFONT in my software.

Regards,
Tony

7
Discussion - Software / Screen Editor - how to create Font Metric Block
« on: September 24, 2018, 07:23:17 PM »
Hi all,

Using Screen Editor, I'm able to add a TTF font using the Add Content feature. Then I'm able to add text in this custom font to the window. But when I export the project, only the font data block is created, not the font metric block. Am I missing something? Or do I have to create it manually?

Thanks,
Tony

8
Discussion - Software / Placing graphic icons on buttons
« on: September 20, 2018, 08:15:35 PM »
Hello,

I would like to create a button with a text label as well as a small icon. I attached an example image. Anyone know how I would
go about doing this?

Thanks,
Tony

Pages: [1]