@Override
	public int getMaxCharactersForWidth(int width) {
		// Assumes monospaced.
		return width / em;
	}
Get the number of columns (total width, not just the used by the line)

@return the column count
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalTextFieldElement.java