add ttf2woff

This commit is contained in:
mkwiser
2014-10-04 15:39:26 +08:00
parent dbfa8b881c
commit 5299b6c737
35 changed files with 1123 additions and 607 deletions

35
demo/ttf2woff.html Normal file
View File

@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ttf2woff test</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="./css/glyf.css">
<style id="font-face"></style>
</head>
<body>
<a class="saveas" href="" download="">保存</a>
<ul id="font-list" class="font-list"></ul>
<script>
require.config({
baseUrl: '../src',
paths: {
demo: '../demo/js',
deflate: '../dep/pako_deflate.min'
}
});
define('jquery', $);
</script>
<script>
require(['demo/ttf2woff']);
</script>
</body>
</html>