Kreslení Shapestring
Draft_ShapeString |
Menu location |
---|
Draft -> ShapeString |
Workbenches |
Kreslení |
Default shortcut |
S S |
Introduced in version |
- |
See also |
None |
Popis
Nástroj ShapeString vkládá složený tvar, který reprezentuje textový řetězec na daná bod v aktuálním dokumentu. Výška textu, tracking a font mohou být specifikovány.
Použití
- Stiskněte tlačítko Kreslení ShapeString nebo klávesy S a potom S
- Klikněte na bod ve 3D pohledu nebo zadejte jeho souřadnice
- Zadejte požadovaný text a stiskněte ENTER
- Zadejte požadovaný text a stiskněte ENTER
- Zadejte požadovaný tracking a stiskněte ENTER
- Stiskněte ENTER pro potvrzení zobrazeného souboru s fontem nebo
- Stiskněte ... pro výběr souboru s fontem.
Volby
- Pro zadání souřadnic ručně, jednoduše zadejte číslo a stiskněte ENTER mezi každou z komponent X, Y a Z.
- Stiskněte klávesu ESC pro ukončení aktuálního příkazu.
- Defaultní soubor s fontem můžete přednastavit v Kreslení/Předvolby.
Vlastnosti
- ÚdajePozice: Základní bod složeného písma
- ÚdajeString: Text řetězce
- ÚdajeVelikost: Výška textu v jednotkách FC
- ÚdajeTracking: Šířka mezer mezi písmeny v jednotkách FC
- ÚdajeFont File: Soubor s definicí fontu pro kreslený text
Skriptování
The ShapeString tool can by used in macros and from the python console by using the following function:
makeShapeString(String,FontFile,[Size],[Tracking])
- Turns a text string into a Compound Shape using a specified font.
Example:
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.