KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > fop > fonts > EmbedFontInfo


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 /* $Id: EmbedFontInfo.java 426576 2006-07-28 15:44:37Z jeremias $ */
19  
20 package org.apache.fop.fonts;
21
22 import java.util.List JavaDoc;
23
24 /**
25  * FontInfo contains meta information on fonts (where is the metrics file etc.)
26  */

27 public class EmbedFontInfo {
28     
29     private String JavaDoc metricsFile, embedFile;
30     private boolean kerning;
31     private List JavaDoc fontTriplets;
32
33     /**
34      * Main constructor
35      * @param metricsFile Path to the xml file containing font metrics
36      * @param kerning True if kerning should be enabled
37      * @param fontTriplets List of font triplets to associate with this font
38      * @param embedFile Path to the embeddable font file (may be null)
39      */

40     public EmbedFontInfo(String JavaDoc metricsFile, boolean kerning,
41                     List JavaDoc fontTriplets, String JavaDoc embedFile) {
42         this.metricsFile = metricsFile;
43         this.embedFile = embedFile;
44         this.kerning = kerning;
45         this.fontTriplets = fontTriplets;
46     }
47
48     /**
49      * Returns the path to the metrics file
50      * @return the metrics file path
51      */

52     public String JavaDoc getMetricsFile() {
53         return metricsFile;
54     }
55
56     /**
57      * Returns the path to the embeddable font file
58      * @return the font file path
59      */

60     public String JavaDoc getEmbedFile() {
61         return embedFile;
62     }
63
64     /**
65      * Determines if kerning is enabled
66      * @return True if enabled
67      */

68     public boolean getKerning() {
69         return kerning;
70     }
71
72     /**
73      * Returns the list of font triplets associated with this font.
74      * @return List of font triplets
75      */

76     public List JavaDoc getFontTriplets() {
77         return fontTriplets;
78     }
79
80 }
81
82
Popular Tags