missionpinball / mpf-mc

The Mission Pinball Framework Media Controller. Controls graphics, sounds, DMDs, and LCD displays in MPF.
http://missionpinball.org
MIT License
21 stars 42 forks source link

Automatic variable size fonts #171

Open toomanybrians opened 8 years ago

toomanybrians commented 8 years ago

We need a way to be able to set the size of a text widget and then have the font size automatically be chosen to fit the content in that window. Probably want to integrate it with the styles so that different styles are chosen as needed versus just changing the size up and down (this is more important for DMDs).

Another option (or maybe we need both?) is to specify fonts based on the number of characters. This is how WPC games worked with scoring, where they'd choose smaller fonts as the score grew to more digits.

toomanybrians commented 7 years ago

two different options, low res and high res