Draft: Forma da testo
Draft_ShapeString |
Posizione nel menu |
---|
Draft -> ShapeString |
Ambiente |
Draft |
Avvio veloce |
S S |
Introdotto nella versione |
- |
Vedere anche |
Nessuno |
Descrizione
Lo strumento ShapeString inserisce una forma composta che riproduce una stringa di testo in un dato punto del documento corrente. Si possono definire gli attributi del testo quali altezza, tipo di carattere, ecc..
Utilizzo
- Press the Draft ShapeString button, or press S then S keys
- Click a point on the 3D view, or type a coordinate
- Enter the desired text, press ENTER
- Enter the desired size, press ENTER
- Enter the desired tracking, press ENTER
- Press ENTER to accept the displayed font file, or,
- Press ... to select a font file.
Opzioni
- To enter coordinates manually, simply enter the numbers, then press ENTER between each X, Y and Z component.
- Pressing ESC will cancel the operation.
- You can set a default font file in Draft/Prefences.
Proprietà
Vista
Sono disponibili le Proprietà standard di visualizzazione.
Dati
Template:KEY/it Template:KEY/it
|
Script
Lo strumento ShapeString può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
makeShapeString(String,FontFile,[Size],[Tracking])
- Turns a text string into a Compound Shape using a specified font.
Esempio:
import FreeCAD,Draft
Draft.makeShapeString("This is a sample text",
"/usr/share/fonts/truetype/msttcorefonts/Arial.ttf",
200.0,10)
Limitations
- This tool is not yet generally available. It will be included in a future version. (post v0.13)
- TrueType(*.ttf), OpenType(*.otf) and Type1(*.pfb) font files are supported.
- Very small text heights may result in deformed character glyphs due to loss of detail in scaling.
- The current version is limited to left-to-right layouts on a horizontal baseline.