Character Reference Variables
Posted: September 11th, 2017, 2:06 pm
Often you will want to use a symbol in your skin design, perhaps for a media player like ▶ or ⏸, a language character like ඌ or 乫, or other UI elements like ↻ or ☑ or even just a degree symbol like °.
These can be hard to code into your skin, as while the font you are using in your skin may support all of them, your text editor may well not, which can make things confusing and annoying.
In addition, using icons from specialized fonts like FontAwesome was difficult to impossible to use in your skins.
We have added new inline Character Reference Variables, which will allow you to create plain-text references to the Unicode values for these symbols and icons.
In short, you simply find the numeric (hex or decimal) Unicode value for the character you want, and code it as:
[\x2622] : hexadecimal Unicode value. Allowed range is x0-xFFFE.
[\9762] : decimal Unicode value. Allowed range is 0-65536.
In this example, either variant will produce the ☢ character.
Details at Character Reference Variables.
Note that these are designed with the [] "Nested Variables" syntax, as all future new variable types will be, to enable nesting with other variables.
So Text=[\x[#SomeVariable]] or Text=[\[&MeasureName]] will work.
These can be hard to code into your skin, as while the font you are using in your skin may support all of them, your text editor may well not, which can make things confusing and annoying.
In addition, using icons from specialized fonts like FontAwesome was difficult to impossible to use in your skins.
We have added new inline Character Reference Variables, which will allow you to create plain-text references to the Unicode values for these symbols and icons.
In short, you simply find the numeric (hex or decimal) Unicode value for the character you want, and code it as:
[\x2622] : hexadecimal Unicode value. Allowed range is x0-xFFFE.
[\9762] : decimal Unicode value. Allowed range is 0-65536.
In this example, either variant will produce the ☢ character.
Details at Character Reference Variables.
Note that these are designed with the [] "Nested Variables" syntax, as all future new variable types will be, to enable nesting with other variables.
So Text=[\x[#SomeVariable]] or Text=[\[&MeasureName]] will work.