This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2674R10: font converter for SDK's grlib

Part Number: CC2674R10


Tool/software:

Hi all,

we are using simplelink_cc13xx_cc26xx_sdk_7_40_00_77 for a CC2674R10. A 320x240 TFT is connected via SPI. To drive it, wie use TI/grlib from the SDK.
Everything works as intended.

But now we need a larger font as the ones provided (only numeric digits).

Is there a tool to convert standard font data into grlib's format?

The provided font .c files say "This file is generated by ftrasterize"

But I cannot find ftrasterize in the SDK, and it seems to be a very old tool for the Tiva/Stellaris version of grlib.

Where can I find it, and will it work with the SDK's grlib?

Thanks, Wolfgang

  • Hi, 

    Thank you for reaching out. 

    Here are a few resources you may want to consider: 

    - Other fonts are available on some github folder - maybe worth checking there - https://github.com/cladisch/extra-fonts-for-grlib/tree/master 

    - This user's guide describes the usage of ftrasterize - https://www.ti.com/lit/spmu018 section 13.2 

    - Maybe look into the newest grlib source files what is provided - https://www.gaisler.com/index.php/downloads/grlib 

    Let us know how it goes.

    Best regards, 

  • Thanks.

    The github link might look promising at first sight, but provides very small fonts only. As mentioned, we need larger font as the ones provided, i.e. larger than 48 pixels.

    The gaisler link does not point to "the newest grlib source files" but some unrelated VHDL IP library named grlib.

    I asked for a source of the frasterize tool. It is not in the SDK. I cannot find a download site. Where can I download it?
    It seems to be a very old stellaris tool. Is it maybe contained in a TivaWare/Stellaris SDK?
    And will it even work with the current grlib of simplelink_cc13xx_cc26xx_sdk_7_40_00_77?

  • Hi,

    This user's guide describes the usage of ftrasterize - https://www.ti.com/lit/spmu018 section 13.2 

    May I kindly ask if you have reviewed the section of the User's Guide I have pointed you to? It contains a link to some source code you may be able to use. 

    Best regards, 

  • Yes, I have. The section describes the ftrasterize tool. But this tool is not in the SDK.
    The documentation refers to "Stellaris Graphics Library" and is 11 years old.
    The only link I can find in there is http://www.freetype.org. I do not want to write software to render fonts.

    The font .c files provided in the SDK say "This file is generated by ftrasterize".

    So all I need to know is: where can I download this ftrasterize tool that was used to convert fonts into the proprietary font format used by grlib in the SDK, to convert fonts on my own? It must exist somewhere.

  • Hi, 

    Thank you for your patience, I have zipped for you some source code here: ftrasterize.zip

    I hope this will help,

    Best regards, 

  • I'm afraid it didn't help.

    The contained .c file is not C, but some html stuff.

    The readme shows this is a very early version of ftrasterize of 2010. It has a lot less options than described in the ftrasterize user guide linked above, so it's quite outdated.

    The makefile reveals that ftrasterize depends on some external libraries that it tries to download and build.
    This wouldn't run under a windows system without some work.

    However, as grlib seems to come from Stellaris/Tivaware I downloaded latest TivaWare 2.2.0.295 (April 2020).
    Its tools/bin folder contains ftrasterize.exe, compiled and ready to run.
    The sources are in tool/ftrasterize.

    So the first part of my question "Where can I find it, and will it work with the SDK's grlib" is answered. The 2nd part I'll find out soon. I'm quite confident it will work.