public static enum TtfNameTable.NameId extends Enum<TtfNameTable.NameId>
Represents NameId enumeration.
Enum Constant and Description |
---|
CompatibleFull
18 Compatible Full (Macintosh only); On the Macintosh, the menu name is constructed using the Font resource.
|
CopyrightNotice
0 Copyright notice.
|
Description
10 Description; description of the typeface.
|
DesignerName
9 Designer; name of the designer of the typeface.
|
FontFamily
1 Font Family.
|
FontSubfamily
2 Font Subfamily.
|
FullName
4 Full name of the Font.
|
LicenseDescription
13 License description; description of how the Font may be legally used, or different example scenarios for licensed use.
|
LicenseInfoUrl
14 License information URL, where additional licensing information can be found.
|
ManufacturerName
8 Manufacturer name.
|
PostScriptName
6 PostScript name of the Font.
|
PreferredFamily
15 Reserved
16 Preferred Family (Windows only); In Windows, the Family name is displayed in the Font menu;
the Subfamily name is presented as the Style name.
|
PreferredSubfamily
17 Preferred Subfamily (Windows only); In Windows, the Family name is displayed in the Font menu;
the Subfamily name is presented as the Style name.
|
SampleText
19 Sample text.
|
TrademarkNotice
7 Trademark notice.
|
UniqueFontId
3 Apple spec: Unique subfamily identification.
3 MS spec: Unique font identifier
|
URLDesigner
12 URL of the Font designer (with protocol, e.g., http://, ftp://)
|
URLVendor
11 URL of the Font vendor (with procotol, e.g., http://, ftp://).
|
Version
5 Version of the name table.
|
Modifier and Type | Method and Description |
---|---|
static TtfNameTable.NameId |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TtfNameTable.NameId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TtfNameTable.NameId CopyrightNotice
0 Copyright notice.
public static final TtfNameTable.NameId FontFamily
1 Font Family. This string is the Font family name the user sees on Macintosh platforms.
public static final TtfNameTable.NameId FontSubfamily
2 Font Subfamily. This string is the Font family the user sees on Macintosh platforms.
public static final TtfNameTable.NameId UniqueFontId
3 Apple spec: Unique subfamily identification. 3 MS spec: Unique font identifier
public static final TtfNameTable.NameId FullName
4 Full name of the Font.
public static final TtfNameTable.NameId Version
5 Version of the name table.
public static final TtfNameTable.NameId PostScriptName
6 PostScript name of the Font. Note: A Font may have only one PostScript name and that name must be ASCII.
public static final TtfNameTable.NameId TrademarkNotice
7 Trademark notice.
public static final TtfNameTable.NameId ManufacturerName
8 Manufacturer name.
public static final TtfNameTable.NameId DesignerName
9 Designer; name of the designer of the typeface.
public static final TtfNameTable.NameId Description
10 Description; description of the typeface. Can contain revision information, usage recommendations, history, features, and so on.
public static final TtfNameTable.NameId URLVendor
11 URL of the Font vendor (with procotol, e.g., http://, ftp://). If a unique serial number is embedded in the URL, it can be used to register the Font.
public static final TtfNameTable.NameId URLDesigner
12 URL of the Font designer (with protocol, e.g., http://, ftp://)
public static final TtfNameTable.NameId LicenseDescription
13 License description; description of how the Font may be legally used, or different example scenarios for licensed use. This field should be written in plain language, not legalese.
public static final TtfNameTable.NameId LicenseInfoUrl
14 License information URL, where additional licensing information can be found.
public static final TtfNameTable.NameId PreferredFamily
15 Reserved 16 Preferred Family (Windows only); In Windows, the Family name is displayed in the Font menu; the Subfamily name is presented as the Style name. For historical reasons, Font families have contained a maximum of four styles, but font designers may group more than four fonts to a single family. The Preferred Family and Preferred Subfamily IDs allow Font designers to include the preferred family/subfamily groupings. These IDs are only present if they are different from IDs 1 and 2.
public static final TtfNameTable.NameId PreferredSubfamily
17 Preferred Subfamily (Windows only); In Windows, the Family name is displayed in the Font menu; the Subfamily name is presented as the Style name. For historical reasons, Font families have contained a maximum of four styles, but font designers may group more than four fonts to a single family. The Preferred Family and Preferred Subfamily IDs allow Font designers to include the preferred family/subfamily groupings. These IDs are only present if they are different from IDs 1 and 2.
public static final TtfNameTable.NameId CompatibleFull
18 Compatible Full (Macintosh only); On the Macintosh, the menu name is constructed using the Font resource. This usually matches the Full Name. If you want the name of the Font to appear differently than the Full Name, you can insert the Compatible Full Name in ID 18. This name is not used by the Mac OS itself, but may be used by application developers (e.g., Adobe).
public static final TtfNameTable.NameId SampleText
19 Sample text. This can be the Font name, or any other text that the designer thinks is the best sample text to show what the font looks like.
public static TtfNameTable.NameId[] values()
for (TtfNameTable.NameId c : TtfNameTable.NameId.values()) System.out.println(c);
public static TtfNameTable.NameId valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null