Skip to content
Damian Monogue edited this page Feb 7, 2021 · 1 revision

Table of Contents

Welcome

Thank you for picking fText, demonnic's library for formatting text in Mudlet! fText is currently comprised of 3 main parts, the string formatter, a reusable string formatter, and a tablemaker for creating formatted, complex text displays.

fText: the basis of it all

Born from a series of functions I wrote due to a request in the old irc help channel, I recently had reason to look back over them and I cringed so hard I almost pulled a face muscle. So I rewrote them to be one function, and then created wrappers to access the specific functionality of the old functions.

These are the basic building blocks of the fText library, and are used by the TextFormatter and TableMaker to do the actual work of formatting text into specific widths/alignments/etc. It's all built around the table of formatting options.

Speaking of, what are my formatting options?

There is a common set of formatting options in use by the fText library. These are all entries which can be included in the table you pass in to fText etc and each will have its own effect on the formatted output.
See the API docs for the current version to view the full list of functions and formatting options

Please see fText: Examples for examples with pictures =)

TextFormatter: when you want to repeat the same formatting a lot

fText: TextFormatter is fText that remembers its formatting rules to make it easy to format text the same way over and over.

TableMaker: putting it all together

fText: TableMaker puts all the pieces together in order to create tables of formatted text in rows and columns.

Clone this wiki locally