About fonts

Posted by AE_Fenriz on Thu 21 Jun 2012 12:50 PM — 12 posts, 40,438 views.

#0
Hi again, i was wondering if it's possible in mushclient to use new sets of fonts without the need of installing them in Windows\Fonts folder before.

And another thing: is it possibile to use different fonts in the same window?
Or at least a font in the main window and a different one in a miniwindow?

Netherlands #1
Not in the same window. The miniwindows are nigh limitless in comparison, and you can have hundreds of fonts in one if you wanted.
#2
So i could use a single font in the main output window and many other fonts in the miniwindows (even more than one in the same miniwindow?), right?
Netherlands #3
Right.
#4
Thanks.

One last question, then i'll stop to annoying you :D

Is it possible in mushclient to use new sets of fonts without the need of installing them in Windows\Fonts folder before?
Netherlands #5
There is AddFont(), but that only makes it possible for a single font; I think this function predates miniwindows. You can try asking Nick if he'll make it possible for any amount of fonts to be loaded.
Australia Forum Administrator #6
As far as I know you can use AddFont to add as many fonts as you want. However only one at a time can be used in the output window.
Netherlands #7
Quote:
This adds a font (specified by pathname) into the MUSHclient application space. It can then be used by world windows for output or command window fonts.

Only one font can be added per world, adding a new one replaces the old one. The intention here is for specialized fonts (like mapping fonts) to be made available without having to add extra font files to the Windows directory.


If that is so, then the documentation is incorrect. :)
Australia Forum Administrator #8
Hmm. Looks like I was wrong. You can add one extra font.

Certainly you have have many different fonts in miniwindows, and they don't have to be the same as the font in the main window.
Netherlands #9
But I think the question is: can you ship an arbitrary amount of font files besides your plugin and use them all inside MUSHclient miniwindows at the same time without installing them in Windows?
Australia Forum Administrator #10
I don't think so.

You could ship the fonts as well, and suggest they install them.

Or you could pre-render them, particularly if you only want them for limited things like headings. So instead of drawing "Inventory" as text you could have it as a bitmap.
Australia Forum Administrator #11
This restriction is removed in version 4.93.

Example of two fonts in a miniwindow:



Now you can load any number of external fonts.