2020-06-22 06:12 AM
Hello, if I create a partial project from CubeMX, open it in TouchGFX designer, add a button and run the simulator, nothing happens. The simulator executable is built correctly, but it exits immediately with no errors reported.
2020-06-24 08:24 AM
Could you help with other issues our UI engineer has found:-
2020-06-25 01:09 AM
Hi,
What do you mean by export screens as PNG files? What are you aiming to do? Like a screenshot?
For the font issue, what did you try? Where did you "install it"? The documentation might help you handle fonts and textArea widgets..
Anything drawn can be clickable. Have a look at how handleClickEvent works, or at the ClickListener mixin class.
/Romain
2020-06-25 01:32 AM
Hi Romain,
1. Yes, for a screenshot of each screen design
3. New OTF fonts installed and useable in other Windows applications. It looks like you only support TTF fonts, which is a showstopper for me.
4. Thanks, will try that
2020-06-25 03:18 AM
Still a bit confused about the screenshot thing, press F3 to take a screenshot, it will be placed under the screenshots folder. Or why don't you use the snipping tool?
The Font converter tool accepts ttf but also otf and bdf. Did you add your font to the right folder ?
2020-06-25 03:48 AM
Thanks, screenshots via simulator is fine. Was expecting direct export from designer along with code.
Windows Font Settings indicate that it installed the files to c:\User\...\AppData\Local\Microsoft\Windows\Fonts, rather than C:\Windows\Fonts (even though they are listed in C:\Windows\Fonts). It's repeatable if you download one from https://www.google.com/get/noto/#sans-hans. The expectation is that all system fonts are available in the combo box in the designer. I manually copied the installed .otf font files into the assets/fonts folder, restarted the designer and it worked (according to https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/texts-and-fonts/#the-font-converter). It feels like a bug that some of the system fonts are not available by default.
2020-06-25 08:43 AM
Moved my next question to this post, as it seems to be related.