Assuming you want to print some text horizontally and vertically centred in the middle of a banner, is there any better method than getting the banner’s size with bannerGetInfo() and formatting manually? Would HTML tables work? I’m planning on using the fixed-width font in any case, if not a text-grid banner.
Is there some alternative mechanism I’m overlooking here?
EDIT: I guess I only need to handle the vertical alignment and use <center> … </center>
to handle horizontal alignment, so that’s slightly less of a headache.
EDIT 2: …except Text mode banners are sized based on whatever the font metrics are for the default font the user has set is, and there’s no way for authors to override this? But I can’t use <center>
in TextGrid banners…so I’ll just have to assume that whatever font the terp is set to has reasonably similar metrics to the fixed-width font. Eurgh.