Kapitel 9. Text-Verwaltung

Inhaltsverzeichnis

1. Mit Text arbeiten
1.1. Text Area
1.2. Textebenen
1.3. Text Toolbox
1.4. Text Context Menu
2. Text
2.1. Text verschönern
2.2. Schriftarten hinzufügen
2.3. Probleme mit Schriftarten

1. Mit Text arbeiten

Text is managed with the Text tool. This tool creates a new layer containing the text, above the current layer in the layer dialog, with the size of the text box. Its name is the beginning of the text.

Abbildung 9.1. Beispiel eines Textelementes

Beispiel eines Textelementes

Ein Beispieltext mit gut sichtbarer Textebene (die Schriftart ist Utopia fett)

Beispiel eines Textelementes

The layer dialog, with the text layer above the layer which was current.


The Text tool is progressively improved. With GIMP-2.8, you can now edit text directly on canvas. A text tool box has been added which overlays the canvas above the text box.

As soon as you click on the canvas with the Text tool, you get a closed text box and a semi-transparent tool box just above.

Text tool options are described in Abschnitt 6.6, „Text“.

1.1. Text Area

You can start typing text at once. The text box will enlarge gradually. Press Enter to add a new line.

You can also enlarge the text box by click-and-dragging, as you do with selections. The box size appears then in the status bar at the bottom of the image:

To edit text, you must, first, select the part you want to edit by click-and-drag, or Shift+arrow keys and then use the options of the Abschnitt 1.3, „Text Toolbox“.

Instead of using the on-canvas text editing, you can use the text editor dialog described in Abschnitt 6.6.3, „Texteditor“.

You can move the text on the image using the Move tool: you must click on a character, not on the background.

You can get Unicode characters with Ctrl+Shift+U plus hexadecimal Unicode code of the desired char, for example:

Abbildung 9.2. Entering Unicode characters

Entering Unicode characters

Ctrl+Shift+U

Entering Unicode characters

4 7

Entering Unicode characters

Enter


Of course this feature is more useful for entering special (even exotic) characters, provided that the required glyphs for these characters are supplied by the selected font — only few fonts support Klingon. ;-)

Unicode 0x47 (G), 0x2665, 0x0271, 0x03C0

You can edit the text later, if the text layer still exists and has not been modified by another tool (see below): make the text layer active in theLayer dialog, select the Text tool and click on the text in the image window.

1.2. Textebenen

You can operate on a text layer in the same ways as any other layer, but doing so often means giving up the ability to edit the text without losing the results of your work.

Um die Eigenheiten des Umganges mit Text in GIMP besser zu verstehen, hilft es möglicherweise sich vor Augen zu halten, dass Textebenen ganz andere Informationen beinhalten als normale Ebenen, welche ausschließlich aus Pixeln zusammengesetzt sind. In Textebenen muss zusätzlich der Text im Textformat, zusammen mit all den Informationen über Schriftart, Größe, Ausrichtung und so weiter, verwaltet werden. Sie können dies im Texteditor sehen, welcher sich öffnet, wenn Sie das Textwerkzeug benutzen. Jedes Mal, wenn Sie den Text verändern, wird die Bildebene neu gezeichnet, um Ihre Änderungen widerzuspiegeln. Weitere Informationen zum Textwerkzeug finden Sie im Abschnitt 6.6, „Text“.

Nehmen wir einmal an, Sie erzeugen eine Textebene und bearbeiten die Ebene dann auf eine Weise, die nichts mit dem Text zu tun hat. Beispielsweise könnten Sie die Ebene drehen. Wenn Sie nun wiederum den Text der Ebene bearbeiten, so wird dieser neu in die Ebene gezeichnet und zerstört das Ergebnis der in der Zwischenzeit durchgeführten Bearbeitungsschritte.

Da diese Gefahr nicht offensichtlich ist, versucht das Textwerkzeug, Sie davor zur beschützen. Wenn Sie auf einer Textebene arbeiten und später versuchen, den Text weiter zu bearbeiten, öffnet sich ein Dialogfenster, das Sie warnt und Ihnen anbietet,

  • den Text trotzdem zu bearbeiten,

  • die Aktion abzubrechen,

  • eine neue Textebene mit dem Text der bereits vorhandenen Textebene anzulegen und diese unverändert zu belassen.

