Class TextFamily

java.lang.Object
squidpony.squidgrid.gui.gdx.TextCellFactory
squidpony.squidgrid.gui.gdx.TextFamily
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class TextFamily
extends TextCellFactory
A variant of TextCellFactory that allows switching between regular, bold, italic, and bold italic styles. It adds only one field to TextCellFactory, and is interchangeable except that (potentially importantly) it does not correctly render chars above '\\u3fff' due to using some of the bits that normally represent late-in-Unicode character codes to instead represent bold and italic modes. Two TextFamily values are present in DefaultResources, DefaultResources.getLeanFamily() and DefaultResources.getSlabFamily(); using them is currently the recommended way to use this class.
You may want to use GDXMarkup.colorString(CharSequence) to produce an IColoredString that contains the specially-altered chars that store bold and italic mode data.
Created by Tommy Ettinger on 10/26/2017.