src/solaris/classes/sun/font/XRGlyphCacheEntry.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2010, 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) 2010, 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
*** 46,57 **** public XRGlyphCacheEntry(long glyphInfoPtr, GlyphList gl) { this.glyphInfoPtr = glyphInfoPtr; /* TODO: Does it make sence to cache results? */ ! xOff = (int) Math.round(getXAdvance()); ! yOff = (int) Math.round(getYAdvance()); } public int getXOff() { return xOff; } --- 46,57 ---- public XRGlyphCacheEntry(long glyphInfoPtr, GlyphList gl) { this.glyphInfoPtr = glyphInfoPtr; /* TODO: Does it make sence to cache results? */ ! xOff = Math.round(getXAdvance()); ! yOff = Math.round(getYAdvance()); } public int getXOff() { return xOff; }