• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.graphics.pdf.component;
18 
19 import android.annotation.FlaggedApi;
20 import android.annotation.IntDef;
21 import android.graphics.pdf.flags.Flags;
22 
23 import java.lang.annotation.Retention;
24 import java.lang.annotation.RetentionPolicy;
25 
26 /**
27  * The class holds the set of font families supported by {@link PdfPageTextObject}.
28  * The specified font families are standard font families defined
29  * in the PDF Spec 1.7 - Page 146.
30  */
31 @FlaggedApi(Flags.FLAG_ENABLE_EDIT_PDF_TEXT_OBJECTS)
32 public class PdfPageTextObjectFontFamily {
PdfPageTextObjectFontFamily()33     private PdfPageTextObjectFontFamily() {}
34 
35     /**
36      * Courier Font
37      */
38     public static final int COURIER = 0;
39 
40     /**
41      * Helvetica Font
42      */
43     public static final int HELVETICA = 1;
44 
45     /**
46      * Symbol Font (Note: Renders only symbols)
47      */
48     public static final int SYMBOL = 2;
49 
50     /**
51      * TimesNewRoman Font
52      */
53     public static final int TIMES_NEW_ROMAN = 3;
54 
55     /** @hide */
56     @Retention(RetentionPolicy.SOURCE)
57     @IntDef({COURIER, HELVETICA, SYMBOL, TIMES_NEW_ROMAN})
58     public @interface Type {
59     }
60 }
61