What does maxWidth mean?
Fez Spider, Display T35
MyFont = Resources.GetFont(Resources.FontResources.NinaB);
MyFont.MaxWidth == 38
…
MyFont = Resources.GetFont(Resources.FontResources.small);
MyFont.MaxWidth == 27
NinaB is an 8x15 font so 320x240 is 40 char and 16 rows, ±.
small is a 6x12 font. so 320x240 is 53 char and 20 rows ±
Tom Dean
In font that means the widest any single character will ever be.
I checked this with a loop
for (ch=1;ch<=255; ch++) {x = maxx(x, MyFont.CharWidth(ch)) … }
For NinaB, I got min of 3 and max of 14
for small, I got min of 2 and max of 10
I don’t understand…
That’s interesting. I’ve neer run into that. I actually use Fonts MaxWidth property in my RetroConsole app to emulated fixed width. It’s always been spot on. I wonder if it contains an extended range character in those fonts. Make your own font with a set range and check against that.