{"id":96144,"date":"2024-05-18T07:04:11","date_gmt":"2024-05-17T23:04:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=96144"},"modified":"2024-05-18T07:04:11","modified_gmt":"2024-05-17T23:04:11","slug":"linux-font","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-font.html","title":{"rendered":"\u6559\u4f60\u5982\u4f55\u66f4\u6539Linux\u63a7\u5236\u53f0\u4e0a\u7684\u5b57\u4f53"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nLinux \u6b7b\u5fe0\u4eec\uff0c\u4f60\u53ef\u4ee5\u66f4\u6539\u63a7\u5236\u53f0\u7684\u5b57\u4f53\u3002\u6309\u7167 Linux \u4e00\u8d2f\u7684\u5c3f\u6027\uff0c\u4e0d\u65ad\u53d8\u5316\u7684 Linux \u73af\u5883\u4f7f\u5f97\u8fd9\u4e2a\u95ee\u9898\u53d8\u5f97\u4e0d\u592a\u7b80\u5355\u660e\u4e86\uff0c\u800c Linux \u4e0a\u4e5f\u6ca1\u6709\u5b57\u4f53\u7ba1\u7406\u8fd9\u4e48\u4e2a\u4e1c\u897f\uff0c\u8fd9\u4f7f\u5f97\u6211\u4eec\u5f88\u5bb9\u6613\u5c31\u88ab\u641e\u6655\u4e86\u3002\u672c\u6587\uff0c\u6211\u5c06\u4f1a\u5411\u4f60\u5c55\u793a\uff0c\u6211\u627e\u5230\u7684\u66f4\u6539\u5b57\u4f53\u7684\u6700\u7b80\u65b9\u6cd5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u6211\u5c1d\u8bd5\u5c3d\u53ef\u80fd\u7684\u4fdd\u6301\u5fc3\u7075\u7965\u548c\uff0c\u7136\u800c\u603b\u6709\u4e00\u4e9b\u4e8b\u60c5\u8ba9\u6211\u610f\u96be\u5e73\uff0c\u6bd4\u5982\u63a7\u5236\u53f0\u5b57\u4f53\u592a\u5c0f\u4e86\u3002\u8bb0\u4f4f\u6211\u7684\u8bdd\uff0c\u670b\u53cb\uff0c\u6709\u4e00\u5929\u4f60\u7684\u773c\u775b\u4f1a\u9000\u5316\uff0c\u65e0\u6cd5\u518d\u770b\u6e05\u4f60\u7f16\u7801\u65f6\u7528\u7684\u90a3\u4e9b\u7ec6\u5c0f\u5b57\u4f53\uff0c\u5230\u90a3\u65f6\u4f60\u5c31\u540e\u6094\u83ab\u53ca\u4e86\u3002<\/p>\n

\u5e78\u597d\uff0cLinux \u6b7b\u5fe0\u4eec\uff0c\u4f60\u53ef\u4ee5\u66f4\u6539\u63a7\u5236\u53f0\u7684\u5b57\u4f53\u3002\u6309\u7167 Linux \u4e00\u8d2f\u7684\u5c3f\u6027\uff0c\u4e0d\u65ad\u53d8\u5316\u7684 Linux \u73af\u5883\u4f7f\u5f97\u8fd9\u4e2a\u95ee\u9898\u53d8\u5f97\u4e0d\u592a\u7b80\u5355\u660e\u4e86\uff0c\u800c Linux \u4e0a\u4e5f\u6ca1\u6709\u5b57\u4f53\u7ba1\u7406\u8fd9\u4e48\u4e2a\u4e1c\u897f\uff0c\u8fd9\u4f7f\u5f97\u6211\u4eec\u5f88\u5bb9\u6613\u5c31\u88ab\u641e\u6655\u4e86\u3002\u672c\u6587\uff0c\u6211\u5c06\u4f1a\u5411\u4f60\u5c55\u793a\uff0c\u6211\u627e\u5230\u7684\u66f4\u6539\u5b57\u4f53\u7684\u6700\u7b80\u65b9\u6cd5\u3002<\/p>\n

Linux \u63a7\u5236\u53f0\u662f\u4e2a\u4ec0\u4e48\u9b3c\uff1f<\/strong><\/div>\n

\u9996\u5148\u8ba9\u6211\u4eec\u6765\u6f84\u6e05\u4e00\u4e0b\u6211\u4eec\u8bf4\u7684\u5230\u5e95\u662f\u4e2a\u4ec0\u4e48\u4e1c\u897f\u3002\u5f53\u6211\u63d0\u5230 Linux \u63a7\u5236\u53f0\uff0c\u6211\u6307\u7684\u662f TTY1-6\uff0c\u5373\u4f60\u4ece\u56fe\u5f62\u73af\u5883\u7528 Ctrl-Alt-F1 \u5230 F6 \u5207\u6362\u5230\u7684\u865a\u62df\u7ec8\u7aef\u3002\u6309\u4e0b Ctrl+Alt+F7 \u4f1a\u5207\u56de\u56fe\u5f62\u73af\u5883\u3002(\u4e0d\u8fc7\u8fd9\u4e9b\u70ed\u952e\u5df2\u7ecf\u4e0d\u518d\u901a\u7528\uff0c\u4f60\u7684 Linux \u53d1\u884c\u7248\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u952e\u6620\u5c04\u3002\u4f60\u7684 TTY \u7684\u6570\u91cf\u4e5f\u53ef\u80fd\u4e0d\u540c\uff0c\u4f60\u56fe\u5f62\u73af\u5883\u4f1a\u8bdd\u4e5f\u53ef\u80fd\u4e0d\u5728 F7\u3002\u6bd4\u5982\uff0cFedora \u7684\u9ed8\u8ba4\u56fe\u5f62\u4f1a\u8bdd\u662f F2\uff0c\u5b83\u53ea\u6709\u4e00\u4e2a\u989d\u5916\u7684\u7ec8\u7aef\u5728 F1\u3002) \u6211\u89c9\u5f97\u80fd\u540c\u65f6\u62e5\u6709 X \u4f1a\u8bdd\u548c\u7ec8\u7aef\u4f1a\u8bdd\u5b9e\u5728\u662f\u592a\u9177\u4e86\u3002<\/p>\n

Linux \u63a7\u5236\u53f0\u662f\u5185\u6838\u7684\u4e00\u90e8\u5206\uff0c\u800c\u4e14\u5e76\u4e0d\u8fd0\u884c\u5728 X \u4f1a\u8bdd\u4e2d\u3002\u5b83\u548c\u4f60\u5728\u6ca1\u6709\u56fe\u5f62\u73af\u5883\u7684\u65e0\u5934\u670d\u52a1\u5668\u4e2d\u7528\u7684\u63a7\u5236\u53f0\u662f\u4e00\u6837\u7684\u3002\u6211\u79f0\u547c\u5728\u56fe\u5f62\u4f1a\u8bdd\u4e2d\u7684 X \u7ec8\u7aef\u4e3a\u7ec8\u7aef\uff0c\u800c\u5c06\u63a7\u5236\u53f0\u548c X \u7ec8\u7aef\u7edf\u79f0\u4e3a\u7ec8\u7aef\u6a21\u62df\u5668\u3002<\/p>\n

\u4f46\u8fd9\u8fd8\u6ca1\u5b8c\u3002Linux \u7ec8\u7aef\u4ece\u65e9\u671f\u7684 ANSI \u65f6\u4ee3\u5f00\u59cb\u5df2\u7ecf\u7ecf\u5386\u4e86\u957f\u4e45\u7684\u53d1\u5c55\uff0c\u591a\u4e8f\u4e86 Linux framebuffer\uff0c\u5b83\u73b0\u5728\u652f\u6301 Unicode \u5e76\u4e14\u5bf9\u56fe\u5f62\u4e5f\u6709\u4e86\u6709\u9650\u7684\u4e00\u4e9b\u652f\u6301\u3002\u800c\u4e14\u51fa\u73b0\u4e86\u5f88\u591a\u5728\u63a7\u5236\u53f0\u4e0b\u8fd0\u884c\u7684\u591a\u5a92\u4f53\u5e94\u7528\uff0c\u8fd9\u4e9b\u6211\u4eec\u5728\u4ee5\u540e\u7684\u6587\u7ae0\u4e2d\u4f1a\u63d0\u5230\u3002<\/p>\n

\u63a7\u5236\u53f0\u622a\u5c4f<\/strong><\/div>\n

\u83b7\u53d6\u63a7\u5236\u53f0\u622a\u5c4f\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u662f\u8ba9\u63a7\u5236\u53f0\u8dd1\u5728\u865a\u62df\u673a\u5185\u90e8\u3002\u7136\u540e\u4f60\u53ef\u4ee5\u5728\u5bbf\u4e3b\u7cfb\u7edf\u4e0a\u4f7f\u7528\u4e2d\u610f\u7684\u622a\u5c4f\u8f6f\u4ef6\u6765\u6293\u53d6\u3002\u4e0d\u8fc7\u501f\u52a9 fbcat \u548c fbgrab \u4f60\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728\u63a7\u5236\u53f0\u4e0a\u622a\u5c4f\u3002fbcat \u4f1a\u521b\u5efa\u4e00\u4e2a\u53ef\u79fb\u690d\u7684\u50cf\u7d20\u6620\u5c04\u683c\u5f0f\uff08PPM\uff09\u7684\u56fe\u50cf\uff1b \u8fd9\u662f\u4e00\u4e2a\u9ad8\u5ea6\u53ef\u79fb\u690d\u7684\u672a\u538b\u7f29\u56fe\u50cf\u683c\u5f0f\uff0c\u53ef\u4ee5\u5728\u6240\u6709\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8bfb\u53d6\uff0c\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u628a\u5b83\u8f6c\u6362\u6210\u4efb\u4f55\u559c\u6b22\u7684\u5176\u4ed6\u683c\u5f0f\u3002fbgrab \u5219\u662f fbcat \u7684\u4e00\u4e2a\u5c01\u88c5\u811a\u672c\uff0c\u7528\u6765\u751f\u6210\u4e00\u4e2a PNG \u6587\u4ef6\u3002\u5f88\u591a\u4eba\u5199\u8fc7\u591a\u4e2a\u7248\u672c\u7684 fbgrab\u3002\u6bcf\u4e2a\u7248\u672c\u7684\u9009\u9879\u90fd\u6709\u9650\u800c\u4e14\u53ea\u80fd\u521b\u5efa\u622a\u53d6\u5168\u5c4f\u3002<\/p>\n

fbcat \u7684\u6267\u884c\u9700\u8981 root \u6743\u9650\uff0c\u800c\u4e14\u5b83\u7684\u8f93\u51fa\u9700\u8981\u91cd\u5b9a\u5411\u5230\u6587\u4ef6\u4e2d\u3002\u4f60\u65e0\u9700\u6307\u5b9a\u6587\u4ef6\u6269\u5c55\u540d\uff0c\u53ea\u9700\u8981\u8f93\u5165\u6587\u4ef6\u540d\u5c31\u884c\u4e86\uff1a<\/p>\n

$ sudo fbcat > Pictures\/myfile<\/pre>\n

\u5728 GIMP \u4e2d\u88c1\u526a\u540e\uff0c\u5c31\u5f97\u5230\u4e86\u4e0b\u56fe\u3002
\n\"\"<\/p>\n

\u5982\u679c\u80fd\u5728\u5de6\u8fb9\u7a7a\u767d\u5904\u6709\u4e00\u70b9\u586b\u5145\u5c31\u597d\u4e86\uff0c\u5982\u679c\u6709\u8bfb\u8005\u77e5\u9053\u5982\u4f55\u5b9e\u73b0\u8bf7\u5728\u7559\u8a00\u6846\u4e2d\u544a\u8bc9\u6211\u3002<\/p>\n

fbgrab \u8fd8\u6709\u4e00\u4e9b\u9009\u9879\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 man fbgrab \u6765\u67e5\u770b\uff0c\u8fd9\u4e9b\u9009\u9879\u5305\u62ec\u5bf9\u53e6\u4e00\u4e2a\u63a7\u5236\u53f0\u8fdb\u884c\u622a\u5c4f\uff0c\u4ee5\u53ca\u5ef6\u65f6\u622a\u5c4f\u7b49\u3002\u5728\u4e0b\u9762\u7684\u4f8b\u5b50\u4e2d\u53ef\u4ee5\u770b\u5230\uff0cfbgrab \u622a\u5c4f\u8ddf fbcat \u622a\u5c4f\u7c7b\u4f3c\uff0c\u53ea\u662f\u4f60\u65e0\u9700\u660e\u786e\u8fdb\u884c\u8f93\u51fa\u91cd\u5b9a\u6027\u4e86\uff1a<\/p>\n

$ sudo fbgrab Pictures\/myOtherfile<\/pre>\n
\u67e5\u627e\u5b57\u4f53<\/strong><\/div>\n

\u5c31\u6211\u6240\u77e5\uff0c\u9664\u4e86\u67e5\u770b\u5b57\u4f53\u5b58\u50a8\u76ee\u5f55 \/usr\/share\/consolefonts\/\uff08Debian \u7b49\uff09\uff0c\/lib\/kbd\/consolefonts\/ \uff08Fedora\uff09\uff0c\/usr\/share\/kbd\/consolefonts \uff08openSUSE\uff09\u5916\u6ca1\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u5b57\u4f53\u4e86\u3002<\/p>\n

\u66f4\u6539\u5b57\u4f53<\/strong><\/div>\n

\u53ef\u8bfb\u5b57\u4f53\u4e0d\u662f\u4ec0\u4e48\u65b0\u6982\u5ff5\u3002\u6211\u4eec\u5e94\u8be5\u5c0a\u91cd\u4ee5\u524d\u7684\u7ecf\u9a8c\uff01\u53ef\u8bfb\u6027\u662f\u5f88\u91cd\u8981\u7684\u3002\u53ef\u914d\u7f6e\u6027\u4e5f\u5f88\u91cd\u8981\uff0c\u7136\u800c\u73b0\u5982\u4eca\u5374\u4e0d\u600e\u4e48\u770b\u91cd\u4e86\u3002<\/p>\n

\u5728 Debian\/Ubuntu \u7b49\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u8fd0\u884c sudo dpkg-reconfigure console-setup \u6765\u8bbe\u7f6e\u63a7\u5236\u53f0\u5b57\u4f53\uff0c\u7136\u540e\u5728\u63a7\u5236\u53f0\u8fd0\u884c setupcon \u547d\u4ee4\u6765\u8ba9\u53d8\u66f4\u751f\u6548\u3002setupcon \u5c5e\u4e8e console-setup \u8f6f\u4ef6\u5305\u4e2d\u7684\u4e00\u90e8\u5206\u3002\u82e5\u4f60\u7684 Linux \u53d1\u884c\u7248\u4e2d\u4e0d\u5305\u542b\u8be5\u5de5\u5177\uff0c\u53ef\u4ee5\u5728 openSUSE \u4e2d\u4e0b\u8f7d\u5230\u5b83\u3002<\/p>\n

\u4f60\u4e5f\u53ef\u4ee5\u76f4\u63a5\u7f16\u8f91 \/etc\/default\/console-setup \u6587\u4ef6\u3002\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u8bbe\u7f6e\u5b57\u4f53\u4e3a 32 \u70b9\u5927\u5c0f\u7684 Terminus Bold \u5b57\u4f53\uff0c\u8fd9\u662f\u6211\u7684\u6700\u7231\uff0c\u5e76\u4e14\u4e25\u683c\u9650\u5236\u63a7\u5236\u53f0\u5bbd\u5ea6\u4e3a 80 \u5217\u3002<\/p>\n

ACTIVE_CONSOLES=\"\/dev\/tty[1-6]\"\r\nCHARMAP=\"UTF-8\"\r\nCODESET=\"guess\"\r\nFONTFACE=\"TerminusBold\"\r\nFONTSIZE=\"16x32\"\r\nSCREEN_WIDTH=\"80\"<\/pre>\n

\u8fd9\u91cc\u7684 FONTFACE \u548c FONTSIZE \u7684\u503c\u6765\u81ea\u4e8e\u5b57\u4f53\u7684\u6587\u4ef6\u540d TerminusBold32x16.psf.gz\u3002\u662f\u7684\uff0c\u4f60\u9700\u8981\u53cd\u8f6c FONTSIZE \u4e2d\u503c\u7684\u987a\u5e8f\u3002\u8ba1\u7b97\u673a\u5c31\u662f\u8fd9\u4e48\u641e\u7b11\u3002\u7136\u540e\u518d\u8fd0\u884c setupcon \u6765\u8ba9\u65b0\u914d\u7f6e\u751f\u6548\u3002\u53ef\u4ee5\u4f7f\u7528 showconsolefont \u6765\u67e5\u770b\u5f53\u524d\u6240\u7528\u5b57\u4f53\u7684\u6240\u6709\u5b57\u7b26\u96c6\u3002\u8981\u67e5\u770b\u5b8c\u6574\u7684\u9009\u9879\u8bf4\u660e\u8bf7\u53c2\u8003 man console-setup\u3002<\/p>\n

Systemd<\/strong><\/div>\n

Systemd \u4e0e console-setup \u4e0d\u592a\u4e00\u6837\uff0c\u9664\u4e86\u5b57\u4f53\u4e4b\u5916\uff0c\u4f60\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u4e1c\u897f\u3002\u4f60\u53ea\u9700\u8981\u7f16\u8f91 \/etc\/vconsole.conf \u7136\u540e\u91cd\u542f\u5c31\u884c\u4e86\u3002\u6211\u5728 Fedora \u548c openSUSE \u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86\u4e00\u4e9b\u989d\u5916\u7684\u5927\u5b57\u53f7\u7684 Terminus \u5b57\u4f53\u5305\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u5b89\u88c5\u7684\u5b57\u4f53\u6700\u5927\u53ea\u6709 16 \u70b9\u800c\u6211\u60f3\u8981\u7684\u662f 32 \u70b9\u3002\u7136\u540e\u5c06 \/etc\/vconsole.conf \u7684\u5185\u5bb9\u4fee\u6539\u4e3a\uff1a<\/p>\n

KEYMAP=\"us\"\r\nFONT=\"ter-v32b\"<\/pre>\n
\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/os.51cto.com\/art\/201802\/566678.htm<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/linux-font.html<\/a>\u7f16\u8f91\uff1a\u5468\u6653\u96ea\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb Linux \u6b7b\u5fe0\u4eec\uff0c\u4f60\u53ef\u4ee5\u66f4\u6539\u63a7\u5236\u53f0\u7684\u5b57\u4f53\u3002\u6309\u7167 Linux \u4e00\u8d2f\u7684\u5c3f\u6027\uff0c\u4e0d\u65ad\u53d8\u5316\u7684 Linux \u73af\u5883\u4f7f […]<\/p>\n","protected":false},"author":63,"featured_media":96148,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-96144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/96144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=96144"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/96144\/revisions"}],"predecessor-version":[{"id":96234,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/96144\/revisions\/96234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/96148"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=96144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=96144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=96144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}