get_data(); $data['settings']['typography']['fontFamilies']['theme'] = array_merge( get_system_fonts(), $data['settings']['typography']['fontFamilies']['theme'] ?? [], ); $theme_json->update_with( $data ); return $theme_json; } /** * Return system font stacks. * * @since 1.0.0 * * @return array */ function get_system_fonts(): array { $fonts = [ [ 'name' => 'Sans Serif', 'slug' => 'sans-serif', 'fontFamily' => '-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif', ], [ 'name' => 'Serif', 'slug' => 'serif', 'fontFamily' => 'Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol', ], [ 'name' => 'Monospace', 'slug' => 'monospace', 'fontFamily' => 'Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace', ], ]; return apply_filters( 'blockify_system_fonts', $fonts ); }