Why does AddFont limit 1?

Posted by Fiendish on Tue 22 Apr 2014 04:52 AM — 5 posts, 16,366 views.

USA Global Moderator #0
The doc for AddFont says
Quote:
Only one font can be added per world, adding a new one replaces the old one.

Why is that?
Australia Forum Administrator #1
Because the output window draws in one font. The style runs don't have font information in them.
USA Global Moderator #2
Does that statement not apply to plugin miniwindows then?
Australia Forum Administrator #3
Hmm, I see what you mean. I suppose there is no particular reason for a limit, except that I didn't think of that at the time. The font which was added is stored in one variable (so it can be removed at client close) but I suppose it could be stored in an array.
Australia Forum Administrator #4
This restriction is removed in version 4.93.

Example of two externally-loaded fonts in a miniwindow:



Now you can load any number of external fonts.

Also see: http://www.gammon.com.au/forum/?id=11698