public abstract class NameIndexDataProvider extends Object implements ICffIndexDataProvider
Provides settings common to CFF fonts.
| Constructor and Description |
|---|
NameIndexDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addName(String name)
Adds a font name to the Name INDEX structure.
|
abstract String |
get(int index)
Gets font name at the specified index.
|
abstract int |
getCount()
Gets the number of objects in the CFF INDEX structure.
|
abstract String |
getName(int index)
Gets name of font at the specified index.
|
abstract byte[] |
getRawBytes()
Gets all the bytes of the CFF INDEX structure.
|
abstract void |
removeName(int index)
Removes the name at the specified index.
|
abstract void |
set(int index,
String name)
Specifies font name at the specified index.
|
abstract void |
setName(String name,
int index)
Sets font name at the specified index.
|
public abstract int getCount()
Gets the number of objects in the CFF INDEX structure.
getCount in interface ICffIndexDataProviderpublic abstract byte[] getRawBytes()
Gets all the bytes of the CFF INDEX structure.
getRawBytes in interface ICffIndexDataProviderpublic abstract String getName(int index)
Gets name of font at the specified index.
index - Font index.public abstract void addName(String name)
Adds a font name to the Name INDEX structure. Use this method with caution because each font name in the CFF Name INDEX structure must have a corresponding DICT structure in the Top DICT index according to the CFF specification.
public abstract void setName(String name, int index)
Sets font name at the specified index.
name - Font name.index - Font index.public abstract void removeName(int index)
Removes the name at the specified index. Use this method with caution because each font name in the CFF Name INDEX structure must have a corresponding DICT structure in the Top DICT index according to the CFF specification.
index - Font index.public abstract String get(int index)
Gets font name at the specified index.
index - Font index.public abstract void set(int index,
String name)
Specifies font name at the specified index.
index - Font index.name - Font name.Copyright © 2025 Aspose. All Rights Reserved.