{"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":"
\u5bfc\u8bfb<\/td>\n | 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\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 |