<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    gembin

    OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

    HBase, Hadoop, ZooKeeper, Cassandra

    Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

    There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

    About Me

     

    Excluding font outlines in Flex can shave off over 200kb!

    Often when you need to embed a font you also need to include ‘bold’ and sometimes ‘italic’ styles. Sometimes you need more than one fontFamily. Flex by default will embed all glyphs of a fontFamily. Embedding every glyph if generally unnecessary. By restricting the character set (’unicode-range’) you can shave off between 50-100kb or more per font style (FontFamilies have varying amounts of glyphs and obviously varying complexities of outlines which effects how much you can save). Anyway by setting unicode-range for fonts we managed to shave 300kb off our application, I wasn’t expecting it to be so much so thought worth a blog ;)

    @font-face {
    src: url("assets/Arial.ttf");
    fontFamily: Arial;
    advancedAntiAliasing: true;
    unicode-range: U+0030-U+0039, /* 0-9 */
    U+0041-U+005A, /* Uppercase A-Z */
    U+0061-U+007A, /* Lowercase a-z */
    U+0021-U+002F, /* !"#$%&amp;'()*+,-./ */
    U+003A-U+0040, /* :;&lt;=&gt;?@ */
    U+005B-U+0060, /* [\]^_ */
    U+00A3-U+00A3, /* £ */
    U+00A9-U+00A9, /* © */
    U+00AE-U+00AE /* ® */
    /* U+00BF-U+0259 FOREIGN CHRS */
    }
    Further reading:
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html

    if anyone knows of other ranges you think can be generally useful please let me know ;)

    posted on 2008-09-18 13:50 gembin 閱讀(284) 評(píng)論(0)  編輯  收藏 所屬分類: Flex

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊(cè)

    收藏夾(9)

    Adobe

    Android

    AS3

    Blog-Links

    Build

    Design Pattern

    Eclipse

    Favorite Links

    Flickr

    Game Dev

    HBase

    Identity Management

    IT resources

    JEE

    Language

    OpenID

    OSGi

    SOA

    Version Control

    最新隨筆

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    free counters
    主站蜘蛛池模板: 好猛好深好爽好硬免费视频| 一级毛片免费观看不卡的| 亚洲av永久无码精品天堂久久| 亚洲精品在线不卡| 亚洲成人福利在线| 美女视频免费看一区二区| 久久精品无码精品免费专区| 女人体1963午夜免费视频| 四虎免费在线观看| 亚洲成Av人片乱码色午夜| 亚洲国产精品无码久久九九大片| 国产真实伦在线视频免费观看| 在线免费观看a级片| 久久亚洲精品无码观看不卡| 国产亚洲av人片在线观看| 国产成人亚洲综合色影视| 亚洲一日韩欧美中文字幕在线| 亚洲av无码片vr一区二区三区| 狠狠热精品免费观看| aⅴ在线免费观看| 性生交片免费无码看人| 四虎成人精品一区二区免费网站| 又粗又黄又猛又爽大片免费| 亚洲视频一区二区| 久久久久亚洲AV成人无码| 色窝窝亚洲AV网在线观看| 国产曰批免费视频播放免费s| 性感美女视频在线观看免费精品| 国产精品色午夜免费视频| 亚洲视频在线免费看| 亚洲妇女无套内射精| 一级黄色片免费观看| 四虎国产成人永久精品免费| 亚洲M码 欧洲S码SSS222| 男人天堂2018亚洲男人天堂| 草久免费在线观看网站| 一区二区在线免费观看| 亚洲综合另类小说色区色噜噜| 亚洲国产精品国自产电影| 亚洲精品无码aⅴ中文字幕蜜桃| 一级午夜免费视频|