未来是一枚失落的指针,往昔是一片无法删除的内存

Tuesday, 21 November 2006

Rendering Test / 渲染测试

This post is for rendering test...

Test Fonts

Bold/粗体, typewriter/等宽字体, italic/斜体, big/大一点的字体 and small/小一点的字体.

测试一下中文

归去来兮,田园将芜胡不归!既自以心为形役,奚惆怅而独悲。悟已往之不谏,知来者之可追。实迷途其未远,觉今是而昨非。

舟遥遥以轻飏,风飘飘而吹衣。问征夫以前路。恨晨光之熹微。乃瞻衡宇,载欣载奔。僮仆欢迎,稚子候门。三经就荒,松菊犹存。携幼入室,有酒盈樽。引壶觞以自酌,眄庭柯以怡颜。倚南窗以寄傲,审容膝之易安。园日涉以成趣,门虽庙而常关。策扶老以流憩,时矫首而遐观。云无心以出岫,鸟倦飞而知还。景翳翳以将入,抚孤松而盘桓。

归去来兮,请息交以绝游。世与我而相违,复驾言兮焉求!悦亲戚之情话,乐琴书以消忧。农人告余以春及,将有事于西畴。或命巾车,或棹孤舟。既窈窕以寻壑,亦崎岖而经丘。木欣欣以向荣,泉涓涓而始流。善万物之得时,感吾生之行休。

已矣乎,寓形宇内复几时,曷不委心任去留,胡为乎遑遑欲何之?富贵非吾愿,帝乡不可期。怀良辰以孤往,或植杖而耘籽。登东皋以舒啸,临清流而赋诗。聊乘化以归尽,乐夫天命复奚疑!

-- 陶潜

Hello, World!

From Wikipedia, the free encyclopedia.

A "hello world" program is a computer program that prints out "Hello, world!" on a display device. It is used in many introductory tutorials for teaching a programming language. Such a program is typically one of the simplest programs possible in a computer language. Some are surprisingly complex, especially in some graphical user interface (GUI) contexts, but most are very simple, especially those which rely heavily on a particular command line interpreter ("shell") to perform the actual output.

While small test programs existed since the development of programmable computers, the tradition of using the phrase "Hello world!" as a test message was influenced by an example program in the book The C Programming Language. The example program from that book prints "hello, world" (without capital letters or exclamation mark), and was inherited from a 1974 Bell Laboratories internal memorandum by Brian Kernighan, Programming in C: A Tutorial, which contains the first known version:

/* hello world in C */
main() {
printf("hello, world");
}


Hello World in C++, Python and Java

The following source code fragments are highlighted by Google Code Prettify.

The C++ version:

// hello world in C++
#include <iostream>
int main(int, char**) {
std::cout << "hello, world" << std::endl;
return 0;
}


The Python version:

#!/usr/bin/env python
# hello world in Python

def main():
print 'hello, world'

if __name__ == '__main__':
main()


The Java version:

// hello world in Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("hello, world");
}
}


Test Image