private void initializeSizes(Font f) {
		// dummy image to get font sizes.
		image = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB);
		Graphics2D g = image.createGraphics();
		if (f == null) {
			f = new Font("Monospaced", Font.PLAIN, 14);
		}
		font = f;
		metrics = g.getFontMetrics(font);
		lineHeight = metrics.getHeight() + 2 * linePadding;
		baselineOffset = metrics.getAscent() + linePadding;
		g.dispose();

	}
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