Created
August 17, 2010 18:50
-
-
Save jwalsh/531421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
F=myFont.ttf | |
DATAURI=$(uuencode -m $F processed | grep -v begin-base64 | grep -v "====" | tr -d "\n") | |
echo ' | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<style> | |
@font-face { | |
font-family: "myFont";' | |
echo "src: url('data:font/ttf;base64,${DATAURI}')" | |
echo ' | |
} | |
body { | |
font-family: "myFont"; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>ChunkFiveRegular</h1> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis erat orci. Sed tortor justo, vestibulum vel aliquam a, dictum sit amet nisl. Phasellus a placerat tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla sem dui, rutrum non convallis in, tristique sed nibh. Proin id nisl vel risus gravida tristique euismod at sapien. Ut elit urna, adipiscing ut condimentum id, facilisis ut felis. In massa est, mollis in volutpat eget, molestie vitae sem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas lacinia accumsan lorem eget gravida. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed metus erat, ultrices quis volutpat a, consectetur quis erat. Aliquam feugiat aliquet faucibus. | |
</p> | |
<p> | |
Nulla facilisi. Fusce rutrum, arcu in auctor aliquet, est tortor vulputate odio, et tincidunt velit lacus id felis. Suspendisse tortor nibh, rutrum et pharetra et, euismod ac nulla. Phasellus dui dolor, posuere quis tempor iaculis, sagittis in massa. Curabitur lacus libero, pretium eu interdum in, ullamcorper et felis. In arcu mauris, sagittis in sagittis bibendum, vehicula vitae urna. Donec porttitor tempor purus id feugiat. Integer ante ipsum, varius ac congue non, volutpat eget purus. Donec scelerisque sem lobortis velit blandit porta. Curabitur fermentum feugiat leo, id condimentum lacus consectetur non. Pellentesque ultrices lectus a nunc gravida cursus. Curabitur venenatis tincidunt augue vitae rutrum. Donec vehicula commodo arcu, quis tincidunt diam ultrices vel. Proin ac enim sed felis placerat blandit eu sit amet nunc. Donec sed lorem vel velit aliquam adipiscing at sit amet nisl. | |
</p> | |
</body> | |
</html> | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment