File: Font.html

package info (click to toggle)
three.js 111%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,184 kB
  • sloc: javascript: 133,174; makefile: 24; sh: 1
file content (65 lines) | stat: -rw-r--r-- 1,639 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<base href="../../../../" />
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
	</head>
	<body>
		<h1>字体([name])</h1>

		<p class="desc">
		以JSON格式,创建一系列的[page:Shape Shape](形状)来表示一个字体。
		<br /><br />

		该类在内部由[page:FontLoader]所使用。
		</p>

		<h2>示例</h2>

		<p>
		[example:webgl_geometry_text_shapes geometry / text / shapes ]<br/>
		[example:webgl_shaders_vector vector / text ]<br/>
		</p>

		<h2>构造函数</h2>

		<h3>[name]( data )</h3>
		<p>
		data -- 表示字体的JSON数据。<br /><br />

		这一构造函数创建一个新的[name],它是一个[page:Shape Shapes]数组。
		</p>

		<h2>属性</h2>

		<h3>[property:array data]</h3>
		<p>传入到构造函数的JSON数据。</p>

		<h3>[property:Boolean isFont]</h3>
		<p>
			用于检查该类或者其派生类是否为字体。默认值为*true*。
			<br /><br />

			你不应当对这一属性进行改变,它在内部由渲染器所使用,以用于优化。
		</p>

		<h2>方法</h2>

		<h3>[method:null generateShapes]( [param:String text], [param:Float size] )</h3>
		<p>
			[page:String text] -- 文本字符串。<br />
			[page:Float size] -- (可选)[page:Shape Shapes]的缩放,默认值为*100*。<br />

			创建一个[page:Shape Shapes]数组,表示使用字体的文本。
		</p>

		<h2>源代码</h2>

		<p>
			[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
		</p>
	</body>
</html>