fontscalerdefs.h revision 4063
3157N/A * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 1472N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1879N/A /* t2kFixed is the same as F16Dot16 format although T2K also uses 26.6 */ 0N/A /* managed: 1 means the glyph has a hardware cached 0N/A * copy, and its freeing is managed by the the usual 0N/A * A value of 0 means its either unaccelerated (and so has no cellInfos) 0N/A * or we want to free this in a different way. 0N/A * The field uses previously unused padding, so doesn't enlarge 0N/A /* We use fffe and ffff as meaning invisible glyphs which have no 0N/A * image, or advance and an empty outline. 0N/A * Since there are no valid glyphs with this great a value (watch out for 0N/A * large fonts in the future!) we can safely use check for >= this value 0N/A/* If font is malformed then scaler context created by particular scaler 0N/A * will be replaced by null scaler context. 0N/A * Note that this context is not compatible with structure of the context 0N/A * object used by particular scaler. Therefore, before using context 0N/A * scaler has to check if it is NullContext. 0N/A * Note that in theory request with NullContext should not even reach native 0N/A * It seems that the only reason to support NullContext is to simplify 0N/A * FileFontStrike logic - presence of context is used as marker to