"renojim" wrote:
"TheEndless" wrote:
the metrics don't work with the built in fonts for some reason
I've asked that support be added for the built-in fonts for just this reason. It shouldn't be necessary to use a custom font just for the ability to get the length of a displayed string.
-JT
Agreed. In MainSqueeze I bounced back and forth between custom and system fonts. I ended up coming up with an average character width for each of the different system fonts, and calculate based on that. It can be wildly off on occasion, but it works for the most part.
If it helps, this is what I came up with...
If font = "Small" Then
letterWidth = 11
Else If font = "Medium" Then
letterWidth = 15
Else If font = "Large" Then
letterWidth = 21
Else If font = "Huge" Then
letterWidth = 35
End If
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)