Bug 73027 [Dialogs] Buttons are too high
I20040831 Buttons are no longer oval but have a rounded rectangle shape (see first screenshot). The second screenshot shows how buttons using the small system font should look like.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
* The required <code>FontMetrics</code> parameter may be created in the
     * following way: <code>
     * 	GC gc = new GC(control);
     *	gc.setFont(control.getFont());
     *	fontMetrics = gc.getFontMetrics();
     *	gc.dispose();
     * </code>
     * </p>
     * 
     * @param fontMetrics
     *            used in performing the conversion
     * @param chars
     *            the number of characters
     * @return the number of pixels
     * @since 2.0
     */
    public static int convertWidthInCharsToPixels(FontMetrics fontMetrics,
            int chars) {
        return fontMetrics.getAverageCharWidth() * chars;
    }
    /**
     * Shortens the given text <code>textValue</code> so that its width in
     * pixels does not exceed the width of the given control. Overrides
     * characters in the center of the original string with an ellipsis ("...")
     * if necessary. If a <code>null</code> value is given, <code>null</code>
     * is returned.
     * 
     * @param textValue
     *            the original string or <code>null</code>
     * @param control