首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > gwt-webfonts

gwt-webfonts

  • 资源大小:7.40 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Motivation GWT-compiled CSS is great but it lacks support for @font-face declaration and font files embedding. This project aims to add that type. How to include into your project Add dependency to the .jar (manually or via Maven: org.helios.gwt:gwt-webfonts:0.1). Include dependency in your gwt.xml file: How to declare fonts It simply provides a new type of Resource (to include into a client bundle). Use @Source standard label to indicate font files and that"s it. ``` public interface MyClientBundle extends ClientBundle { // be sure to include eot fonts for IE8 and previous versions) @Source({"font1.ttf", "font1.eot"}) FontResource myFont(); @Source("styles.css") MyCssResource css(); } (...) private static MyClientBundle MY_RESOURCES = GWT.create(MyClientBu
VIP VIP
0.178835s