Strumento Testo¶
Questo strumento permette di aggiungere del testo alla tua opera. Viene utilizzato insieme con l`:ref:text_properties_docker. Alcune operazioni sul testo possono essere gestite dallo Strumento Selezione forme. Per una panoramica su tutte le funzionalità di testo, vedi Lavorare con il testo.
Per creare un testo, fai clic col
: apparirà un testo con la scritta «Testo del segnaposto», pronto per la modifica.
Modificare un testo¶
Se hai appena creato un testo, sarà visibile un cursore lampeggiante sul testo. Potrai spostarlo in giro con l’aiuto dei tasti freccia, digitare e rimuovere il testo con i tasti Backspace e Canc, così come usare qualsiasi metodo del sistema per l’inserimento di testo complesso. Puoi selezionare il testo tenendo premuto il tasto Maiusc mentre ti sposti con i tasti freccia verso il punto finale della selezione. Puoi anche usare il
+ trascinamento per selezionare il testo, doppio-clic +
per selezionare una parola e triplo-clic +
per selezionare l’intero testo.
Nota
Dato che hai bisogno dei tasti della tua tastiera per digitare del testo, molte scorciatoie sono disabilitate. Se vuoi utilizzare una scorciatoia particolare mentre stai modificando il testo, è meglio configurarla per utilizzarla con Ctrl, Alt o Ctrl + Maiusc come modificatori, dato che Krita considererà inserimento di testo gli altri tasti. I gesti di inserimento su tela, come ruotare col tocco, spostamento con
o
funzioneranno se non avranno alcun tasto (della tastiera) associato.
In aggiunta, Krita supporta tutte le scorciatoie di movimento di testo predefinite Qt. Queste corrispondono alle impostazioni predefinite per un sistema operativo specificato, dunque, per esempio Ctrl + → sposterà il cursore alla fine delle parole in Windows, mentre su macOS la stessa azione corrisponde ad Alt + →. Dato che Krita supporta il testo verticale, si confronteranno anche i tasti corretti per la modalità di scrittura specificata, pertanto in verticale Ctrl + ↓ sposterà alla fine della parola.
Per terminare la modifica del testo, fai clic fuori della casella oppure inizia a modificare un testo differente. Per farlo, passa il mouse sopra un qualsiasi altro testo. Puoi farlo sullo stesso livello o su un qualsiasi altro livello vettoriale. Quando passi il mouse sopra il testo, il suo riquadro di contorno verrà evidenziato. Facendovi clic sopra selezionerai il livello ed entrerai in modalità modifica sul quel testo.
Oltre che modificato, il testo può essere anche spostato. Per spostare un testo, passa il mouse sopra il suo riquadro di contorno, in modo che il cursore diventi un cursore di spostamento. Quindi fai
+ trascinamento per spostare il testo.
Per cambiare lo stile del testo, usa la Area di aggancio Proprietà del testo.
Tipi di testo¶
Krita supporta completamente il testo SVG 2, ossia è presente il supporto per vari tipi di testo, suddivisibili grossolanamente in cinque categorie:
Preformattato¶
Tipo di testo di base. Questo tipo non va a capo automaticamente. Tuttavia, gli spazi bianchi non vengono ridotti, il che significa che si possono creare nuove righe premendo il tasto Invio.
Preposizionato¶
Preposizionato è un testo SVG 1.1, in cui ciascuna riga è posizionata in modo assoluto, e la regola per gli spazi bianchi è impostata per ridurre qualsiasi spazio aggiuntivo. Le versioni precedenti di Krita creavano testi di questo tipo, ed esso è ancora utile per i file SVG che vengono esportati e utilizzati in altri motori di resa SVG 1.1.
Suggerimento
Nella gestione di testo proveniente da versioni precedenti di Krita, usa la conversione del tipo di testo per passarlo a Preformattato o a A capo in linea, in modo da semplificare la modifica del testo. Preposizionato è utile solo quando vuoi usare la rappresentazione SVG in un momento successivo, per esempio per l’uso con EPUB3 o il web.
Testo su tracciato¶
Per creare del Testo su tracciato, passa col mouse sopra una forma. Al passaggio sul contorno, il cursore cambierà in un cursore testo-su-tracciato, e con
creerai il testo.
Per modificare un testo su tracciato, imposta il cursore lampeggiante all’interno di tale testo. Apparirà una maniglia per modificare lo scostamento di inizio e il lato del tracciato in cui poggia il testo. Trascinando la maniglia, il testo può essere spostato lungo il tracciato, mentre ribaltandola sull’altro lato il testo verrà impostato per utilizzare l’altro lato del tracciato.
Nota
Tutti i tipi senza «a capo automatico» si possono in teoria combinare in un’unica forma di testo. Per creare una forma di questo genere è necessario utilizzare un editor di sorgenti SVG in moda da modificare direttamente il file SVG, ma questi significa che la divisione tra di loro non è così rigida come questa tipologia potrebbe far sembrare. Krita farà il suo meglio per informarti sul tipo di testo pensa che la forma debba essere per le funzioni di conversione nelle opzioni dello strumento, ma tieni presente che potrebbe anche sbagliarsi.
A capo in linea¶
Per creare un testo a capo semplice (A capo in linea), fai
+ tracina per creare un’area rettangolare. Quando l’area è più grande dell’altezza di riga del tipo di carattere attualmente selezionato, l’immagine del inizierà a mostrare il cursore per l’interruzione di riga in linea. Rilasciando il pulsante del mouse aggiungerai quindi il testo predefinito con l’interruzione di riga abilitata. Per evitare di creare un testo a capo durante il trascinamento, premi Ctrl mentre trascini.
Il trascinamento di un’area sufficientemente grande mostrerà il cursore «A capo in linea».¶
Quando modifichi un testo a capo in linea, puoi anche modificare l’area di interruzione della riga. Compariranno due maniglie su ciascun lato del testo, mostrando i limiti in cui il testo andrà a capo. Facendo
+ trascinamento su queste maniglie puoi aumentare o ridurre l’area di interruzione riga. Quando il testo è allineato a una delle maniglie, lo spostamento dell’altra scambierà l’allineamento del testo, in modo che stia allineato a quella maniglia. Quando è impostato l’allineamento centrato, il testo starà tra le due barre. Se vuoi che il testo rimanga nella stessa posizione quando modifichi un testo centrato e vuoi solo modificare la larghezza dell’area di interruzione, mantieni premuto Ctrl mentre trascini.
A capo in linea mostrerà due maniglie in ciascun lato dell’area. Queste possono essere regolare direttamente sulla tela.¶
Testo nella forma¶
Per creare del Testo nella forma, passa il mouse sopra una forma esistente chiusa. Quando passi il mouse sopra il riempimento, il cursore cambierà in un un cursore testo-nella-forma e premendo il
farà scorrere il testo all’interno di quella forma. Sia «Testo su tracciato», sia «Testo nella forma» mostreranno una nuova icona in alto a destra della forma. Facendo clic sopra questa icona si passerà allo Strumento Selezione forme, dove è possibile modificare le forme.
Passare il mouse sopra una forma chiusa farà comparire il cursore «testo nella forma».¶
Il testo può essere mandato a capo in una o più forme. Quando scorre in più forme, ciascuna forma interna è riempita per prima con quanto più testo possibile prima di passare alla forma successiva nella catena in cui è iniziato lo scorrimento. Esistono, poi, anche delle forme da sottrarre. Queste vengono sottratte dalle forme interne per creare le aree di testo.
Example of text wrapped into multiple shapes. The green rectangle and orange ellipse are inside shapes, while the triangle is a subtract shape. The outline shows the effect text areas, while arrows between the areas show how they are chained.¶
When editing text in shape, the final text area border is drawn on the screen. A chain of arrows is drawn between text areas to show the order in which the areas are evaluated. The shape padding and margin can be modified by hovering over the text area border and
+ dragging it. If the cursor was closer to a subtraction shape when starting to drag, the margin will be modified. Conversely, when the cursor is closer to an inside shape when starting the drag, the shape padding will be modified.
This speech bubble has shape padding applied, by dragging the hovered border. Image courtesy of Pepper and Carrot, CC-BY David Revoy.¶
Editing the order of the text areas in the chain is done in Strumento Selezione forme, as is adding and removing shapes from a text.
Opzioni dello strumento¶
- Crea nuovi testi con…
This allows choosing which properties to use when creating new texts. Text can be made with any Preimpostazioni degli stili, or use the current properties in the text properties docker by toggling Current Text Properties.
- Opzioni
- Usa cursore visivo
Use the visual order for the text caret bidirectional text. When text is bidirectional, the logical order of the letters can go left or right depending on where it is in the text, with the paragraph direction determining which of ← and → is the forward key. When visual order is enabled, the caret will ignore the logical order in favour of the visual order.
- Incolla testo formattato in modo predefinito
Krita can read styled text like SVG and HTML from the system clipboard, and has separate actions in the shortcuts for pasting either this “rich” text or to paste plain text. This toggle controls whether to also paste rich text when using the regular Ctrl + V Paste action from the edit menu.
- Apri proprietà del testo
Opens the Area di aggancio Proprietà del testo. The text properties docker is where the majority of text styling functionality is located.
- Modalità composizione tipografica
Toggles Modalità composizione tipografica.
- Finestre di dialogo
- Modifica sorgente SVG
Apre l`:ref:svg_source_editor.
- Tavolozza dei glifi
Apre la Tavolozza dei glifi.
- Converti tipo…
These buttons allow converting a selected text. Said conversion functions are also available as shortcut actions under «Interaction Tool» in the shortcut preferences.
- Preformattato
Converts text so that it does not wrap automatically. In addition, the CSS Spazio bianco collapse rule is applied so that any hidden white space is removed, and the rule is switched so that additional white spaces are not removed. Any absolute SVG 1.1 character transforms are changed to become new lines.
- A capo in linea
Converts text so that it wraps around a maximum inline length (width for horizontal text, and height for vertical text). As with Preformatted, the CSS Spazio bianco rule and character transforms are processed to create line breaks and avoid the collapse of additional white spaces.
- Preposizionato
Converts text to SVG 1.1 style text, where additional Spazio bianco get collapsed and new lines are positioned absolutely. This is how previous versions of Krita handled text, as well as the dominant way to handle SVG text. Use this to prepare text for export when the end result should show in a SVG 1.1 compatible renderer.
Text in shape and text on path are not among the conversion options. Instead, use Flow Text in Shape and Put Text On Path from the rightclick menu in the Opzioni di testo nella Selezione forme.
Modalità composizione tipografica¶
This mode enables on-canvas text styling for a number of text properties.
Text in Type Setting Mode, with «Setting» selected, and the cursor hovering over the Font Size metric line.¶
When enabled, the selection will be replaced with a number of metric lines. When there’s no selection, these lines are drawn for the paragraph, and uses the paragraph’s font metrics, while with a selection, it will use the selected glyphs font metrics as retrieved during the text layout.
Hovering over the lines will highlight them, and show the name of the relevant metric.
+ drag on these lines will increase or decrease the size of this metric. This way, Dimensione caratteri, Altezza riga and Scostamento linea di base can be modified directly on canvas. Pressing Shift will display a different set of metrics: the Linea di base. Clicking a baseline will set Linea di base dominante and Linea di base allineamento to that baseline, allowing the alignment of text of different sizes to said baseline.
The alternate baseline mode. Cursor is hovering over the Hanging baseline.¶
When text is Preformatted or Pre-positioned, two additional controls are visible at the start and end of a selection. These allow modifying the position and rotation of each cluster. The square handle allows moving the whole selection, while the round handle scales and rotates the selection. There’s a series of actions for moving the square handle available in the shortcuts configuration for the text tool. These (for each direction) Move Text Selection Down By 1 Pixel, and will move the selected text in the given direction. There’s also Remove Character Transforms which will remove all character transforms, (relative, absolute and rotation) from the given range.
The selected word has been rotated by
+ dragging the handles.¶
Nota
For fine-tuned typographic adjustments, like manual kerning, it’s recommended to use these two handles over CSS Spaziatura delle lettere. The latter is intended for spacing letters over a whole chunk of text, and implemented in subtly different ways in every implementation.
Internally, these modify SVG 1.1 relative character transforms, which means they don’t break the shaping, and are supported in all the major browsers.
Editor sorgente SVG¶
A small window to directly edit the SVG source of the text. The text layout is capable of more complex text than the text tool can edit on-canvas. If you are familiar with SVG, you will be able to edit it directly and use powerful features like nested Scostamento linea di base, Decorazione testo and Direzione.
Modifica
Quando hai finito le modifiche, premi Salva per visualizzare l’anteprima sulla tela.
- File
- Salva Ctrl + S
Salva le modifiche correnti al testo sulla tela.
- Chiudi Ctrl + W
Chiude l’editor.
- Modifica
Funzioni di modifica di base:
- Annulla Ctrl + Z
Annulla l’ultima azione nell’editor di testo.
- Rifai Ctrl + Maiusc + Z
Ripristina l’ultima azione annullata nell’editor di testo.
- Taglia Ctrl + X
Taglia il testo selezionato negli appunti.
- Copia Ctrl + C
Copia il testo selezionato negli appunti.
- Incolla Ctrl + V
Incolla il testo dagli appunti.
- Seleziona tutto Ctrl + A
Seleziona tutto il testo nell’editor attivo.
- Deseleziona Ctrl + Maiusc + A
Deseleziona qualsiasi testo selezionato.
- Trova Ctrl + F
Apre una finestra con un campo di immissione per trovare il testo specificato nell’editor attivo.
- Trova successivo F3
Cerca il testo successivo utilizzando l’ultima chiave di ricerca.
- Trova precedente Maiusc + F3
Cerca il testo precedente utilizzando l’ultima chiave di ricerca.
- Sostituisci… Ctrl + R
Apre una finestra di dialogo con due campi di immissione: la stringa da trovare e la stringa con cui sostituire il testo trovato. Sostituisce sempre TUTTE le occorrenze trovate.
- Vista
- Rimpicciolisci Ctrl + -
Rimpicciolisce il testo.
- Ingrandisci Ctrl + +
Ingrandisce il testo.
- Impostazioni
Here you can edit the colors used for code formatting.
Tavolozza dei glifi¶
The glyph palette dialog provides a grid view of alternative characters available in a font through opentype features or unicode character variants. It is meant as a companion to the Funzioni OpenType in the text property docker.
Glifi alternativi¶
Glyph alternates for the character «A» in the font “Junicode”. Not all fonts have this many alternates available.¶
This shows any available alternates for the current code point. There’s two kinds of alternates:
- Unicode Character Variants
These are officially defined character variants. Simple examples of these include slashed 0 as an alternative to 0, but more commonly these are used for Han ideographs. In particular, place and people names require certain glyph variants to be used to look recognisable, and character variants provide this access. Krita will only show variants that are available in the font itself.
- Funzioni OpenType
These are glyph alternates that are available via a number of open type features, such as the character variants, access all alternates or stylistic alternates.
Mappa caratteri¶
This provides a character map for the given font. At the left there is a list of unicode blocks that can be used to filter the character map.
At the top there’s a search bar, where typing a character will show that character or the codepoints that decompose to that character (That is, A will show “Á”, “Å” and even “Ấ”). This input also accepts characters in U+HEXCODE format.
The remaining area is dedicated to the character map itself. Clicking a character will show a pop-up with glyph alternates (if available), and double clicking will add said character at the cursor position in the active text.