Draft ShapeString/tr: Difference between revisions
Skywalker21 (talk | contribs) (Created page with "Şekil dizesi aracı, bir metin dizesini temsil eden bir bileşik şekil ekler. Metin yüksekliği, izleme ve yazı tipi belirtilebilir. Ortaya çıkan şekil, 3D harfler olu...") |
Skywalker21 (talk | contribs) (Created page with " Metinaracı, kapalı bir şekil üretmeyen daha basit bir alternatiftir.") |
||
Line 7: | Line 7: | ||
Ortaya çıkan şekil, 3D harfler oluşturmak için [[Part Extrude|Parça çıkarma]] aracıyla kullanılabilir. |
Ortaya çıkan şekil, 3D harfler oluşturmak için [[Part Extrude|Parça çıkarma]] aracıyla kullanılabilir. |
||
[[Draft Text/tr|Metin]]aracı, kapalı bir şekil üretmeyen daha basit bir alternatiftir. |
|||
The [[Draft Text]] tool is a simpler alternative that does not produce a closed shape. |
|||
[[Image:Draft_ShapeString_Example400.png]] |
[[Image:Draft_ShapeString_Example400.png]] |
Revision as of 19:11, 3 January 2019
Şekil dizesi |
Menü konumu |
---|
Taslak → Şekil dizesi |
Tezgahlar |
Taslak, Yapı |
Varsayılan kısayol |
S S |
Versiyonda tanıtıldı |
- |
Ayrıca bkz |
Metin, Parça çıkarma |
Tanım
Şekil dizesi aracı, bir metin dizesini temsil eden bir bileşik şekil ekler. Metin yüksekliği, izleme ve yazı tipi belirtilebilir. Ortaya çıkan şekil, 3D harfler oluşturmak için Parça çıkarma aracıyla kullanılabilir.
Metinaracı, kapalı bir şekil üretmeyen daha basit bir alternatiftir.
How to use
- Press the Draft Shape from text ... 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.
Options
- 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.
Properties
- VeriPosition: The base point of the compound shape
- VeriString: The contents of the text string
- VeriSize: The height of the letters in FC units
- VeriTracking: The inter-character spacing in FC units
- VeriFont File: The font definition file used to draw the string
Scripting
The ShapeString tool can be used in macros and from the Python console by using the following function:
ShapeString = makeShapeString(String, FontFile, Size=100, Tracking=0)
- Creates a
ShapeString
compound shape using the specifiedString
FontFile
is mandatory and must be the full path of a supported font fileSize
is the height of the resulting text in millimetersTracking
is the additional inter-character spacing in millimeters
Example:
import FreeCAD, Draft
Draft.makeShapeString("This is a sample text",
"/usr/share/fonts/truetype/msttcorefonts/Arial.ttf",
200.0, 10)
Selecting A Font
ShapeString uses the internal geometry of a font to make FreeCAD shapes. To do this it must read the actual font file (*.tff, etc). If the Font Selection box is empty, you must type the full path to the font file or use ... to select a font file.
Limitations
- This tool is not available in FreeCAD versions anterior to 0.14
- 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.
- For creating curved text you can use the macro Circular Text