/** * * @TODO do * */ function load_custom_font($font, $selectors) { if ($font) { $foundry = new PageLinesFoundry(); if (!isset($foundry->foundry[$font])) { return ''; } $rule = sprintf('%s{font-family: %s;}', $selectors, $foundry->foundry[$font]['family']); $import = $foundry->foundry[$font]['google'] ? $foundry->get_the_import($font) : ''; return sprintf('<style type="text/css">%s%s</style>', $import, $rule); } else { return ''; } }