use wcf\data\DatabaseObject;
use wcf\system\application\ApplicationHandler;
+use wcf\system\style\StyleCompiler;
use wcf\system\WCF;
use wcf\util\FileUtil;
use wcf\util\ImageUtil;
return null;
}
+ /**
+ * @since 5.4
+ */
+ public function getEmailFontFamily(): string {
+ $fontFamily = $this->getVariable('wcfFontFamilyFallback');
+ if ($fontFamily === StyleCompiler::SYSTEM_FONT_NAME) {
+ $fontFamily = StyleCompiler::SYSTEM_FONT_FAMILY;
+ }
+
+ return $fontFamily;
+ }
+
/**
* Loads style-specific variables.
*/
public const SYSTEM_FONT_NAME = 'system';
- private const SYSTEM_FONT_FAMILY = 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
+ public const SYSTEM_FONT_FAMILY = 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
"Helvetica Neue", Arial, sans-serif';
- private const SYSTEM_FONT_FAMILY_MONOSPACE = 'ui-monospace, Menlo, Monaco, "Cascadia Mono",
+ public const SYSTEM_FONT_FAMILY_MONOSPACE = 'ui-monospace, Menlo, Monaco, "Cascadia Mono",
"Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
"Fira Mono", "Droid Sans Mono", "Courier New", monospace';