Appearance
Rule.io SDK / rcml/src / getFallbackFontFamily
Function: getFallbackFontFamily()
getFallbackFontFamily(
fontFamily):string
Defined in: rcml/src/email/theme-defaults.ts:154
Return the CSS generic-family fallback for a main family name. The lookup is keyed by DefaultFontFamily enum keys — e.g. 'TimesNewRoman', 'CourierNew'. Anything the map does not know about falls back to the Helvetica default ('sans-serif'), so the function never returns undefined and never throws.
Parameters
fontFamily
string
A DefaultFontFamily key, or any other string (unknown strings get the Helvetica fallback).
Returns
string
A CSS generic family: 'sans-serif', 'serif', 'monospace', or 'cursive'.