Draft: Forma da testo
ShapeString |
Posizione nel menu |
---|
Draft → Forma da testo... |
Ambiente |
Draft, Arch |
Avvio veloce |
S S |
Introdotto nella versione |
0.14 |
Vedere anche |
Testo Draft, Part Estrusione |
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.. La forma risultante può essere utilizzata con lo strumento Estrusione di Part per creare lettere 3D.
Lo strumento Testo di Draft è un'alternativa più semplice che non produce una forma chiusa.
Utilizzo
- Premere il pulsante Template:KEY/it, oppure il tasto Template:KEY/it poi Template:KEY/it
- Cliccare in un punto della vista in 3D, oppure inserire le sue coordinate
- Inserire il testo poi premere Template:KEY/it
- Inserire l'altezza voluta poi premere Template:KEY/it
- Inserire la spaziatura desiderata poi premere Template:KEY/it
- Premere Template:KEY/it per accettare il tipo di carattere visualizzato, oppure,
- Premere il pulsante con tre puntini Template:KEY/it per selezionare un tipo di carattere diverso.
The text, size, tracking, and font can be changed after creation, by modifying the shape properties.
Set the default font file in Draft Preferences, in the Texts and dimensions tab. Supported fonts include TrueType (.ttf), OpenType (.otf), and Type 1 (.pfb).
Limitazioni
- Questo strumento non è disponibile nelle versioni precedenti alla 0.14
- Sono supportati i caratteri di tipo TrueType(*.ttf), OpenType(*.otf) e Type1(*.pfb).
- Altezze di testo molto piccole possono comportare la deformazione dei glifi dei caratteri a causa della perdita dei dettagli nella scalatura.
- La versione corrente mostra solo un testo scritto in orizzontale da sinistra a destra.
- Per creare un testo curvo è possibile utilizzare la macro Testo circolare
Opzioni
- Per inserire le coordinate manualmente, basta inserire i numeri, quindi premere Template:KEY/it tra ognuno dei componenti X, Y e Z.
- Premere Template:KEY/it per annullare l'operazione.
- Nelle Preferenze di Draft è possibile impostare un file di caratteri predefinito.
Proprietà
Vista
Sono disponibili le Proprietà standard di visualizzazione.
Dati
Template:KEY/it Template:KEY/it
|
Script
Vedere anche: API Draft e Nozioni di base sugli script di FreeCAD.
Lo strumento ShapeString può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
ShapeString = makeShapeString(String, FontFile, Size=100, Tracking=0)
- Trasforma una
Stringa
di testo in unaShapeString
utilizzando un font specificato. FontFile
è obbligatorio e deve essere il percorso completo di un file di font supportatoSize
è l'altezza del testo risultante in millimetriTracking
è la spaziatura aggiuntiva tra i caratteri in millimetri
The placement of the ShapeString can be changed by overwriting its Placement
attribute, or by individually overwriting its Placement.Base
and Placement.Rotation
attributes.
Esempio:
import FreeCAD, Draft
font1 = "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf"
font2 = "/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf"
font3 = "/usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf"
S1 = Draft.makeShapeString("This is a sample text", font1, 200)
S2 = Draft.makeShapeString("Inclined text", font2, 200, 10)
ZAxis = FreeCAD.Vector(0, 0, 1)
p2 = FreeCAD.Vector(-1000, 500, 0)
place2 = FreeCAD.Placement(p2, FreeCAD.Rotation(ZAxis, 45))
S2.Placement = place2
S3 = Draft.makeShapeString("Upside-down text", font3, 200, 10)
S3.Placement.Base = FreeCAD.Vector(0, -1000, 0)
S3.Placement.Rotation = FreeCAD.Rotation(ZAxis, 180)
Tutorial
- Tutorial Forma da testo - ShapeString: come estrudere un testo, posizionarlo nello spazio 3D e creare un'incisione in un altro corpo.
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub