ATVO by Appgineering
Download
Read-only

Font type data point

3 posts 2,437 views Started 26 Sept 2019, 12:22
Showing 1–3 of 3 posts
Greg L.
Original poster
· edited

Is there a data point to override the font type ? I have a ticker with the car color and font color but didn't see an option anywhere to have their selected font type. If so where is it applied ?

Thanks !

Greg Leblanc

Nick Thissen Appgineering
Reply #1

What do you mean with font type? The name / font family name (e.g. Arial or Times New Roman)?

You can use override bindings for Font Color and Font Size, see here: https://atvo.appgineering.com/Forum/Thread/38?postId=40#40

For font family, you could use a script to change the fontname on the fly. If you need it to be different per item in the ticker, probably you'd have to do a loop over all items and apply the font name to each. It may be a bit tricky because I don't think you can just apply the name of the font family, you have to actually get the "FontName" object, either from a system font or from a Font object in your theme.

Perhaps something like this:

foreach (var subwidget in TickerWidget.Ticker.RepeatedSubWidgets)
{
    var label = subwidget.Labels.Find("myFontLabel");
    label.Font.FontName = FontName.FromSystem("Arial");
}
Greg L.
Reply #2

Hey Nick thanks for the reply,

I was looking to change the font type in the ticker for each car just so it would be easier to distinguish the car at a glance.

Sounds like this may be a little too complex for me to undertake but I appreciate the help !

Thanks,

Greg Leblanc

Archive · Read-only

New replies have moved to Discord.