This is a discussion topic for the Ore project, TextToBlock. View the full project on Ore for downloads and more information.
TextToBlock
A little API that can easily write out text in blocks with the desired text, font, fontsize, and alignment.
This plugin also features a FontManager allowing you to create your text in any font your desire.
Installation:
- Download
- Place plugin inside serverRoot/mods/
- Start your server to create config and fonts folder.
- Edit your config.
- Add fonts you like to serverRoot/fonts/
Currently this only provides support for .ttf(truetype font) fonts.
ExtraScanDirs in the config will scan the provided directories for .ttf files. Found font files will be referenced as .ttfproxy in the /fonts folder.
For those looking to use this as an API for your plugins, Maven and JavaDocs will be coming soon.
The tl;dr version of getting started:
import com.github.gamecube762.texttoblock.util.BlockString;
BlockString bs = new BlockString("The quick brown fox jumps over the lazy dog.");
bs.pasteAt(...);
This is yet to be finished and has some minor bugs/kinks that need to be ironed out. Feel free to provide feedback!
Old project was deleted and re-uploaded due to the projectID changing. It is now “texttoblock”.