NameId

Inheritance: java.lang.Object

public final class NameId

Represents NameId enumeration.

Fields

FieldDescription
CompatibleFull18 Compatible Full (Macintosh only); On the Macintosh, the menu name is constructed using the Font resource.
CopyrightNotice0 Copyright notice.
DarkBackgroundThis ID, if used in the CPAL table\u2019s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a dark background such as black
Description10 Description; description of the typeface.
DesignerName9 Designer; name of the designer of the typeface.
FontFamily1 Font Family.
FontSubfamily2 Font Subfamily.
FullName4 Full name of the Font.
LicenseDescription13 License description; description of how the Font may be legally used, or different example scenarios for licensed use.
LicenseInfoUrl14 License information URL, where additional licensing information can be found.
LightBackgroundThis ID, if used in the CPAL table\u2019s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a light background such as white
ManufacturerName8 Manufacturer name.
PostScriptCIDIts presence in a font means that the nameID 6 holds a PostScript font name that is meant to be used with the \u201ccomposefont\u201d invocation in order to invoke the font in a PostScript interpreter
PostScriptName6 PostScript name of the Font.
PreferredFamily15 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.
PreferredSubfamily17 Preferred Subfamily (Windows only); In Windows, the Family name is displayed in the Font menu; the Subfamily name is presented as the Style name.
SampleText19 Sample text.
TrademarkNotice7 Trademark notice.
UniqueFontId3 Apple spec: Unique subfamily identification. 3 MS spec: Unique font identifier
UrlDesigner12 URL of the Font designer (with protocol, e.g., http://, ftp://)
UrlVendor11 URL of the Font vendor (with procotol, e.g., http://, ftp://).
VariationsPostScriptNamePrefixIf present in a variable font, it may be used as the family prefix in the PostScript Name Generation for Variation Fonts algorithm
Version5 Version of the name table.
WwsFamilyNameUsed to provide a WWS-conformant family name in case the entries for IDs 16 and 17 do not conform to the WWS model
WwsSubfamilyNameUsed in conjunction with ID 21, this ID provides a WWS-conformant subfamily name (reflecting only weight, width and slope attributes) in case the entries for IDs 16 and 17 do not conform to the WWS model

Methods

MethodDescription
equals(Object arg0)
fromId(int id)Creates a name id out of an integer value.
getClass()
getId()Get the integer value.
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

CompatibleFull

public static final 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).

CopyrightNotice

public static final NameId CopyrightNotice

0 Copyright notice.

DarkBackground

public static final NameId DarkBackground

This ID, if used in the CPAL table\u2019s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a dark background such as black

Description

public static final NameId Description

10 Description; description of the typeface. Can contain revision information, usage recommendations, history, features, and so on.

DesignerName

public static final NameId DesignerName

9 Designer; name of the designer of the typeface.

FontFamily

public static final NameId FontFamily

1 Font Family. This string is the Font family name the user sees on Macintosh platforms.

FontSubfamily

public static final NameId FontSubfamily

2 Font Subfamily. This string is the Font family the user sees on Macintosh platforms.

FullName

public static final NameId FullName

4 Full name of the Font.

LicenseDescription

public static final 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.

LicenseInfoUrl

public static final NameId LicenseInfoUrl

14 License information URL, where additional licensing information can be found.

LightBackground

public static final NameId LightBackground

This ID, if used in the CPAL table\u2019s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a light background such as white

ManufacturerName

public static final NameId ManufacturerName

8 Manufacturer name.

PostScriptCID

public static final NameId PostScriptCID

Its presence in a font means that the nameID 6 holds a PostScript font name that is meant to be used with the \u201ccomposefont\u201d invocation in order to invoke the font in a PostScript interpreter

PostScriptName

public static final NameId PostScriptName

6 PostScript name of the Font. Note: A Font may have only one PostScript name and that name must be ASCII.

PreferredFamily

public static final 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.

PreferredSubfamily

public static final 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.

SampleText

public static final 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.

TrademarkNotice

public static final NameId TrademarkNotice

7 Trademark notice.

UniqueFontId

public static final NameId UniqueFontId

3 Apple spec: Unique subfamily identification. 3 MS spec: Unique font identifier

UrlDesigner

public static final NameId UrlDesigner

12 URL of the Font designer (with protocol, e.g., http://, ftp://)

UrlVendor

public static final 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.

VariationsPostScriptNamePrefix

public static final NameId VariationsPostScriptNamePrefix

If present in a variable font, it may be used as the family prefix in the PostScript Name Generation for Variation Fonts algorithm

Version

public static final NameId Version

5 Version of the name table.

WwsFamilyName

public static final NameId WwsFamilyName

Used to provide a WWS-conformant family name in case the entries for IDs 16 and 17 do not conform to the WWS model

WwsSubfamilyName

public static final NameId WwsSubfamilyName

Used in conjunction with ID 21, this ID provides a WWS-conformant subfamily name (reflecting only weight, width and slope attributes) in case the entries for IDs 16 and 17 do not conform to the WWS model

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

fromId(int id)

public static NameId fromId(int id)

Creates a name id out of an integer value.

Parameters:

ParameterTypeDescription
idintAn integer value.

Returns: NameId - The name id.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getId()

public int getId()

Get the integer value.

Returns: int - The integer value.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int