@SuppressWarnings("deprecation") // we know
	private void setMetrics(Font newFont) {
		defaultMetrics = Toolkit.getDefaultToolkit().getFontMetrics(newFont);
		for (int i = 0; i < fontMetrics.length; i++) {
			Font font = newFont.deriveFont(i); // i is looping over the 4 font styles PLAIN, BOLD, ITALIC, and BOLDITALIC
			fontMetrics[i] = Toolkit.getDefaultToolkit().getFontMetrics(font);
		}
	}
Returns the font metrics used by this field factory
@return the metrics.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FieldFactory.java