FontsManager
FontsManager class
Manages fonts across the presentation.
addEmbeddedFont
| Name | Description |
|---|
| addEmbeddedFont (FontData, int) | Adds the embedded font |
Error
| Error | Condition |
|---|
| ArgumentException | An ArgumentException can be thrown if font data is null or this font is already embedded Keep in mind when copying any fonts that most fonts are copyrighted. First locate the license of a font before hand and verify they can be freely transferred to another machine. |
addEmbeddedFont
| Name | Description |
|---|
| addEmbeddedFont (byte[], int) | Adds the embedded font |
Error
| Error | Condition |
|---|
| ArgumentException | An ArgumentException can be thrown if font data is null or this font is already embedded Keep in mind when copying any fonts that most fonts are copyrighted. First locate the license of a font before hand and verify they can be freely transferred to another machine. |
getEmbeddedFonts
| Name | Description |
|---|
| getEmbeddedFonts () | Returns the fonts embedded in the presentation |
Returns:
FontData
getFontBytes
| Name | Description |
|---|
| getFontBytes (FontData, int) | Retrieves the byte array representing the font data for a specified font style and font data. |
Parameters:
| Name | Type | Description |
|---|
| fontData | FontData | The font data object containing the information about the font FontData. |
| fontStyle | int | The style of the font for which the data is to be retrieved FontStyleType. |
Returns:
byte
getFontEmbeddingLevel
| Name | Description |
|---|
| getFontEmbeddingLevel (byte[], String) | Determines the embedding level of a font from the given byte array and font name. |
Parameters:
| Name | Type | Description |
|---|
| fontBytes | byte[] | The byte array containing the font data. |
| fontName | String | The name of the font. |
Returns:
int
Error
| Error | Condition |
|---|
| ArgumentNullException | Thrown when {@code fontBytes} is null. |
getFontFallBackRulesCollection
| Name | Description |
|---|
| getFontFallBackRulesCollection () | Represents a user’s collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality Read/write IFontFallBackRulesCollection. |
Returns:
FontFallBackRulesCollection
getFontSubstRuleList
| Name | Description |
|---|
| getFontSubstRuleList () | Font substitutions to use when rendering. Read/write IFontSubstRuleCollection. |
Returns:
FontSubstRuleCollection
getFonts
| Name | Description |
|---|
| getFonts () | Returns the fonts used in the presentation |
Returns:
FontData
getSubstitutions
| Name | Description |
|---|
| getSubstitutions () | Gets the information about fonts that will be replaced on the presentation’s rendering. |
Returns:
PointCollection, SummaryZoomSectionCollection, ChartSeriesCollection, SectionSlideCollection, GradientStopCollectionEffectiveData, MasterLayoutSlideCollection, MathParagraph, SmartArtNodeCollection, ShapeCollection, SortedList, VideoCollection, ExtraColorSchemeCollection, MathBlock, KeyedCollection, PieSplitCustomPointCollection, ImageCollection, TabCollection, GlobalLayoutSlideCollection, List, ChartDataWorksheetCollection, ChartDataPointCollection, SectionCollection, Dictionary, ColorOperationCollection, Collection, ImageTransformOperationCollection, VbaReferenceCollection, GradientStopCollection, MotionPath, ChartCategoryCollection, FontSubstRuleCollection, CustomXmlPartCollection, SlideCollection, DigitalSignatureCollection, ImageTransformOCollectionEffectiveData, BehaviorCollection, SequenceCollection, CaptionsCollection, CellCollection, Column, ControlCollection, ChartCellCollection, LineFormatCollection, AudioCollection, VbaModuleCollection, Stack, ControlPropertiesCollection, ParagraphCollection, EffectStyleCollection, Row, Sequence, Queue, FontFallBackRulesCollection, SmartArtShapeCollection, PortionCollection, MasterSlideCollection, ColumnCollection, LinkedList, TrendlineCollection, FillFormatCollection, DrawingGuidesCollection, DataLabelCollection, RowCollection, BehaviorPropertyCollection, LayoutSlideCollection, TagCollection, SortedDictionary, TextAnimationCollection, ReadOnlyCollection, CommentCollection, CommentAuthorCollection
removeEmbeddedFont
| Name | Description |
|---|
| removeEmbeddedFont (FontData) | Removes the embedded font |
replaceFont
Parameters:
| Name | Type | Description |
|---|
| sourceFont | FontData | Source font |
| destFont | FontData | Destination font |
replaceFont
| Name | Description |
|---|
| replaceFont (FontSubstRule) | Replace font in presentation using information provided in FontSubstRule |
Parameters:
replaceFont
| Name | Description |
|---|
| replaceFont (FontSubstRuleCollection) | Replace font in presentation using information provided in collection of FontSubstRule |
Parameters:
setFontFallBackRulesCollection
| Name | Description |
|---|
| setFontFallBackRulesCollection (FontFallBackRulesCollection) | Represents a user’s collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality Read/write IFontFallBackRulesCollection. |
setFontSubstRuleList
| Name | Description |
|---|
| setFontSubstRuleList (FontSubstRuleCollection) | Font substitutions to use when rendering. Read/write IFontSubstRuleCollection. |