Have not tried this but you probably can create a rofontregistry and call its methods to return a default font
To your liking (you do not have to call register for the default font just call the default methods)
And use this font handle as your guide. You would then create the string representation
Of the template font for use in your canvas by calling get with the same font
Description. Use your font handles getonelinewidth to get the information you need
And adjust your string before sending it off to the canvas with the string representation
Of the same font
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )