Navigation Menu

Skip to content

Commit

Permalink
updated font cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
gta191977649 committed Jul 9, 2018
1 parent 2194a84 commit 201ab31
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions css/font.css
Expand Up @@ -21,8 +21,10 @@
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
/*
@font-face {
font-family: "XinGothic";
src: url("../fonts/XinGothic.otf") format("opentype"),
url("../fonts/XinGothic.ttf") format("truetype");
}
*/
2 changes: 1 addition & 1 deletion css/main.css
Expand Up @@ -44,7 +44,7 @@ Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready,
body {
margin: 0;
-webkit-font-smoothing: auto;
font-family: 'Lora',"XinGothic","SimSun", "MS Mincho"
font-family: 'Lora',"Cambria","SimSun", "MS Mincho"
}

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
Expand Down
2 changes: 2 additions & 0 deletions functions.php
Expand Up @@ -22,6 +22,8 @@ function sparrow_script_enqueue() {

wp_enqueue_script('vibrant', get_template_directory_uri()."/js/vibrant.js",array(),null,true);
wp_enqueue_script('effect', get_template_directory_uri()."/js/effect.js",array(),null,true);
wp_enqueue_script('font-cdn',"http://cdn.webfont.youziku.com/wwwroot/js/wf/youziku.api.min.js",array(),null,true);
wp_enqueue_script('font-js', get_template_directory_uri()."/js/font.js",array(),null,true);


/*
Expand Down
Empty file added js/browsercheck.js
Empty file.
6 changes: 4 additions & 2 deletions js/font.js
@@ -1,2 +1,4 @@
$youziku.load("body", "4ce6f5ee29044397a5eadf347e2895a9", "SourceHanSerif-L");
$youziku.draw();
$youziku.load("body", "3f97bf64e630497d8ed1c4bd7903d41e", "SourceHan-S-SC");
/*$youziku.load("#id1,.class1,h1", "3f97bf64e630497d8ed1c4bd7903d41e", "SourceHan-S-SC");*/
/*...*/
$youziku.draw();

0 comments on commit 201ab31

Please sign in to comment.