2023-11-13 08:09 AM
Hi GFX team,
GFX auto generates Typography/TypographyFontIndex structs in "\generated\fonts\include\fonts\ApplicationFontProvider.hpp"
struct Typography
{
static const touchgfx::FontId DEFAULT = 0;
};
Could you consider adding a tag that would alias type of struct members ie:
struct Typography
{
using type_t = touchgfx::FontId;
static const touchgfx::FontId DEFAULT = 0;
};
This would allow to write eg funtion with Typography as a parameter:
void functUsingTypography ( Typography::type_t tpg );
Thanks
Solved! Go to Solution.
2023-11-14 05:25 AM
Hello @ferro ,
We will consider it for future work, but could you explain what functionality you would like to have that you cannot use touchgfx::FontId or Typography directly?
2023-11-14 05:25 AM
Hello @ferro ,
We will consider it for future work, but could you explain what functionality you would like to have that you cannot use touchgfx::FontId or Typography directly?
2023-11-14 05:55 AM
Hi Mohammad,
"could you explain what functionality you would like to have that you cannot use touchgfx::FontId or Typography directly"
Ah, I see. I must have got something wrong while trying to use Typography as a type. Or there was some scenario where I thought Typography::type_t to be useful. Thanks and sorry for the spam.
Ferro
2023-11-14 06:13 AM
No worries at all :grinning_face:
Good luck