public final class Name extends Table
'name' tables have no version.
Like all tables, these objects are immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
Name.LanguageCodeEntry |
static class |
Name.MacintoshEncodingId
This class defines constants for the Macintosh encoding ids.
|
static class |
Name.MacintoshLanguageCode |
static class |
Name.MicrosoftEncodingId
This class defines constants for the Microsoft encoding ids.
|
static class |
Name.MicrosoftLCID
This class defines constants for the Microsoft language ids.
|
static class |
Name.PlatformId
This class defines constants for the platform ids.
|
static class |
Name.PredefinedNames
This class defines constants for the predefined entries
in a 'name' table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enumerateNames(com.adobe.fontengine.font.opentype.Name.NameSelector s,
int selectedNameId)
Look for all of the names that have selectedNameId as their
nameId.
|
Set |
getCSSFamilyNames()
Return all of the CSS family names of this font.
|
Set |
getMacFXGFamilyNames(ULocale locale) |
Set |
getMacPlatformNames(ULocale locale) |
String |
getName(int languageID,
int nameID)
Get a 3, 1 name table entry.
|
String |
getName(int platformID,
int encodingID,
int languageID,
int nameID)
Get an arbitrary name table entry.
|
Set |
getPostscriptNames() |
String |
getPreferredCSSFamilyName() |
Set |
getWindowsFXGFamilyNames(ULocale locale) |
Set |
getWindowsPlatformNames(ULocale locale) |
boolean |
hasName(int platformID,
int encodingID,
int languageID,
int nameID) |
int |
selectFamilyNameId()
Fetch the nameID that should be used to fetch preferred family names
for this font.
|
String |
selectName(int nameid) |
void |
stream(Map tables,
boolean preserveTrademark,
int[] lookupNameIds) |
void |
subsetAndStream(Subset subset,
boolean preserveTrademark,
int[] lookupNameIds,
Map tables)
Add a subset of this name table to 'tables'.
|
public String getName(int languageID, int nameID) throws InvalidFontException
languageID is -1, then any actual language will do.InvalidFontExceptionpublic String getName(int platformID, int encodingID, int languageID, int nameID) throws InvalidFontException, UnsupportedEncodingException
languageID is -1, then any actual language will do.public boolean hasName(int platformID,
int encodingID,
int languageID,
int nameID)
throws InvalidFontException
InvalidFontExceptionpublic Set getCSSFamilyNames() throws InvalidFontException, UnsupportedFontException
public Set getMacFXGFamilyNames(ULocale locale) throws InvalidFontException, UnsupportedFontException
public Set getWindowsFXGFamilyNames(ULocale locale) throws InvalidFontException, UnsupportedFontException
public Set getMacPlatformNames(ULocale locale) throws InvalidFontException, UnsupportedFontException
public Set getWindowsPlatformNames(ULocale locale) throws InvalidFontException, UnsupportedFontException
public String getPreferredCSSFamilyName() throws InvalidFontException, UnsupportedFontException
public Set getPostscriptNames() throws InvalidFontException, UnsupportedFontException
public int selectFamilyNameId()
throws InvalidFontException
InvalidFontExceptionpublic void enumerateNames(com.adobe.fontengine.font.opentype.Name.NameSelector s,
int selectedNameId)
throws InvalidFontException,
UnsupportedFontException
public void subsetAndStream(Subset subset, boolean preserveTrademark, int[] lookupNameIds, Map tables) throws UnsupportedFontException, InvalidFontException
public void stream(Map tables, boolean preserveTrademark, int[] lookupNameIds) throws UnsupportedFontException, InvalidFontException
public String selectName(int nameid) throws UnsupportedEncodingException, InvalidFontException
Copyright © 2010 - 2020 Adobe. All Rights Reserved