src/share/classes/sun/font/FileFontStrike.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2011, 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, 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
*** 726,736 **** * add 1 to "x" and reduce "width" by 1. */ if ((desc.aaHint == INTVAL_TEXT_ANTIALIAS_LCD_HRGB || desc.aaHint == INTVAL_TEXT_ANTIALIAS_LCD_HBGR) && topLeftX <= -2.0f) { ! int minx = getGlyphImageMinX(ptr, (int)result.x); if (minx > result.x) { result.x += 1; result.width -=1; } } --- 726,736 ---- * add 1 to "x" and reduce "width" by 1. */ if ((desc.aaHint == INTVAL_TEXT_ANTIALIAS_LCD_HRGB || desc.aaHint == INTVAL_TEXT_ANTIALIAS_LCD_HBGR) && topLeftX <= -2.0f) { ! int minx = getGlyphImageMinX(ptr, result.x); if (minx > result.x) { result.x += 1; result.width -=1; } }
*** 910,920 **** ConcurrentHashMap<Integer, GeneralPath> outlineMap = null; if (outlineMapRef != null) { outlineMap = outlineMapRef.get(); if (outlineMap != null) { ! gp = (GeneralPath)outlineMap.get(glyphCode); } } if (gp == null) { gp = fileFont.getGlyphOutline(pScalerContext, glyphCode, 0, 0); --- 910,920 ---- ConcurrentHashMap<Integer, GeneralPath> outlineMap = null; if (outlineMapRef != null) { outlineMap = outlineMapRef.get(); if (outlineMap != null) { ! gp = outlineMap.get(glyphCode); } } if (gp == null) { gp = fileFont.getGlyphOutline(pScalerContext, glyphCode, 0, 0);