{"id":1230,"date":"2011-02-11T12:48:36","date_gmt":"2011-02-11T12:48:36","guid":{"rendered":"http:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2011\/02\/11\/albitereader%e7%9a%84%e5%ad%97%e5%9e%8b%e8%99%95%e7%90%86\/"},"modified":"2011-02-11T12:48:36","modified_gmt":"2011-02-11T12:48:36","slug":"albitereader%e7%9a%84%e5%ad%97%e5%9e%8b%e8%99%95%e7%90%86","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2011\/02\/albitereader%e7%9a%84%e5%ad%97%e5%9e%8b%e8%99%95%e7%90%86\/","title":{"rendered":"AlbiteReader\u7684\u5b57\u578b\u8655\u7406"},"content":{"rendered":"<p>org.albite.font.AlbiteFont<\/p>\n<ol>\n<li>ctor \u958b\u555f\u5b57\u578b\u6a94\u4ee5\u5f8c\uff0c\u5c31\u958b\u59cb\u8655\u7406 (\u9019\u908a\u662f\u958b .alf)<\/li>\n<li>\u683c\u5f0f\n<ul>\n<li>byte 1: line spacing<\/li>\n<li>byte 2: line height<\/li>\n<li>byte 3-6: glyphs (character range)<\/li>\n<li>byte 7-8: maxium width<\/li>\n<li>byte 9-12: character count<\/li>\n<li>\u63a5\u4e0b\u4f86\u5c31\u662f\u5faa\u5e8f\u8b80\u51fa\u5404\u5b57\u5143\u7684 x, y, w, h, xo, yo, xa\n<ul>\n<li>byte 1-2: character<\/li>\n<li>byte 3-4: x<\/li>\n<li>byte 5-6: y<\/li>\n<li>byte 7-8: width<\/li>\n<li>byte 9-10: height<\/li>\n<li>byte 11-12: xoffset<\/li>\n<li>byte 13-14: yoffset<\/li>\n<li>byte 15-16: xadvance \u4e0b\u4e00\u500b\u5b57\u5143\u8ddf\u76ee\u524d\u5b57\u5143\u7684\u9593\u9694<\/li>\n<\/ul>\n<\/li>\n<li>\u518d\u653e\u5230\u5c0d\u61c9 character \u7684 glyphs \u9663\u5217\u88e1 (glyphs[character]=new Glyph(x, y, w, h, xo, yo, xa)<\/li>\n<\/ul>\n<li>\u8b80\u5b8c .alf(\u5b57\u578b\u8cc7\u8a0a)\uff0c\u63a5\u8457\u958b\u555f .ali\uff0c\u9019\u908a\u662f\u771f\u6b63\u7684\u5b57\u578b\u8cc7\u6599\uff0c\u5148\u628a\u6574\u500b .ali \u8b80\u53d6\u5230\u8a18\u61b6\u9ad4\u88e1 (\u7531 AlbiteImageMono \u8655\u7406\uff0c\u540c\u6a23\u4e5f\u6709\u6a94\u982d\uff0c\u4f46\u8f03\u7c21\u55ae\uff0c\u524d4\u500bbytes\u662fmagic number\uff0c\u63a5\u8457\u7684\u5169\u500bbytes\u662fwidth\uff0c\u7136\u5f8c\u518d\u4f86\u7684\u5169\u500bbytes\u662fheight)<\/li>\n<li>\u628a\u5fc5\u8981\u7684\u5b57\u5143\u5148\u8655\u7406\u8d77\u4f86\uff0c\u50cf\u662f &#8216; &#8216;, &#8216;?&#8217;, &#8216;-&#8216;<\/li>\n<li>\u5176\u4ed6\u7684\u5b57\u5143\u90fd\u662f\u756b\u7684\u6642\u5019\uff0c\u4f9d\u64da glyphs \u8cc7\u8a0a\u53bb\u5b58\u53d6\u8a18\u61b6\u9ad4\u88e1\u7684 buffer<\/li>\n<\/ol>\n<p>\u7167\u9019\u6a23\u770b\u8d77\u4f86\uff0c\u5982\u679c\u8981\u4f9d\u6a23\u756b\u846b\u8606\uff0c\u5c07\u4e2d\u6587\u5b57\u578b\u88fd\u4f5c\u6210 .ali \u7684\u8a71\uff0c\u6703\u9047\u5230\u7684\u554f\u984c\u662f\u8a18\u61b6\u9ad4\u554f\u984c\u3002AlbiteFont \u6703\u5c07\u6574\u500b .ali \u8f09\u5165\u5230\u8a18\u61b6\u9ad4\u88e1\uff0c\u88fd\u4f5c\u51fa\u4f86\u7684 .ali \u6703\u6709\u591a\u5927\u5462? \u5047\u8a2d\u5b57\u7684\u5927\u5c0f\u662f12&#215;12\uff0c\u8981\u5b8c\u6574\u6536\u6587\u6cc9\u9a5b\u768420932\u500b\u5b57\uff0c\u90a3\u5927\u7d04\u662f3MB\u5de6\u53f3\u3002\u4f9d\u7167 SE T700 \u7684\u898f\u683c\uff0c\u5167\u90e8\u8a18\u61b6\u9ad4\u53ea\u6709 25MB\u3002\u672a\u77e5\u7684\u662f\u53ef\u7528\u8a18\u61b6\u9ad4\uff0c\u6240\u4ee5\u5fc5\u9808\u8003\u616e\u6700\u58de\u7684\u60c5\u6cc1\uff0c\u8a18\u61b6\u9ad4\u6703\u4e0d\u8db3!!<br \/>\n\u6703\u4f7f\u7528\u81ea\u5df1\u7684\u5b57\u578b\uff0c\u6211\u60f3\u61c9\u8a72\u662f\u8003\u616e\u5230\u5e73\u53f0\u76f8\u5bb9\u7684\u554f\u984c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>org.albite.font.AlbiteFont ctor \u958b\u555f\u5b57\u578b\u6a94\u4ee5\u5f8c\uff0c\u5c31\u958b\u59cb\u8655\u7406 (\u9019\u908a\u662f\u958b .alf) \u683c\u5f0f byte 1: line spacing byte 2: line height byte 3-6: glyphs (character range) byte 7-8: maxium width byte 9-12: character count \u63a5\u4e0b\u4f86\u5c31\u662f\u5faa\u5e8f\u8b80\u51fa\u5404\u5b57\u5143\u7684 x, y, w, h, xo, yo, xa byte 1-2: character byte 3-4: x byte 5-6: y byte 7-8: width byte 9-10: height byte 11-12: xoffset byte 13-14: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2011\/02\/albitereader%e7%9a%84%e5%ad%97%e5%9e%8b%e8%99%95%e7%90%86\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;AlbiteReader\u7684\u5b57\u578b\u8655\u7406&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-1230","post","type-post","status-publish","format-standard","hentry","category-idea"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-jQ","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/1230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=1230"}],"version-history":[{"count":0,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/1230\/revisions"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=1230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=1230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=1230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}