Text colour RGB + OTF fonts

Help and techniques for creating Air Manager Instrument Graphics

Moderators: Ralph, russ

Post Reply
Message
Author
User avatar
brodhaq
Posts: 144
Joined: Wed Jun 29, 2016 4:13 pm

Text colour RGB + OTF fonts

#1 Post by brodhaq » Thu Nov 30, 2017 2:32 pm

Hello,
I have two quick questions:

1) Can I use RGB for text colours, or just those pre-defined (white, black, lightgreen...)? If yes, how? I tried color:{65, 35, 78} which did not work.
Also, can I reference colour from text object to a variable? It would be nice to define it at the beggining of the code something like menufont = {65, 35, 78} and use just color:menufont in all of my text objects. I tried, it did not work, even for those pre-defined colours.

2) Is there any limitation when using OTF fonts like "MyriadPro-Regular.otf"? I tried and it works, but I wonder if it will work on other platforms as well. Is there any difference when using TTF and OTF fonts?

Thank you,
Pavel
Pavel Brodský
Prague, Czech Republic

User avatar
Corjan
Posts: 2368
Joined: Thu Nov 19, 2015 9:04 am

Re: Text colour RGB + OTF fonts

#2 Post by Corjan » Thu Nov 30, 2017 2:55 pm

Hi,


1. You can use "color: #FFFFFF;" in the txt_add style.

2. Both TTF and OTF are supported.


Corjan

User avatar
brodhaq
Posts: 144
Joined: Wed Jun 29, 2016 4:13 pm

Re: Text colour RGB + OTF fonts

#3 Post by brodhaq » Thu Nov 30, 2017 6:25 pm

Thanks Corjan,
checked and both working!

Pavel
Pavel Brodský
Prague, Czech Republic

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests