IFontsManager class

IFontsManager class

Manages fonts across the presentation.

The IFontsManager type exposes the following members:

Properties

PropertyDescription
font_subst_rule_listFont substitutions to use when rendering
Read/write IFontSubstRuleCollection.
font_fall_back_rules_collectionRepresents a user’s collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality
Read/write IFontFallBackRulesCollection.
prefer_registered_fonts_over_embeddedSpecifies whether registered fonts should be preferred over embedded fonts with the same font name and style.
When enabled, matching embedded fonts are temporarily replaced with corresponding registered fonts during export.

Methods

MethodDescription
get_substitutions(self)Gets the information about fonts that will be replaced on the presentation’s rendering.
get_substitutions(self, slides)Gets the information about fonts that will be replaced during rendering of the specified slides.
add_embedded_font(self, font_data, embed_font_rule)Adds the embedded font.
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.An ArgumentException can be thrown if font data is None or this font is already embedded
add_embedded_font(self, font_data, embed_font_rule)Adds the embedded font
Keep in mind when adding 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.An ArgumentException can be thrown if font data is None or this font is already embedded
replace_font(self, source_font, dest_font)Replace font in presentation
replace_font(self, subst_rule)Replace font in presentation using information provided in IFontSubstRule
replace_font(self, subst_rules)Replace font in presentation using information provided in collection of IFontSubstRule
get_fonts(self)Returns the fonts used in the presentation
get_embedded_fonts(self)Returns the fonts embedded in the presentation
remove_embedded_font(self, font_data)Removes the embedded font
get_font_bytes(self, font_data, font_style)Retrieves the byte array representing the font data for a specified font style and font data.
get_font_embedding_level(self, font_bytes, font_name)Determines the embedding level of a font from the given byte array and font name.

See Also