Package com.itextpdf.io.font
Class CFFFont.DictNumberItem
java.lang.Object
com.itextpdf.io.font.CFFFont.Item
com.itextpdf.io.font.CFFFont.DictNumberItem
- Enclosing class:
- CFFFont
A dictionary number on the list. This implementation is inefficient: it doesn't use the variable-length representation.
-
Field Summary
Fields inherited from class com.itextpdf.io.font.CFFFont.Item
myOffset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
emit
(byte[] buffer) Emit the byte stream for this item.int
getSize()
Retrieves the size of a DictNumberItem.void
increment
(int[] currentOffset) Remember the current offset and increment by item's size in bytes.void
setSize
(int size) Sets the size of a DictNumberItem.Methods inherited from class com.itextpdf.io.font.CFFFont.Item
xref
-
Constructor Details
-
DictNumberItem
public DictNumberItem(int value)
-
-
Method Details
-
getSize
public int getSize()Retrieves the size of a DictNumberItem.- Returns:
- size value
-
setSize
public void setSize(int size) Sets the size of a DictNumberItem.- Parameters:
-
size
- size value
-
increment
public void increment(int[] currentOffset) Description copied from class:CFFFont.Item
Remember the current offset and increment by item's size in bytes.- Overrides:
-
increment
in classCFFFont.Item
- Parameters:
-
currentOffset
- increment offset by item's size
-
emit
public void emit(byte[] buffer) Description copied from class:CFFFont.Item
Emit the byte stream for this item.- Overrides:
-
emit
in classCFFFont.Item
- Parameters:
-
buffer
- byte array
-