Hi dear,
I have my Piston with information about temperature, device , etc… But some piston are font large and I need small font.
How I define the font size in piston?
Hi dear,
I have my Piston with information about temperature, device , etc… But some piston are font large and I need small font.
How I define the font size in piston?
In Windows, you can load your Dashboard, and then hold down Ctrl while scrolling your mouse wheel. It should remember your preferred size between sessions.
Note: This changes the size of everything on the page.
When working with a “Tile”, the size of the font is directly related to the amount of text you are trying to display. (IE: more text = smaller font)
For example, if I wanted the “86” to be smaller, I can insert a symbol (or two) before and after the number.
You can use:
$twcweather.conditions.wxPhraseLong
instead of wxPhraseShort
That will convert “P Cloudy” to “Partly Cloudy”…
Thereby reducing the font size for those conditions
.
More examples here.
Note:
If your weather condition
is ever “Clear”, “Fair”, or “Fog”, there are no longer versions of those words.
Those will always be in larger font, unless you add symbols (or something) to shrink it down.
Also be aware that if you ever have “Rain Shower with Thunder”, it may be too much text, and may end up being scrunched too small to read.
YMMV
For future reference, I don’t think there is a minimum, but there is a maximum character count on the following:
$twcweather.conditions.wxPhraseLong
(weather phrase up to 32 characters)
$twcweather.conditions.wxPhraseMedium
(weather phrase probably up to 22? characters - Unconfirmed)
$twcweather.conditions.wxPhraseShort
(weather phrase up to 12 characters)
This can be somewhat helpful when designing a UI (or tile) with our weather data.