|
Post by powersoft on May 31, 2018 0:51:31 GMT -8
Installed the Asset manager on a fresh Raspberry Pi, without any complains. After running gd2asset -f digital7.ttf I get the Assets report. I add a screenshot. Why this strange behavior ?
|
|
|
Post by jamesbowman on Jun 4, 2018 18:59:59 GMT -8
You can get gd2asset help by giving it "-?" as an argument:
$ gd2asset -? usage: gd2asset <options> <assets> gd3asset <options> <assets>
-3 target GD3 (FT810 series) - set by gd3asset -d dither all pixel conversions -f <name> output asset file (default is header file) -o <name> output header file
If no output header file is given, then "default_assets.h" is used
Each asset is a filename, optionally followed by some var=val assignments. For example: pic1.png image, format ARGB4 pic2.jpg,format=L8 image, format L8 serif.ttf,size=16 font, 16 pixels high
Options various file types:
jpg,png,bmp,gif: format L1 L2 L4 L8 RGB332 ARGB2 ARGB4 RGB565 ARGB1555. Default ARGB4
ttf,otf size height in pixels. Default 12 format L1 L2 L4 L8 RGB332 ARGB2 ARGB4 RGB565 ARGB1555. Default ARGB4 firstchar first ASCII code encoded. Default 32 topchar maximum ASCII code encoded. Default 127 charset set of characters to encode (overrides topchar)
wav (no options)
The assets are compiled into flash, or if the "-f" option is given into a file. In this case the file should be copied to the microSD card. In either case, calling LOAD_ASSETS() from the program loads all assets.
In this case "-f" is followed by a project name, so gd2asset used digital7.ttf as the project name. You probably want something like:
gd2asset -f myproject digital7.ttf
|
|
|
Post by powersoft on Jun 5, 2018 22:38:34 GMT -8
Thanks, this was very helpfull. It is now running well on my RPI3
|
|