摘要
为了使网页支持更多的字体类型,尤其是中文字体类型,提出两种基于按需索取的中文Web Fonts解决方案。对现有英文Web Fonts技术进行探讨,分析方案存在的问题,并对其浏览器兼容性进行测试。在此基础上,针对中文字体文件过大的问题,对@ font-face和Typeface.js两种方案进行优化,通过把中文字体库上传到Web服务器上,根据请求参数,按需索取字体文件和字形轮廓信息。最后通过搭建一个实际网络环境,验证了方案的有效性。
To make the webpages support more types of fonts, especially the Chinese fonts, two solutions of on-demand-based Chinese Web Fonts are put forward. Firstly, current solutions for English Web Fonts technology are discussed, 'the existing problems of the solutions are analysed, and their browser compatibility is tested. On this basis, for the problem of too large the Chinese font files have, two solutions of @ font-face and Typeface. js are optimised. By uploading the Chinese fonts library to Web server, fonts files and glyph outlines information are on-demand retrieved according to the parameters requested. Finally the effectiveness of the presented solutions is demonstrated by setting up an actual network environment.
出处
《计算机应用与软件》
CSCD
北大核心
2013年第6期63-66,71,共5页
Computer Applications and Software
基金
国家教育部高等学校博士学科科研基金项目(20114101110007)
河南省教育厅创新人才工程项目(2011HASTTT003)
河南省教育厅信息化工程项目(2008xxh001)