Create Fallback Font
Contents
[
Hide
]
Aspose.Slides supports FontFallBackRule class and FontFallBackRule class to specify the rules to apply a fallback font. FontFallBackRule class represents an association between the specified Unicode range, used for searching missed glyphs, and a list of fonts that may contain proper glyphs:
var startUnicodeIndex = 0xb80;
var endUnicodeIndex = 0xbff;
var firstRule = new aspose.slides.FontFallBackRule(startUnicodeIndex, endUnicodeIndex, "Vijaya");
var secondRule = new aspose.slides.FontFallBackRule(0x3040, 0x309f, "MS Mincho, MS Gothic");
// Using multiple ways you can add fonts list:
var fontNames = java.newArray("java.lang.String", ["Segoe UI Emoji, Segoe UI Symbol", "Arial"]));
var thirdRule = new aspose.slides.FontFallBackRule(0x1f300, 0x1f64f, fontNames);
It is also possible to remove fallback font or addFallBackFonts into existing FontFallBackRule object.
FontFallBackRulesCollection can be used to organize a list of FontFallBackRule objects, when there is a need to specify fallback font replacement rules for multiple Unicode ranges.