public void write(String text, TextFormatterContext... context) {
		int contextIndex = 0;
		int last = 0;
		Matcher matcher = PATTERN.matcher(text);
		while (matcher.find()) {
			int start = matcher.start();
			int end = matcher.end();

			print(text, last, start, defaultContext);
			print(text, start + 1, end - 1, context[contextIndex++]);
			last = end;
		}
		print(text, last, text.length(), defaultContext);
	}
Each line is sized based on the font height and line padding on the top and bottom of the line.
The y coordinate tracks the top of the line, so a lines baseline (position to draw the text) 
is y + line padding + font accent.
Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/TextFormatter.java