应该很容易,因为它有一个钩子,
add_filter(\'of_recognized_font_faces\',\'add_google_fonts_list\');
function add_google_fonts_list($defaults){
//add as many as you want
$mine = array(
\'Ubuntu\' => "\'Ubuntu\', sans-serif",
\'Lobster\' => "\'Lobster\', cursive",
);
return array_merge($mine,$defaults);
}
渲染css时,请确保添加正确的导入示例:
@import url(http://fonts.googleapis.com/css?family=Ubuntu);