Class
WordFontResolver
OfficeIMO.Word
Resolves generic font family names to platform specific fonts.
Inheritance
- object
- WordFontResolver
Methods
public static string? Resolve(string? fontFamily) #Resolves the provided font family name to an actual installed font. Generic families like serif or monospace are mapped to portable Office families (Times New Roman, Calibri, Consolas, Comic Sans MS, Impact) that are the same on every platform.
Parameters
- fontFamily string?
- The requested font family.
Returns
string? The resolved font family or fontFamily if no mapping exists.