浏览代码

Merge pull request #13723 from donmccurdy/docs-text-bmfont

Documentation: Add BMFont section to 'Creating text' docs.
Mr.doob 7 年之前
父节点
当前提交
7af60e6209
共有 1 个文件被更改,包括 26 次插入1 次删除
  1. 26 1
      docs/manual/introduction/Creating-text.html

+ 26 - 1
docs/manual/introduction/Creating-text.html

@@ -68,7 +68,7 @@
 				<code>new THREE.TextGeometry( text, parameters );</code>
 			</p>
 			<p>
-				In order for this to work, however, your TextGeometry will need an instance of THREE.Font 
+				In order for this to work, however, your TextGeometry will need an instance of THREE.Font
 				to be set on its "font" parameter.
 
 				See the [page:TextGeometry] page for more info on how this can be done, descriptions of each
@@ -90,5 +90,30 @@
 
 
 
+		<h2>5. Bitmap Fonts</h2>
+		<div>
+			<p>
+				BMFonts (bitmap fonts) allow batching glyphs into a single BufferGeometry. BMFont rendering
+				supports word-wrapping, letter spacing, kerning, signed distance fields with standard
+				derivatives, multi-channel signed distance fields, multi-texture fonts, and more.
+				See [link:https://github.com/Jam3/three-bmfont-text three-bmfont-text].
+			</p>
+			<p>
+				Stock fonts are available in projects like
+				[link:https://github.com/etiennepinchon/aframe-fonts A-Frame Fonts], or you can create your own
+				from any .TTF font, optimizing to include only characters required for a project.
+			</p>
+			<p>
+				Some helpful tools:
+			</p>
+			<ul>
+				<li>[link:http://msdf-bmfont.donmccurdy.com/ msdf-bmfont-web] <i>(web-based)</i></li>
+				<li>[link:https://github.com/soimy/msdf-bmfont-xml msdf-bmfont-xml] <i>(commandline)</i></li>
+				<li>[link:https://github.com/libgdx/libgdx/wiki/Hiero hiero] <i>(desktop app)</i></li>
+			</ul>
+		</div>
+
+
+
 	</body>
 </html>