int () { if (myUseNewRendering) return myView.getLineHeight(); assertReadAccess(); int lineHeight = myLineHeight; if (lineHeight < 0) { FontMetrics fontMetrics = myEditorComponent.getFontMetrics(myScheme.getFont(EditorFontType.PLAIN)); int fontMetricsHeight = fontMetrics.getHeight(); lineHeight = (int)(fontMetricsHeight * (isOneLineMode() ? 1 : myScheme.getLineSpacing())); if (lineHeight <= 0) { lineHeight = fontMetricsHeight; if (lineHeight <= 0) { lineHeight = 12; } } assert lineHeight > 0 : lineHeight; myLineHeight = lineHeight; } return lineHeight; }