111 lines
8.7 KiB
HTML
111 lines
8.7 KiB
HTML
<html><head><title>Draft ShapeString/de</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Draft ShapeString/de</h1></div>
|
|
|
|
<div id="mw-content-text" lang="de" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" width="100%" style="float: right; width: 200px;">
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="Draft_ShapeString"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_ShapeString.png" class="image"><img alt="Draft ShapeString.png" src="32px-Draft_ShapeString.png" width="32" height="32" srcset="/wiki/images/thumb/f/f7/Draft_ShapeString.png/48px-Draft_ShapeString.png 1.5x, /wiki/images/f/f7/Draft_ShapeString.png 2x" /></a> Draft ShapeString</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menüeintrag
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Draft -> ShapeString
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Arbeitsbereich
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Module/de" title="Draft Module/de">Draft</a>, <a href="https://www.freecadweb.org/wiki/index.php?title=Arch_Module/de" title="Arch Module/de">Arch</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Standardtastenkürzel
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">S S
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Siehe auch
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">None
|
|
</td></tr>
|
|
<tr>
|
|
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1"><a href="Draft_ShapeString.html"><span class="tocnumber">1</span> <span class="toctext">Draft ShapeString</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#How_to_use"><span class="tocnumber">3</span> <span class="toctext">How to use</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Options"><span class="tocnumber">4</span> <span class="toctext">Options</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Properties"><span class="tocnumber">5</span> <span class="toctext">Properties</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Scripting"><span class="tocnumber">6</span> <span class="toctext">Scripting</span></a></li>
|
|
<li class="toclevel-1 tocsection-6"><a href="#Selecting_A_Font"><span class="tocnumber">7</span> <span class="toctext">Selecting A Font</span></a></li>
|
|
<li class="toclevel-1 tocsection-7"><a href="#Limitations"><span class="tocnumber">8</span> <span class="toctext">Limitations</span></a></li>
|
|
<li class="toclevel-1 tocsection-8"><a href="#Tutorials"><span class="tocnumber">9</span> <span class="toctext">Tutorials</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>The ShapeString tool inserts a compound shape representing a text string at a given point in the current document. Text height, tracking and font can be specified.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_ShapeString_Example400.png" class="image"><img alt="Draft ShapeString Example400.png" src="Draft_ShapeString_Example400.png" width="400" height="200" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><li> Press the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_ShapeString16.png" class="image"><img alt="Draft ShapeString16.png" src="Draft_ShapeString16.png" width="16" height="16" /></a> <a href="Draft_ShapeString.html" title="Draft ShapeString">Draft Shape from text ...</a></span> button, or press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">S</span> then <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">S</span> keys</li>
|
|
<li> Click a point on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li>
|
|
<li> Enter the desired text, press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> </li>
|
|
<li> Enter the desired size, press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span></li>
|
|
<li> Enter the desired tracking, press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span></li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> to accept the displayed font file, or,</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">...</span> to select a font file. </li></ol>
|
|
<h2><span class="mw-headline" id="Options">Options</span></h2>
|
|
<ul><li> To enter coordinates manually, simply enter the numbers, then press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> between each X, Y and Z component.</li>
|
|
<li> Pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ESC</span> will cancel the operation.</li>
|
|
<li> You can set a default font file in Draft/Prefences.</li></ul>
|
|
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
|
|
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Position</b>: The base point of the compound shape</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>String</b>: The contents of the text string</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Size</b>: The height of the letters in FC units</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Tracking</b>: The inter-character spacing in FC units</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Font File</b>: The font definition file used to draw the string</li></ul>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>The ShapeString tool can by used in <a href="Macros.html" title="Macros">macros</a> and from the python console by using the following function:
|
|
</p>
|
|
<pre>makeShapeString(String,FontFile,[Size],[Tracking]) </pre>
|
|
<ul><li> Turns a text string into a Compound Shape using a specified font. </li></ul>
|
|
<p>Example:
|
|
</p>
|
|
<pre>import FreeCAD,Draft
|
|
Draft.makeShapeString("This is a sample text",
|
|
"/usr/share/fonts/truetype/msttcorefonts/Arial.ttf",
|
|
200.0,10) </pre>
|
|
<h2><span class="mw-headline" id="Selecting_A_Font">Selecting A Font</span></h2>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:SSFontSelect.png" class="image"><img alt="SSFontSelect.png" src="SSFontSelect.png" width="702" height="32" /></a>
|
|
</p><p>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 <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">...</span> to select a font file.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Limitations">Limitations</span></h2>
|
|
<ul><li> This tool is not available in FreeCAD versions anterior to 0.14</li>
|
|
<li> TrueType(*.ttf), OpenType(*.otf) and Type1(*.pfb) font files are supported. </li>
|
|
<li> Very small text heights may result in deformed character glyphs due to loss of detail in scaling. </li>
|
|
<li> The current version is limited to left-to-right layouts on a horizontal baseline. </li>
|
|
<li> For creating curved text you can use the macro <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCircularTextButtom.png" class="image"><img alt="FCCircularTextButtom.png" src="24px-FCCircularTextButtom.png" width="24" height="24" srcset="/wiki/images/thumb/c/c1/FCCircularTextButtom.png/36px-FCCircularTextButtom.png 1.5x, /wiki/images/thumb/c/c1/FCCircularTextButtom.png/48px-FCCircularTextButtom.png 2x" /></a><a href="Macro_Circular_Text.html" title="Macro Circular Text">Circular Text</a></li></ul>
|
|
<h2><span class="mw-headline" id="Tutorials">Tutorials</span></h2>
|
|
<ul><li> <a href="Draft_ShapeString_tutorial.html" title="Draft ShapeString tutorial">Draft ShapeString tutorial</a></li></ul>
|
|
<p><br />
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Draft_ShapeString/de&oldid=282238">http://www.freecadweb.org/wiki/index.php?title=Draft_ShapeString/de&oldid=282238</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |