if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0;
CalculatedStyle calculatedStyle = line.getStyle().getCalculatedStyle(); if (calculatedStyle.isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0;
    private static int getTextAlign(Context c, LineBox line) {        if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0;        int leftover = line.getParent().contentWidth - line.contentWidth;        if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) {            //Uu.p("leftover = " + leftover);            return leftover;        }        if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.CENTER)) {            return leftover / 2;        }        //HACK: justified text, should probably be done better        if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.JUSTIFY)) {            if (leftover > 1) TextAlignJustify.justifyLine(c, line, line.getParent().contentWidth);        }        return 0;    }