Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordFontResolver

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
0eef6a5756b9 with working tree changes
Modifiers
static

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? required
The requested font family.

Returns

string? The resolved font family or fontFamily if no mapping exists.