FontsManager
FontsManager class
Manages fonts across the presentation.
addEmbeddedFont
Name | Description |
---|---|
addEmbeddedFont (FontData, int) | Adds the embedded font |
Returns: void
Exception
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 |
Returns: void
Exception
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 FontStyle. |
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
Exception
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: 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
Name | Description |
---|---|
removeEmbeddedFont (FontData) | Removes the embedded font |
Returns: void
replaceFont
Name | Description |
---|---|
replaceFont (FontData, FontData) | Replace font in presentation |
Parameters:
Name | Type | Description |
---|---|---|
sourceFont | FontData | Source font |
destFont | FontData | Destination font |
Returns: void
replaceFont
Name | Description |
---|---|
replaceFont (FontSubstRule) | Replace font in presentation using information provided in FontSubstRule |
Parameters:
Name | Type | Description |
---|---|---|
substRule | FontSubstRule | Font substitution info |
Returns: void
replaceFont
Name | Description |
---|---|
replaceFont (FontSubstRuleCollection) | Replace font in presentation using information provided in collection of FontSubstRule |
Parameters:
Name | Type | Description |
---|---|---|
substRules | FontSubstRuleCollection | Font substitution rules collection |
Returns: void
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. |
Returns: void
setFontSubstRuleList
Name | Description |
---|---|
setFontSubstRuleList (FontSubstRuleCollection) | Font substitutions to use when rendering. Read/write IFontSubstRuleCollection. |
Returns: void