<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 閱讀(285) 評論(0)  編輯  收藏 所屬分類: Flex

    導航

    統計

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊

    收藏夾(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

    最新隨筆

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    free counters
    主站蜘蛛池模板: 日日麻批免费40分钟日本的| 免费在线观看亚洲| 香蕉视频亚洲一级| 亚洲精品国产精品乱码不卡√| 13一14周岁毛片免费| 国产成人高清亚洲一区91| 国产v亚洲v天堂无码网站| 久久WWW免费人成人片| 成年免费大片黄在线观看com| 久久亚洲日韩看片无码| 又黄又大又爽免费视频| 1000部禁片黄的免费看| 无码的免费不卡毛片视频| 亚洲成人黄色在线观看| 中文字幕亚洲不卡在线亚瑟| 国产精品视频免费观看| 精品97国产免费人成视频| 77777午夜亚洲| 亚洲AV福利天堂一区二区三 | 在线观看免费污视频| 中文字幕无码毛片免费看| 亚洲成AV人片高潮喷水| 亚洲五月六月丁香激情| 亚洲一区二区三区免费| 扒开双腿猛进入爽爽免费视频| 国产真人无码作爱视频免费| 亚洲成a∨人片在无码2023 | 亚洲热线99精品视频| 暖暖在线日本免费中文| 91免费播放人人爽人人快乐| 成人免费区一区二区三区 | 国产va免费精品| 亚洲欧美日韩久久精品| 亚洲国语在线视频手机在线| 国产亚洲精品xxx| 亚洲日韩中文字幕日韩在线| 国产成人免费一区二区三区| 99精品全国免费观看视频| 最近在线2018视频免费观看| 免费在线看黄网站| 久久久久免费视频|