FontsManager

FontsManager class

Manages fonts across the presentation.

addEmbeddedFont

NameDescription
addEmbeddedFont (FontData, int)Adds the embedded font

Returns: void

Exception

ErrorCondition
ArgumentExceptionAn 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

NameDescription
addEmbeddedFont (byte[], int)Adds the embedded font

Returns: void

Exception

ErrorCondition
ArgumentExceptionAn 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

NameDescription
getEmbeddedFonts ()Returns the fonts embedded in the presentation

Returns: FontData


getFontBytes

NameDescription
getFontBytes (FontData, int)Retrieves the byte array representing the font data for a specified font style and font data.

Parameters:

NameTypeDescription
fontDataFontDataThe font data object containing the information about the font FontData.
fontStyleintThe style of the font for which the data is to be retrieved FontStyle.

Returns: byte


getFontEmbeddingLevel

NameDescription
getFontEmbeddingLevel (byte[], String)Determines the embedding level of a font from the given byte array and font name.

Parameters:

NameTypeDescription
fontBytesbyte[]The byte array containing the font data.
fontNameStringThe name of the font.

Returns: int

Exception

ErrorCondition
ArgumentNullExceptionThrown when {@code fontBytes} is null.

getFontFallBackRulesCollection

NameDescription
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

NameDescription
getFontSubstRuleList ()Font substitutions to use when rendering. Read/write IFontSubstRuleCollection.

Returns: FontSubstRuleCollection


getFonts

NameDescription
getFonts ()Returns the fonts used in the presentation

Returns: FontData


getSubstitutions

NameDescription
getSubstitutions ()Gets the information about fonts that will be replaced on the presentation’s rendering.

Returns: CommentCollection, BehaviorPropertyCollection, LineFormatCollection, ColumnCollection, SortedList, ChartDataWorksheetCollection, EffectStyleCollection, GradientStopCollectionEffectiveData, SmartArtNodeCollection, DigitalSignatureCollection, TabCollection, PieSplitCustomPointCollection, SlideCollection, List, ChartCategoryCollection, DrawingGuidesCollection, SmartArtShapeCollection, ImageTransformOperationCollection, ShapeCollection, FontFallBackRulesCollection, SortedDictionary, Sequence, SummaryZoomSectionCollection, RowCollection, ChartSeriesCollection, LinkedList, Stack, ChartCellCollection, CommentAuthorCollection, Collection, AudioCollection, Row, DataLabelCollection, CustomXmlPartCollection, Dictionary, MathBlock, TrendlineCollection, ImageTransformOCollectionEffectiveData, ParagraphCollection, MasterSlideCollection, TextAnimationCollection, ReadOnlyCollection, SectionCollection, MotionPath, ChartDataPointCollection, ControlPropertiesCollection, FontSubstRuleCollection, BehaviorCollection, Column, VbaReferenceCollection, PointCollection, ImageCollection, MasterLayoutSlideCollection, FillFormatCollection, GradientStopCollection, PortionCollection, Queue, LayoutSlideCollection, GlobalLayoutSlideCollection, TagCollection, SequenceCollection, ControlCollection, ExtraColorSchemeCollection, SectionSlideCollection, ColorOperationCollection, VbaModuleCollection, CellCollection, KeyedCollection, MathParagraph, VideoCollection


removeEmbeddedFont

NameDescription
removeEmbeddedFont (FontData)Removes the embedded font

Returns: void


replaceFont

NameDescription
replaceFont (FontData, FontData)Replace font in presentation

Parameters:

NameTypeDescription
sourceFontFontDataSource font
destFontFontDataDestination font

Returns: void


replaceFont

NameDescription
replaceFont (FontSubstRule)Replace font in presentation using information provided in FontSubstRule

Parameters:

NameTypeDescription
substRuleFontSubstRuleFont substitution info

Returns: void


replaceFont

NameDescription
replaceFont (FontSubstRuleCollection)Replace font in presentation using information provided in collection of FontSubstRule

Parameters:

NameTypeDescription
substRulesFontSubstRuleCollectionFont substitution rules collection

Returns: void


setFontFallBackRulesCollection

NameDescription
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.

Returns: void


setFontSubstRuleList

NameDescription
setFontSubstRuleList (FontSubstRuleCollection)Font substitutions to use when rendering. Read/write IFontSubstRuleCollection.

Returns: void