retval = desc.getXHeight(); if (retval > 0)
@Override public Double getXHeight() { return Double.valueOf(descriptor.getXHeight()); }
/** * <p> * Create basic {@link FontMetrics} for current font. * <p> * * @param font * The font from which calculation will be applied <<<<<<< HEAD * @throws IOException * If reading the font file fails ======= >>>>>>> using FreeSans * as default font and added new free fonts */ private static void createFontMetrics(final PDFont font) { final float base = font.getFontDescriptor().getXHeight() / 1000; final float ascent = font.getFontDescriptor().getAscent() / 1000 - base; final float descent = font.getFontDescriptor().getDescent() / 1000; fontMetrics.put(font.getName(), new FontMetrics(base + ascent - descent, ascent, descent)); }
retval = desc.getXHeight(); if (retval > 0)
retval = desc.getXHeight(); if (retval > 0)