Abbildung 9.3. Bearbeiten des Textes bestätigen

Bearbeiten des Textes bestätigen

1.3. Text Toolbox

Abbildung 9.4. Text Toolbox

Text Toolbox

You get this box, which overlays canvas, as soon as you click on canvas with the Text Tool. It allows you to edit text directly on canvas.

Apart from the usual text formatting features like font family, style and size selectors you get numeric control over baseline offset and kerning, as well as the ability to change text color for a selection.

  • Change font of selected text: as soon as you start editing the default font name, a drop-down list appears, allowing you to select a font.

  • Change size of selected text: self-explanatory.

  • Bold, Italic, Underline, Strikethrough : self-explanatory.

  • Change baseline of selected text: "In European typography and penmanship, baseline is the line upon which most letters "sit" and below which descenders extend" (Wikipedia). In HTML, there are several kinds of baselines (alphabetic, ideographic, bottom…). Here, consider that baseline is "bottom" and determines the place for descenders. The default baseline "0" gives place for descenders. You can use it to increase space between two lines only, while Adjust line spacing in tool options increases space between all lines.

    Abbildung 9.5. Default Baseline

    Default Baseline

    Default baseline marked with a red line.


  • Change kerning of selected text: "In typography, kerning… is the process of adjusting the spacing between characters in a proportional font." (Wikipedia). You will probably use this setting to adjust letter spacing of a selected part of text.

    Let us look at a selected text (zoomx800 to see pixels):

    We can see that the Sans font is a proportional font: letters widths are different, and T glyph comes over the e. Letters widths are marked with thin vertical lines and left borders of letter width cover preceding letters by one pixel. Now we set Change kerning of selected text to 2 pixels:

    Blank spaces, 2 pixels wide, are added between all selected characters and letter widths are preserved. If no text is selected, a blank space is added at the place of the mouse pointer between two characters.

    Now, we compare with the Adjust letter spacing option of Text tool:

    The option applies to the whole text, not only to the selected text. Blank spaces are added inside letters widths and letter widths are not respected.

  • You can also use Alt+arrow keys to change baseline offset and kerning.

  • Change color of selected text: this command opens a color dialog where you choose a color for the selected text.

  • Clear style of selected text: using this command, you can get rid of all new settings you applied to the selected text.

1.4. Text Context Menu

Abbildung 9.6. Kontextmenü der Textbearbeitung

Kontextmenü der Textbearbeitung

You get this menu by right-clicking on text. It is somewhat different from that of the Text Editor dialog.

  • Cut, Copy, Paste, Delete: these options concern a selected text. They remain grayed out as long as no text is selected. Paste is activated if the clipboard is full of text.

  • Open text file: this command opens a file browser where you can find the wanted text file.

  • Clear: this command deletes all the text, selected or not.

  • Path from text: this command creates a path from the outlines of the current text. The result is not evident. You have to open the Path dialog and make path visible. Then select the Path tool and click on the text. Every letter is now surrounded with a path component. So you can modify the shape of letters by moving path control points.

    This command is similar to LayerText to Path.

    Abbildung 9.7. Text to path applied

    Text to path applied

    Nothing appears.


    Abbildung 9.8. Path made visible

    Path made visible

    Path made visible in Path tab. Path appears as a red border around text.


    Abbildung 9.9. Path tool activated

    Path tool activated

    Path tool activated; click on path.


  • Text along path:

    This option is enabled only if a path exists. When your text is created, then create or import a path and make it active. If you create your path before the text, the path becomes invisible and you have to make it visible in the Path Dialog.

    This command is also available from the Layer menu:

    Abbildung 9.10. The Text along Path command among text commands in the Layer menu

    The Text along Path command among text commands in the Layer menu

    This group of options appears only if a text layer exists.


    Click on the Text along Path button. The text is bent along the path. Letters are represented with their outline. Each of them is a component of the new path that appears in the Path dialog. All path options should apply to this new path.

    Abbildung 9.11. Text along Path example

    Text along Path example
    Text along Path example

  • From Left to Right / From Right to Left: fix the writing direction of your language.

  • Input Methods: methods are available for some languages. For example, selecting Inuktitut transforms your keyboard into an Inuktitut keyboard, temporarily.