选择 & 编辑

Editing text is quite different from other object types in Blender, and happens mainly in two areas.First, the 3D View, where you type your text, and have a few shortcuts, e.g. for applyingstyles (see 字体) — note however, that most Blender hotkeys you knowin Edit Mode do not exist for texts. The second place is the Properties editor, especially the Font tab.

选择和游标

../../_images/modeling_texts_selecting-editing_cursor.pngText in Edit mode.

In Edit Mode, your text has a white cursor, and as in any text editor,it determines where new chars will be inserted.

  • Next/Previous Character Left/ Right
  • You can move the cursor with the arrow keys.
  • Next/Previous Word Ctrl-Left/ Ctrl-Right
  • To move the cursor on a word's boundary.
  • Line Begin/End Home/ End
  • Move the cursor to the beginning and end of a line respectively.
  • Next/Previous Line Up/ Down
  • To jump between lines.
  • Next/Previous Page PageUp/ PageDown
  • To jump back/forward ten lines at a time.

Hold Shift while using the arrow keys to select a part of the text.You can use it to specify different materials, the normal/bold/italic style…

编辑

The menu of the 3D View header offers few options. You have no transform nor mirror tools, and so on.

基本

编辑 文笔 与使用标准文本编辑器相似, 但是不具有全部的功能, 而且还有一些区别:

  • Exit Edit Mode
  • Tab does not insert a tab character in the text,but rather enters and exits Edit Mode, as with other object types.
  • Copy Ctrl-C
  • To copy text to the buffer, use the shortcut or the matching entry in the Edit menu.
  • Cut and Copy Ctrl-X
  • To cut and copy text to the buffer, use the shortcut or the matching entry in the Edit menu.
  • Paste Ctrl-V
  • To paste text from the buffer, use the shortcut or the matching entry in the Edit menu.
  • Delete all text Ctrl-Backspace
  • Completely erase or delete all text.

文本缓冲区与桌面剪贴板是同步的. 但是如果它是在 Blender 内部使用, 文本格式也会一起复制. 对于其它的插入文本方式, 见后文的 Inserting Text .

特殊字符

参考

模式:编辑模式
菜单:Edit ‣ Special Characters

This is a limited character map to insert characters which aren't available from the keyboard.Many other special characters can be "composed", see Accent Characters below.If you need others, you will have to copy-paste them from an external editor or charmap tool.

Accent Characters

Many special characters (such as accented chars, which are not directly available on your keyboard)can be "composed" using a combination of two other characters. To do so,type the main char, press Alt-Backspace,and then press the desired "modifier" to produce the special character.Some examples are given below:

- ã: A, Alt-Backspace, ~- á: A, Alt-Backspace, '- à: A, Alt-Backspace, Backslash- â: A, Alt-Backspace, ^- å: A, Alt-Backspace, O- æ: A, Alt-Backspace, E- ª: A, Alt-Backspace, Minus- ë: E, Alt-Backspace, "- ç: C, Alt-Backspace, Comma- ¢: C, Alt-Backspace, |- ø: O, Alt-Backspace, Slash- §: S, Alt-Backspace, S- †: |, Alt-Backspace, Minus- ‡: |, Alt-Backspace, =- ©: O, Alt-Backspace, C- ®: O, Alt-Backspace, R- ™: T, Alt-Backspace, M- ½: 1, Alt-Backspace, 2- ÷: Minus, Alt-Backspace, :- ±: Minus, Alt-Backspace, Plus

插入文本

你可以通过两种方式插入文本: 从内部文本缓冲区 (如上文所述), 或者从文本文件中.

To load text from a text file, use the Text ‣ Paste File tool.This will bring up a File Browser for navigating to a valid UTF-8 file.As usual, be careful that the file does not have too many characters,as interactive response will slow down.

Setting Case

You can change the text case by selecting it then clicking the To Upper orTo Lower in the Toolbar.

Font Style

参考

模式:编辑模式
菜单:3D View ‣ Font
面板:Properties ‣ Text ‣ Font

To apply the Bold / Italics / Underline / Small Caps attribute to a set of characters,you either turn on the related setting prior to typing characters,or highlight (select) some existing text, and then toggle desired style from the menu.

Warning

Blender's Bold and Italic buttons do not work the same way as in other applications,as they also serve as placeholders for you to load up other fonts manually,see Loading and Changing Fonts below.

Loading and Changing Fonts

Blender comes with a built-in font by default that is displayed ineach of the four font style data-block menus.The built-in font is always present and shows in this list as "Bfont".The data-block menu contains a list displaying the currently loaded fonts.Select one for each font style.

To load a different Font, click one of the Load buttonsin the Font panel and navigate to a font file.The File Browser will give all valid fonts a capital "F" icon.

If you select a font that is unsupported by Blender, you will get the error Not a valid font.

Note

Location of Fonts on Unix

Fonts are typically located under /usr/lib/fonts, or some variant like /usr/lib/X11/fonts,but not always. They may be in other locations as well,such as /usr/share/local or /usr/local/share, and possibly related sub-trees.

Remember that the same font will be applied to all chars with same style in a text,but that a separate font is required for each style.For example, you will need to load an Italics font in order to make characters or words italic.Once the font is loaded you can apply that font "Style" to the selected characters or the whole object.In all, you would need to load a minimum of four different types of fonts to represent each style(Normal, Italics, Bold, Bold & Italics).

It is important to understand, that Blender does not care what fontyou load for "normal", "bold", etc., styles.This is how you can have up to four different fonts in use in the same text,but you have to choose between different styles of a same font, or different fonts.Blender has a number of typographic controls for changing the style and layout of text,found in the Font panel.

See also

The Font panel description.

转换文本物体

转换成文本物体

Using an existing text data-block, you can convert it to an object from the Text editor's header,select Edit ‣ Text to 3D Object,One Object or One Object per Line depending on your needs.

在编辑3D文本时, 也可以从剪贴板粘贴文本或者在 编辑 菜单里选择从文件粘贴.

Converting to a Mesh or Curve

In Object Mode, it is possible to convert a text object to a mesh or curve one, see 转换为.

Tip

The topology of the result is usually a bit messy,so it may be useful to use a Limited Dissolve deletion,or apply a Remesh modifier at a low threshold, to clean up your mesh.

指定材质

参考

模式:Edit
面板:属性编辑器 ‣ 材质

要使不同的字符获得不同的材质,每个字符都必须有一个不同的 材质编号

You can assign indices either as you type, or after by selecting blocks of text andclicking on the Assign button in the Materials panel.

../../_images/modeling_texts_selecting-editing_material-index-example.pngRed Green Blue text example.