Hello,
for all the others there.
I talk as a blind about the colours, but it seems that in NECTO Studio 2.x the Designer uses a different concept for the font setting, compared to the old implementation,
which is, by the way, not upward compatible.
In NECTO Studio 2.x there is a generated file called "resources.h", plus the corresponding .c-file. This needs to be included to use the "gl_set_font" function.
It will be generated from the Designer (?) from the screen files. If you include a font in the screen, you can use it in your code.
Define a label, use your desired font and not the name of the font shown in the properties overview.
- NECTO Studio v2.1.0_FontSetting.png (2.3 KiB) Viewed 832 times
At the beginning of your .c-file set the include instruction like this:
In your code you might use the following instruction now:
Code: Select all
gl_set_font(Arial_Narrow_Regular_10_159_);
This will provide you with the required font. Most of the examples use "my_font" or "test_font". In the previous version of Designer it seems that you can define aliases for fonts, like "my_font". This isn't possible
anymore in this version. Therefore most of the examples will not work under NECTO Studio 2.x