5.3. Nástroj text

The Text tool adds text to your image in a new layer. Text can be edited directly on canvas. A text tool editor, which shows up on top of the canvas above the text box, allows you to quickly change some of the text characteristics (for selected text or newly typed text only).

As soon as you type your text, the text box appears on the canvas in a rectangular frame. If you draw the rectangular frame first, the text is automatically adapted to the frame size. You can enlarge this frame as you do with rectangular selections.

Right clicking on the text opens a context menu that allows you to copy, cut, paste, open a text file, change text orientation, and other text related commands.

You can also use a separate Text Editor window by checking the Use editor window option in the Tool Options dialog. You can also use the Text Options dialog to change the font, color and size of your text, and justify it, interactively.

In this chapter, tool options will be described. To know how to use the Text tool, please refer to text management.

5.3.1. Activating the Tool

There are different possibilities to activate the tool:

  • From the main menu: ToolsText.

  • By clicking the tool icon in the Toolbox.

  • By pressing the T keyboard shortcut.

5.3.2. Options

Obrázek 14.132. Text tool options

Text tool options

Normally, tool options are displayed in a window attached under the Toolbox as soon as you activate a tool. If they are not, you can access them from the main menu through WindowsDockable WindowsTool Options which opens the option window of the selected tool.

Písmo

Click on the fonts button to open the font selector of this tool, which offers you a list of installed X fonts.

At the bottom of the font selector you find some icons which act as buttons for:

  • resizing the font previews,

  • selecting list view or grid view,

  • opening the font dialog.

Choose a font from the installed fonts. When you select a font it is interactively applied to your text.

[Tip] Tip

You can use the scroll wheel of your pointing device (usually your mouse) on the fonts button in order to quickly change the font of your text (move the pointer on the fonts button, and don't click, just use the wheel button).

Velikost

Tato volba nastavuje písma v některé z volitelných jednotek.

Use editor window

Use an external editor window for text editing instead of direct-on-canvas editing.

Show on-canvas editor

Show a text tool editor on top of the canvas above the text box, which allows you to quickly change some of the text characteristics (for selected text or newly typed text only).

Vyhlazování

Vyhlazování (neboli antialiasing) vyhladí zubaté hrany písma. Je toho dosaženo mírným rozmazáním okrajů písma. Vyhlazování může nesmírně vylepšit vizuální dojem z písma. Ovšem u malých velikostí může vyhlazování zhoršit čitelnost písma.

Hinting

Uses the index of adjustment of the font to modify characters in order to produce clear letters in small font sizes.

Color

Barva písma. Jedná se obarvu popředí Gimpu. Můžete ji nastavit i zde ve volbách nástroje Text kliknutím na barevnou plochu. Tím se otevře dialog pro volbu barvy.

[Tip] Tip

You can also click-and-drag the color from the Toolbox color area onto the text.

Zarovnat

V této volbě lze kliknutím na některou z názorných ikon zvolit způsob zarovnání textu.

Odsazení

Controls the indent spacing from the left margin, for the first line.

Adjust line spacing

Tato volba ovládá rozestup řádků textu. Nastavení je interaktivní, okamžitě se promítá do napsaného textu. Číslo nevyjadřuje prostor mezi řádky, nýbrž kolik je od něj odečteno (pokud je záporné) nebo kolik je k němu přičteno (pokud je kladné).

Adjust letter spacing

Controls the spacing between letters. Also in this case the number is not the space itself between letters, but how many pixels must be added to or subtracted from this space (the value can be negative).

Box

Concerns the text box. The associated drop-down list offers two options:

Dynamic: default option. The size of the text box increases as you type. Text may go out of the image. You have to press the Enter key to add a new line. The indent option indents all lines. If you increase the box size, the option turns to "Fixed".

Fixed: you must enlarge the text box first. Else, usual shortcuts are active! The text is limited by the right side of the box and continues on next line. This is not true new line: you must press the Enter key to add a real new line. The text may go out the lower border of the image. The indent option works on the first line only.

Language

The text language may have an effect on the way the text is rendered. If you enter a letter in this field, you get a list of all available languages whose names begin with this letter. Select the language in which you are entering your text.

Right clicking on this field opens the context menu which allows you to paste language names from the clipboard.

5.3.3. Textový editor

Obrázek 14.133. The Text Editor

The Text Editor

This text editor is only available if the Use editor window option is checked in Tool Options.

As soon as you start writing, a Text layer is created in the Layer Dialog. On an image with such a layer (the image you are working on, or a .xcf image), you can resume text editing by activating this text layer then clicking on it (double click). Of course, you can apply to this text layer the same functions you use with other layers.

Chcete-li do obrázku přidat další text, klikněte na netextovou vrstvu — otevře se tak nový textový editor a vytvoří se nová textová vrstva pro zadání nového textu. Chcete-li editovat jiný text, aktivujte jeho vrstvu a klikněte do ní nástrojem Text.

The Text Editor options

All these options are also in the text context menu.

Vertical text (top-to-bottom writing) is supported and particularly useful for East-Asian writing systems, but also for anyone wishing to design fancy vertical text.

Load text from file

Text can be loaded from a text file by clicking the folder icon in the text editor. All the text in the file is loaded.

Clear all text

Clear all the text.

From left to right

Tato volba umožňuje zadávat text zleva doprava, jak je zvykem ve většině západních a mnoha východních jazycích.

From right to left

Tato volba umožňuje zadávat text zprava doleva, jak je zvykem u některých východních jazyků, například arabštiny.

Vertical, right to left (mixed orientation)

Text is written top-to-bottom in columns, from right to left, and is rotated 90° clockwise.

Vertical, right to left (upright orientation)

Text is written top-to-bottom in columns, from right to left, upright.

Vertical, left to right (mixed orientation)

Text is written top-to-bottom in columns, from left to right, and is rotated 90° clockwise.

Vertical, left to right (upright orientation)

Text is written top-to-bottom in columns, from left to right, upright.

Use selected font

Default doesn't use the font you have selected in the Options dialog. If you want to use it, check this option.

[Poznámka] Poznámka

See also 2 – „Nástroj text“