3543N/A * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. 3543N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3543N/A * This code is free software; you can redistribute it and/or modify it 3543N/A * under the terms of the GNU General Public License version 2 only, as 3543N/A * published by the Free Software Foundation. 3543N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3543N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3543N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3543N/A * version 2 for more details (a copy is included in the LICENSE file that 3543N/A * You should have received a copy of the GNU General Public License version 3543N/A * 2 along with this work; if not, write to the Free Software Foundation, 3543N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3543N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3543N/A * or visit www.oracle.com if you need additional information or have any 3543N/A @summary Confirm that styling does not affect metrics of zero advance glyphs 3543N/A // It turns out that some fonts inexplicably treat this as 3543N/A // a standard character. In this 14 pt font, if we see an advance 3543N/A // that's clearly bigger than we'd have introduced in bolding we'll 3543N/A // not error out this test, presuming that its a consequence of 3543N/A // the actual font data. A Linux font 'TLwg Type Bold' is the case 3543N/A //g.setFont(new Font("Lucida Sans Regular", Font.BOLD, 14));