[]
Adds the specified EmbeddedFont to the current collection. Throws an exception if the font is already present in the collection.
public int Add(EmbeddedFont embeddedFont)
Type | Name | Description |
---|---|---|
EmbeddedFont | embeddedFont | The EmbeddedFont to add. |
Type | Description |
---|---|
int | The index of the newly added font in the collection. |
Builds an EmbeddedFont based on the specified font, and adds it to the current collection. Throws an exception if the font is already present in the collection.
public int Add(Font font)
Type | Name | Description |
---|---|---|
Font | font | The Font to add. |
Type | Description |
---|---|
int | The index of the newly added font in the collection. |