< prev index next >

src/java.desktop/share/classes/java/awt/Font.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1995, 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 --- 1,7 ---- /* ! * Copyright (c) 1995, 2019, 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
*** 493,509 **** return values; } private Font2D getFont2D() { FontManager fm = FontManagerFactory.getInstance(); ! if (fm.usingPerAppContextComposites() && ! font2DHandle != null && ! font2DHandle.font2D instanceof CompositeFont && ! ((CompositeFont)(font2DHandle.font2D)).isStdComposite()) { ! return fm.findFont2D(name, style, ! FontManager.LOGICAL_FALLBACK); ! } else if (font2DHandle == null) { font2DHandle = fm.findFont2D(name, style, FontManager.LOGICAL_FALLBACK).handle; } /* Do not cache the de-referenced font2D. It must be explicitly --- 493,503 ---- return values; } private Font2D getFont2D() { FontManager fm = FontManagerFactory.getInstance(); ! if (font2DHandle == null) { font2DHandle = fm.findFont2D(name, style, FontManager.LOGICAL_FALLBACK).handle; } /* Do not cache the de-referenced font2D. It must be explicitly
< prev index next >