< prev index next >

src/java.desktop/share/classes/sun/font/Font2D.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 403,413 **** * metrics[6]: underline offset * metrics[7]: underline thickness */ public void getFontMetrics(Font font, AffineTransform at, Object aaHint, Object fmHint, ! float metrics[]) { /* This is called in just one place in Font with "at" == identity. * Perhaps this can be eliminated. */ int aa = FontStrikeDesc.getAAHintIntVal(aaHint, this, font.getSize()); int fm = FontStrikeDesc.getFMHintIntVal(fmHint); --- 403,413 ---- * metrics[6]: underline offset * metrics[7]: underline thickness */ public void getFontMetrics(Font font, AffineTransform at, Object aaHint, Object fmHint, ! float[] metrics) { /* This is called in just one place in Font with "at" == identity. * Perhaps this can be eliminated. */ int aa = FontStrikeDesc.getAAHintIntVal(aaHint, this, font.getSize()); int fm = FontStrikeDesc.getFMHintIntVal(fmHint);
*** 447,457 **** * metrics[1]: descent * metrics[2]: leading * metrics[3]: max advance */ public void getFontMetrics(Font font, FontRenderContext frc, ! float metrics[]) { StrikeMetrics strikeMetrics = getStrike(font, frc).getFontMetrics(); metrics[0] = strikeMetrics.getAscent(); metrics[1] = strikeMetrics.getDescent(); metrics[2] = strikeMetrics.getLeading(); metrics[3] = strikeMetrics.getMaxAdvance(); --- 447,457 ---- * metrics[1]: descent * metrics[2]: leading * metrics[3]: max advance */ public void getFontMetrics(Font font, FontRenderContext frc, ! float[] metrics) { StrikeMetrics strikeMetrics = getStrike(font, frc).getFontMetrics(); metrics[0] = strikeMetrics.getAscent(); metrics[1] = strikeMetrics.getDescent(); metrics[2] = strikeMetrics.getLeading(); metrics[3] = strikeMetrics.getMaxAdvance();
< prev index next >