Actions

Difference between revisions of "Chinese font"

From ACL@NCU

(Created page with "<pre> welcome[0] = psychopy.visual.TextStim(winobj, text='歡迎您來玩「尋找大方向」遊戲!'.decode(syscode), pos=[0.0, 0.15], color=(1.0, 1.0, 0.0), rgb=None...")
 
 
Line 1: Line 1:
The Chinese font name (e.g., 標楷體) is not easily used by python scripts. However, with software such as [http://www.microsoft.com/typography/property/fpedit.htm 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.
<pre>
<pre>
welcome[0] = psychopy.visual.TextStim(winobj,  
welcome[0] = psychopy.visual.TextStim(winobj,  

Latest revision as of 11:42, 6 November 2013

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)