DmiFontsPlus

by Lummox JR
An advanced text-on-map library for BYOND 4.0 [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://LummoxJR.DmiFontsPlus##version=2

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://LummoxJR.DmiFontsPlus##version=2

2137 downloads
Version 1.1
Date added: Oct 26 2008
Last updated: Aug 21 2010
18 fans
DmiFontsPlus is a revamp of DmiFonts designed for the new icon features in BYOND 4.0. It's a utility and library in one package. New features include alpha transparency, easier icon manipulation (no more clumsy /iconset datum), and fewer separate icons taking up room in your games cache.

The utility program will convert any font to a PNG-compatible .dmi format, and create a .dm file that you can include in your games to use the font. The library can be used to render text in many ways.

The library includes:

  • Support for anti-aliased fonts
  • A fleet of powerful procs to measure and arrange your text
  • Multi-font procs to draw text in changing styles just like this
  • Comprehensive documentation
  • The infamous un-smiley demo



Upgraders please note: You will have to re-make your font files with this library, since the old library used BYOND 3.0 icons and did not support alpha transparency. In place of the old /iconset datum, a single large /icon datum is now used for your text. Manipulating icons is much easier now, but you will have to make adjustments to your code. The QuickName() and QuickText() procs, however, should be unaffected. You will also not be able to use DmiFonts and DmiFontsPlus together; they conflict with each other.

Comments

Polatrite: (Mar 15, 12:45 pm)
Awesome, thanks for the quick response. :)
Lummox JR: (Mar 15, 12:40 pm)
Wherever maptext is easier to use, absolutely.
Polatrite: (Mar 15, 6:16 am)
Do you recommend phasing this library out in favor of native maptext? I have to assume so, since this does a lot of costly icon manipulation calls.
EternalDuelistSoul: (May 12 2013, 2:14 pm)
Can this do multiple lines?

Like if I wanted to print some text on the map as below:

Time to Battle
Player 1 vs Player 2
GO!

I want to use it on a 'screen' on the map you see.
Lummox JR: (Feb 14 2012, 8:19 am)
You can use any text you want; you're not limited to just using your key. The QuickName() proc for instance lets you specify the text. I'm not sure how this is unclear from the documentation.