On Thu, Sep 23, 2021 at 11:49:37PM +0100, Alan Third wrote: > On Thu, Sep 23, 2021 at 11:38:06PM +0100, Basil L. Contovounesios wrote: > > ...which would mean this only holds in the common case that > > face_font_size has fewer than 5 digits, right? > > Looks that way. > > I suppose in this particular case we could limit the font size to a > maximum of 9999 or something, but surely there's a better way of > calculating string sizes? I've implemented a pretty basic check so we shouldn't accidentally overrun the buffer. See attached. -- Alan Third