0

I'm writing a C program out of the shell (Macintosh Terminal, to be specific), and would like to know if you can change font sizes within the program so it would look like:

Hello world!

Hello world!


Thanks!

P.S. The question isn't platform-specific. I'd love to hear if this is possible on another platform.

4

2 回答 2

2

In general, terminals do not support varying the font. Very faithful emulators of some of the VT100-family terminals may provide double-width and/or double-height font mode (you may have seen these modes used on some old green- or orange-screen retail cash register terminals), but I think they're unlikely to be supported on modern terminal emulators.

于 2012-07-29T00:11:23.360 回答
1

尽管您通常无法更改字体大小,但有一些方法可以通过 ASCII 艺术来模仿。查看一些使用 ASCII 艺术字体生成文本以获取想法的 FIGlet 服务器。这是我在 Google 上找到的第一个:http: //patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something

有许多不同大小的不同字体,但这里有一些例子

_________ _______          _________
\__   __/(  ____ \|\     /|\__   __/
   ) (   | (    \/( \   / )   ) (   
   | |   | (__     \ (_) /    | |   
   | |   |  __)     ) _ (     | |   
   | |   | (       / ( ) \    | |   
   | |   | (____/\( /   \ )   | |   
   )_(   (_______/|/     \|   )_(   

从那里开始将其中一种字体嵌入您的程序并使用它来显示您想要的任何内容并不难。

于 2012-07-29T00:21:43.367 回答