0N/A/*
2362N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
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
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
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 *
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,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.font;
0N/A
0N/A/**
0N/A * Encapsulates the information that 2D needs to create a composite font,
0N/A * the runtime representation of a logical font.
0N/A */
0N/Apublic class CompositeFontDescriptor {
0N/A
0N/A private String faceName;
0N/A private int coreComponentCount;
0N/A private String[] componentFaceNames;
0N/A private String[] componentFileNames;
0N/A private int[] exclusionRanges;
0N/A private int[] exclusionRangeLimits;
0N/A
0N/A /**
0N/A * Constructs a composite font descriptor.
0N/A * @param faceName the font face name, i.e., the family name suffixed
0N/A * with ".plain", ".bold", ".italic", ".bolditalic".
0N/A * @param coreComponentCount the number of core fonts, i.e., the ones
0N/A * derived from a non-fallback sequence.
0N/A * @param componentFaceNames the face names for the component fonts
0N/A * @param componentFileNames the file names for the component fonts
0N/A * @param exclusionRanges an array holding lower and upper boundaries
0N/A * for all exclusion ranges for all component fonts
0N/A * @param exclusionRangeLimits an array holding the limits of the
0N/A * sections for each component font within the previous
0N/A * array
0N/A */
0N/A public CompositeFontDescriptor(String faceName,
0N/A int coreComponentCount,
0N/A String[] componentFaceNames,
0N/A String[] componentFileNames,
0N/A int[] exclusionRanges,
0N/A int[] exclusionRangeLimits) {
0N/A this.faceName = faceName;
0N/A this.coreComponentCount = coreComponentCount;
0N/A this.componentFaceNames = componentFaceNames;
0N/A this.componentFileNames = componentFileNames;
0N/A this.exclusionRanges = exclusionRanges;
0N/A this.exclusionRangeLimits = exclusionRangeLimits;
0N/A }
0N/A
0N/A public String getFaceName() {
0N/A return faceName;
0N/A }
0N/A
0N/A public int getCoreComponentCount() {
0N/A return coreComponentCount;
0N/A }
0N/A
0N/A public String[] getComponentFaceNames() {
0N/A return componentFaceNames;
0N/A }
0N/A
0N/A public String[] getComponentFileNames() {
0N/A return componentFileNames;
0N/A }
0N/A
0N/A public int[] getExclusionRanges() {
0N/A return exclusionRanges;
0N/A }
0N/A
0N/A public int[] getExclusionRangeLimits() {
0N/A return exclusionRangeLimits;
0N/A }
0N/A}