Actions

Chinese font

From ACL@NCU

Revision as of 11:42, 6 November 2013 by Aclexp (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Chinese font name (e.g., 標楷體) is not easily used by python scripts. However, with software such as Microsoft font editor, one can find the "Unique name" of the font files in %windowspath%\Fonts\. For example, "標楷體" has an unique name "DFKai-SB", which is just like "Arial" that can be used in the script.

welcome[0] = psychopy.visual.TextStim(winobj, 
	text='歡迎您來玩「尋找大方向」遊戲!'.decode(syscode),  
	pos=[0.0, 0.15], color=(1.0, 1.0, 0.0), rgb=None,
	colorSpace='rgb', opacity=1.0,height=0.20, font='DFKai-SB', 
	alignHoriz='center', bold=True, wrapWidth=0.3)