public static int lineHeight(Context c, Node node) {  CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(node)); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style, node), "Test").getHeight()); Element elem = null; if (node instanceof Element) { elem = (Element) node; } else { elem = (Element) node.getParentNode(); } if (c.css.getStyle(elem).hasProperty("line-height")) {  val = (int) c.css.getStyle(elem).getFloatPropertyRelative("line-height", val);
public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { val = (int) style.getFloatPropertyRelative(CSSName.LINE_HEIGHT, val);
    public static int lineHeight(Context c, Node node) {        //int val = c.getGraphics().getFontMetrics( getFont( c, node ) ).getHeight();        CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(node));        int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style, node), "Test").getHeight());        Element elem = null;        if (node instanceof Element) {            elem = (Element) node;        } else {            elem = (Element) node.getParentNode();        }        if (c.css.getStyle(elem).hasProperty("line-height")) {            //u.p("elem = " + node);            val = (int) c.css.getStyle(elem).getFloatPropertyRelative("line-height", val);            //u.p("val = " + val);        }        return val;    }