| Package | Description |
|---|---|
| com.aspose.font |
The com.aspose.font is a root package for all classes that deal with fonts.
|
| Modifier and Type | Field and Description |
|---|---|
static NameId |
NameId.CompatibleFull
18 Compatible Full (Macintosh only); On the Macintosh, the menu name is constructed using the Font resource.
|
static NameId |
NameId.CopyrightNotice
0 Copyright notice.
|
static NameId |
NameId.DarkBackground
This ID, if used in the CPAL table’s 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
|
static NameId |
NameId.Description
10 Description; description of the typeface.
|
static NameId |
NameId.DesignerName
9 Designer; name of the designer of the typeface.
|
static NameId |
NameId.FontFamily
1 Font Family.
|
static NameId |
NameId.FontSubfamily
2 Font Subfamily.
|
static NameId |
NameId.FullName
4 Full name of the Font.
|
static NameId |
NameId.LicenseDescription
13 License description; description of how the Font may be legally used, or different example scenarios for licensed use.
|
static NameId |
NameId.LicenseInfoUrl
14 License information URL, where additional licensing information can be found.
|
static NameId |
NameId.LightBackground
This ID, if used in the CPAL table’s 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
|
static NameId |
NameId.ManufacturerName
8 Manufacturer name.
|
static NameId |
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 “composefont” invocation in order to invoke the font in a PostScript interpreter
|
static NameId |
NameId.PostScriptName
6 PostScript name of the Font.
|
static NameId |
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.
|
static NameId |
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.
|
static NameId |
NameId.SampleText
19 Sample text.
|
static NameId |
NameId.TrademarkNotice
7 Trademark notice.
|
static NameId |
NameId.UniqueFontId
3 Apple spec: Unique subfamily identification.
3 MS spec: Unique font identifier
|
static NameId |
NameId.UrlDesigner
12 URL of the Font designer (with protocol, e.g., http://, ftp://)
|
static NameId |
NameId.UrlVendor
11 URL of the Font vendor (with procotol, e.g., http://, ftp://).
|
static NameId |
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
|
static NameId |
NameId.Version
5 Version of the name table.
|
static NameId |
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
|
static NameId |
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
|
| Modifier and Type | Method and Description |
|---|---|
static NameId |
NameId.fromId(int id)
Creates a name id out of an integer value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TtfNameTable.addMultiLanguageNames(MultiLanguageString mlNames,
PlatformId platformId,
int platformSpecificId,
NameId nameId)
Extracts all multilingual strings from passed
mlNames object and
creates correspondent NameRecord structure for every string extracted using passed
parameters platformId, platformSpecificId and nameId. |
void |
TtfNameTable.addName(NameId nameId,
PlatformId platformId,
int platformSpecificId,
int languageId,
String name)
Adds entry into the table.
|
void |
TtfNameTable.deleteRecords(PlatformId platformId,
int platformSpecificId,
NameId nameId)
Deletes all the records related to passed parameters
|
void |
TtfNameTable.deleteRecords(PlatformId platformId,
int platformSpecificId,
NameId nameId,
int languageId)
Deletes record(s) related to parameters specified
|
void |
TtfNameTable.deleteRecordsByNameId(NameId nameId) |
MultiLanguageString |
TtfNameTable.getMultiLanguageNameById(NameId nameId)
returns a name by nameId
|
MultiLanguageString |
TtfNameTable.getMultiLanguageNameById(NameId nameId,
PlatformId platformId)
Returns a name by nameId using platform identifier passed.
|
MultiLanguageString |
TtfNameTable.getMultiLanguageNameById(NameId nameId,
PlatformId platformId,
int platformSpecificId)
Returns a name as object of type
MultiLanguageString. |
String |
TtfNameTable.getNameById(NameId nameId)
Returns a name by nameId if found, null otherwise.
|
NameRecord[] |
TtfNameTable.getNameRecordsByNameId(NameId nameId)
Returns all
NameRecord structures which NameId field is equal
to passed nameId value. |
void |
TtfNameTable.updateName(PlatformId platformId,
int platformSpecificId,
NameId nameId,
int languageId,
String newName)
Updates name in record(s) which related to specified platform (combination of platformId and platformSpecificId),
category (nameId) and language (languageId).
|
void |
TtfNameTable.updateNamesByNameId(NameId nameId,
String newName)
Selects all records which related to logical string category, specified by parameter nameId and
updates name field (string data) in these records.
|
Copyright © 2025 Aspose. All Rights Reserved.