Cufon是一种能够根据指定的字体渲染文字的技术。今天试用了下,主要有几个步骤:
1、下载Cufon.js(http://cufon.shoqolate.com/generate/)
2、获取需要渲染效果的字体
这里我通过从http://sc.chinaz.com/info/140331289268.htm网址下载了Flower Bold字体。
3、根据字体获取相应的js文件
从http://cufon.shoqolate.com/generate/网址选择字体创建js文件
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvoAAAFCCAIAAAAPDO4HAAAgAElEQVR4nO3dT2gdV//f8YMo4ocXXnjhRQpeGOqFC/GDEaEEfqFehOJCFqGYNhQt3IuhgQbkxa3IIsX8eBaSiNAjFMqzSEuQbCM3wpbzSI3dqFFtxzi/GMdy7CfOI8c/BVl5JMsK8uMrKfa94nu6mNHMmZkzf6Q7N7oevV8MYu7MmTNnRjeZj8+cGSn97DsmJiYmJiYmpgJPattbwMTExMTExMTU0Im4w8TExMTExFTwibjDxMTExMTEVPCJuMPExMTExMRU8Im4w8TExMTExFTwibjDxMTExMTEVPApKe58/0/zTExMTExMTEwv+5QSdzQAAMBLjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKjrgDAAAKrlnijvz4icyO/ma7255mSE3udunJt/XVd/SzB43ay7ZbfSQPT+taJanMi2WZOqV/uW1fW5mRqVP6xXJ0jcyOyvd/yKOVAIAdJNe48+yBTH8sU6dk6pTc/0ivPsq+qVw+oiff3tzuGqChzZDLR2SwRS69oSeOFjnu3Dghgy16LfHL82JZBlvigovMT8pgixeG5MdP/GB086Sc359nawEAO0B+cefrd2WoVT59RS4fkctH5NzeTV2W8s8Za/MpV1yt9eoj/fxJY5vh1Tw/KYMtMjPciMr1+q+6MqPXf21I5Zsk//hfZOifpffuZIw7a/My2KKvHHPXNSLuRL4GAICCySfuyJ3fy1CrTH9sLKrJ/GT2duSeM5zUlVJm7HBopw3s3bnz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AwAACo64AwAACo64AwAACo64AwAACo64AwAACo64AwAACo64AwAACu7/A1Pe7EqPNeCdAAAAAElFTkSuQmCC" alt="" />
一直到底部生成js文件,这里通过Flower Bold字体生成的js文件为Flower_700.font.js。
4、使用Cufon.js和根据字体生成的js替换文字
1)首先,需要在html中引入两个文件:
<script type="text/javascript" src="../js/cufon.js"></script>
<script type="text/javascript" src="../js/Flower_700.font.js"></script>
2)然后通过使用Cufon.replace渲染文字
<script type="text/javascript">
Cufon.replace("h2,h1,h6");
Cufon.replace("h1,h6",{color:"limegreen"});
</script>
整个示例为:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cufon Test</title>
<script type="text/javascript" src="../js/cufon.js"></script>
<script type="text/javascript" src="../js/Flower_700.font.js"></script>
<script type="text/javascript">
Cufon.replace("h2,h1,h6");
Cufon.replace("h1,h6",{color:"limegreen"});
</script>
</head>
<body>
<h1>The color is limegreen.</h1>
<h2>The color is black.</h2>
<h6>How about this font?</h6>
</body>
</html>
显示效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfIAAADDCAIAAAD2ogQ7AAAgAElEQVR4nO2db0wb25n/rYoXqEVVKlEpUmkb9dLbvMiLyIpVV7IKokEKXa/IItiFyl1QFLrQpUouSqOki9Z7wxZuCpXVpQV0vYKKiAu77sp7oZTseiW2ZLkguTAEh9iJyTXBMX+CwbEdx3Gwmd+LR/f8pjPjsUmA5M79fjQvYObMmXNmznzPM895zrGGBwAAoCI0r7sAAAAA9hPIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIOgAAqArIusrxxX2hndBhXjG5m1yMLSZ3k4d5UQAAI62s08vpjDiz3wKJwGEW/Q3EE/PQrVhPrL/GYsRSMZLylecr2llt0XxRJBnZx8ypjlyUE2p38EUwkUrwPG95ZNHOattW2vbrigCAPZF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ABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFZB1AABQFf8P8dWt/XlhJIoAAAAASUVORK5CYII=" alt="" />
- python 利用pymssql连接MSSQL数据库,简单示例
#-*- coding:GBK -*- import pymssql print 'Connect to the Datebase....' conn = pymssql.connect(host=' ...
- web 框架的本质及自定义web框架 模板渲染jinja2 mvc 和 mtv框架 Django框架的下载安装 基于Django实现的一个简单示例
Django基础一之web框架的本质 本节目录 一 web框架的本质及自定义web框架 二 模板渲染JinJa2 三 MVC和MTV框架 四 Django的下载安装 五 基于Django实现的一个简单 ...
- Cufon在渲染网页字体你不知道的事
清单 1. 无效的 font-family 字体指定 <style> .introduction { font-family:'Baroque Script';} </style&g ...
- 基于.NET CORE微服务框架 -surging的介绍和简单示例 (开源)
一.前言 至今为止编程开发已经11个年头,从 VB6.0,ASP时代到ASP.NET再到MVC, 从中见证了.NET技术发展,从无畏无知的懵懂少年,到现在的中年大叔,从中的酸甜苦辣也只有本人自知.随着 ...
- SignalR代理对象异常:Uncaught TypeError: Cannot read property 'client' of undefined 推出的结论 SignalR 简单示例 通过三个DEMO学会SignalR的三种实现方式 SignalR推送框架两个项目永久连接通讯使用 SignalR 集线器简单实例2 用SignalR创建实时永久长连接异步网络应用程序
SignalR代理对象异常:Uncaught TypeError: Cannot read property 'client' of undefined 推出的结论 异常汇总:http://www ...
- CSharpGL(26)在opengl中实现控件布局/渲染文字
CSharpGL(26)在opengl中实现控件布局/渲染文字 效果图 如图所示,可以将文字.坐标轴固定在窗口的一角. 下载 CSharpGL已在GitHub开源,欢迎对OpenGL有兴趣的同学加入( ...
- [.net 面向对象程序设计进阶] (20) 反射(Reflection)(上)利用反射技术实现动态编程
[.net 面向对象程序设计进阶] (20) 反射(Reflection)(上)利用反射技术实现动态编程 本节导读:本节主要介绍什么是.NET反射特性,.NET反射能为我们做些什么,最后介绍几种常用的 ...
- JAVA使用jdbc连接MYSQL简单示例
以下展示的为JAVA使用jdbc连接MYSQL简单示例: import java.sql.DriverManager; import java.sql.ResultSet; import java.s ...
- lucene创建索引简单示例
利用空闲时间写了一个使用lucene创建索引简单示例, 1.使用maven创建的项目 2.需要用到的jar如下: 废话不多说,直接贴代码如下: 1.创建索引的类(HelloLucene): packa ...
随机推荐
- pycharm激活码 pycharm安装后激活方式 pycharm汉化包安装
汉化包 下载地址: 链接:http://pan.baidu.com/s/1pL6xWl9 密码:x1fh 将下载好的文件解压:将resources_cn.jar放到安装目录下的lib目录下即可 重启 ...
- Python3简明教程(七)—— 字符串
字符串是 Python 中最常用的数据类型.本节实验将会学习如何对 Python3 的字符串进行处理操作. 字符串的三种表示 可以通过几种不同的方式表示字符串.如单引号('...')或双引号(&quo ...
- TIOJ1208 第K大连续和
第k大的题一般都有点麻烦 pbds库的tree,需要研究一下https://codeforces.com/blog/entry/11080find_by_order() and order_of_ke ...
- C++虚析构函数的使用
如果,你设计的程序里,释放对象实例的时候,有“使用某个基类的指针,来释放它指向的派生类的实例”这种用法出现的话,那么,这个基类的destructor就应该设计成virtual的. 如果,基类不是vir ...
- C++:new的使用
这里先开个头,以后做详细补充个: new 分配内存失败后会返回空指针:
- 实训day02 python
一.数据类型 列表: 定义:在[]内,可以存放多个任意类型的值,并以逗号隔开: 一般用于存放学生的爱好,课堂的周期等. 定义一个学生列表,可存放多个学生 students = ['A','B','C' ...
- adb 调试真机 wait for device 错误解决办法
起因 真机测试,使用adb安装和卸载应用时,出现wait for device. 解决办法 拔掉USB重新插入即可.
- Luogu P3806 点分治模板1
题意: 给定一棵有n个点的树询问树上距离为k的点对是否存在. 分析: 这个题的询问和点数都不多(但是显然暴力是不太好过的,即使有人暴力过了) 这题应该怎么用点分治呢.显然,一个模板题,我们直接用套路, ...
- 删除mysql中user为空用户,mysql空密码
进入mysql数据库 mysql -uroot -p 查看用户信息 select user,host ,Password from mysql.user; 如下图: 删除user为空用户 delete ...
- 蓝牙bluez学习(1) Stack Architecture
Bluez支持的features Core Specification 4.2 (GAP, L2CAP, RFCOMM, SDP, GATT) Classic Bluetooth (BR/EDR) B ...