DmiFontsPlus

by Lummox JR
[Documentation] [Share] [Zip]
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

1669 downloads
Version 1.1
Date added: Oct 27 2008
Last updated: Aug 21 2010
16 fans
An advanced text-on-map library for BYOND 4.0 [More]
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.

Advertisement

Comments

Neo Rapes Everything: (Dec 3 2011, 3:10 am)
It is in fact an awesome library and a must-have resource for every developer. You did a great job, Lummox, congratulations!
Ganing: (Sep 29 2011, 9:23 pm)
There is a runtime I get with this program. Generally it wouldn't mean anything but in this case it does. It shows up randomly, unexpected.

runtime error: bad icon operation
proc name: New (/icon/New)
usr: Ganing (/mob)
src: /icon (/icon)
call stack:
/icon (/icon): New('', null, null, null, null)
Arial 7pt (/dmifont/Arial7pt): DrawText("Ganing", 48, 1, 96, 4104, 0, -1, 3, 1, null, null)
Arial 7pt (/dmifont/Arial7pt): QuickName(Ganing (/mob), "Ganing", "#ffffff", "#000", null, 3, 5)
Ganing (/mob): CreateName(255, 255, 255)
Ganing (/mob): Login()
runtime error: bad icon operation
proc name: MakeIcon (/mob/proc/MakeIcon)
source file: Login System.dm,51
usr: Ganing (/mob)
src: Ganing (/mob)
call stack:
Ganing (/mob): MakeIcon()
Ganing (/mob): Login()

It even makes the skin go back to 3.5.
Ganing: (Sep 24 2011, 12:27 pm)
I love this library. :3
Ss4toby: (Jul 23 2011, 7:43 pm)
Very impressive. Not just the font conversion exe but also the programing style itself. I'm not one for butt kissing however I can only hope to one day create such a beautiful script. My hat is off to you at this point...
Phoestre: (Jul 22 2011, 7:54 pm)
Definitly recommended! Makes all the writing stuff so easy.