Skip to content

Commit

Permalink
Merge pull request #46 from googlefonts/issue-42-knife-tool-infos
Browse files Browse the repository at this point in the history
Add Knife tool infos
  • Loading branch information
ollimeier authored Aug 7, 2024
2 parents 52a0fbe + 9b143b0 commit 3191d50
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 10 deletions.
11 changes: 6 additions & 5 deletions _reference/navigation/keyboard-shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ order : 301
| `` + `-` | `Ctrl` + `-` | **zoom out** |
| `` + `+` | `Ctrl` + `+` | **zoom in** |
| `` + `0` | `Ctrl` + `0` | **zoom fit** to selection |
| `1` | `1` | switch tool to <a href='../../reference/tools/pointer'>**Pointer tool**</a>: <img height="20" src="{{ site.url }}/images/icons/pointer.svg"> |
| `2` | `2` | switch tool to <a href='../../reference/tools/pen'>**Pen tool**</a>: <img height="20" src="{{ site.url }}/images/icons/pointeradd.svg"> |
| `3` | `3` | switch tool to <a href='../../reference/tools/shapes'>**Shape tool**</a>: <img height="20" src="{{ site.url }}/images/icons/square-plus-2.svg"> |
| `4` | `4` | switch tool to <a href='../../reference/tools/ruler'>**Power ruler tool**</a>: <img height="20" src="{{ site.url }}/images/icons/ruler.svg"> |
| `5` | `5` | switch tool to <a href='../../reference/tools/hand'>**Hand tool**</a>: <img height="20" src="{{ site.url }}/images/icons/hand.svg"> |
| `1` | `1` | switch tool to <a href='{{ site.url }}/reference/tools/pointer'>**Pointer tool**</a>: <img height="20" src="{{ site.url }}/images/icons/pointer.svg"> |
| `2` | `2` | switch tool to <a href='{{ site.url }}/reference/tools/pen'>**Pen tool**</a>: <img height="20" src="{{ site.url }}/images/icons/pointeradd.svg"> |
| `3` | `3` | switch tool to <a href='{{ site.url }}/reference/tools/knife'>**Knife tool**</a>: <img height="20" src="{{ site.url }}/images/icons/slice.svg"> |
| `4` | `4` | switch tool to <a href='{{ site.url }}/reference/tools/shapes'>**Shape tool**</a>: <img height="20" src="{{ site.url }}/images/icons/square-plus-2.svg"> |
| `5` | `5` | switch tool to <a href='{{ site.url }}/reference/tools/ruler'>**Power ruler tool**</a>: <img height="20" src="{{ site.url }}/images/icons/ruler.svg"> |
| `6` | `6` | switch tool to <a href='{{ site.url }}/reference/tools/hand'>**Hand tool**</a>: <img height="20" src="{{ site.url }}/images/icons/hand.svg"> |
| `` + `a` | `Ctrl` + `a` | select **all** points + components, second time: include anchors + third time: only anchors |
| `` + `` + `a` | `` + `Ctrl` + `a` | select **none** |
| `` + `c` | `Ctrl` + `c` | **copy** selection or glyph |
Expand Down
1 change: 1 addition & 0 deletions _reference/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theoretical knowledge · information-oriented · useful when working
- [Tools](tools)
- [Pointer](tools/pointer)
- [Pen](tools/pen)
- [Knife](tools/knife)
- [Shape tool](tools/shapes)
- [Ruler](tools/ruler)
- [Hand](tools/hand)
Expand Down
12 changes: 9 additions & 3 deletions _reference/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,27 @@ Interactive tools allow you to edit and measure glyphs with live visual feedback
<td>2</td>
</tr>
<tr>
<td><img height="30" src="{{ site.url }}/images/icons/slice.svg"></td>
<td><a href='knife'>knife tool</a></td>
<td>slice contours</td>
<td>3</td>
</tr>
<tr>
<td><img height="30" src="{{ site.url }}/images/icons/square-plus-2.svg"></td>
<td><a href='shapes'>shape tool</a></td>
<td>draw bezier rectangle or ellipse</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td><img height="30" src="{{ site.url }}/images/icons/ruler.svg"></td>
<td><a href='ruler'>ruler tool</a></td>
<td>measure contour distances interactively</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td><img height="30" src="{{ site.url }}/images/icons/hand.svg"></td>
<td><a href='hand'>hand tool</a></td>
<td>move around the canvas</td>
<td>5 or space</td>
<td>6 or space</td>
</tr>
</table>
65 changes: 65 additions & 0 deletions _reference/tools/knife.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
title : Knife tool
layout : default
permalink : /reference/tools/knife
draft : true
order : 403
---

<nav aria-label="breadcrumb">
<ol class="breadcrumb small">
<li class="breadcrumb-item"><a href="{{ site.url }}">Index</a></li>
<li class="breadcrumb-item"><a href="../../../reference">Reference</a></li>
<li class="breadcrumb-item"><a href="../tools/">Tools</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>
</ol>
</nav>

The *Knife tool* <img height="20" src="{{ site.url }}/images/icons/slice.svg"> allows you to slice contours (multi source editing works as well).
Click the icon in the toolbar, or use the short cuts below.
{: .lead }

<table class='table table-hover'>
<tr>
<th width='35%'>short cut</th>
<th width='65%'>description</th>
</tr>
<tr>
<td>3</td>
<td>Select tool</td>
</tr>

</table>

Actions
-------

<table class='table table-hover'>
<tr>
<th width='35%'>action</th>
<th width='65%'>description</th>
</tr>
<tr>
<td>click + drag</td>
<td>Show intersection points</td>
</tr>
<tr>
<td>click + drag + release</td>
<td>Slice</td>
</tr>
<tr>
<td>⇧ + click + drag</td>
<td>Show intersection points with angle constrained to multiples of 45°.</td>
</tr>
<tr>
<td>⇧ + click + drag + release</td>
<td>Slice with angle constrained to multiples of 45°.</td>
</tr>
</table>

*Knife Tool* introduction
-------
<video src="{{ site.url }}/videos/knife-tool.mp4" controls="controls" style="width: 100%; max-width: 600px">
</video>


2 changes: 1 addition & 1 deletion _reference/tools/ruler.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title : Ruler
layout : default
permalink : /reference/tools/ruler
draft : true
order : 404
order : 405
---

<nav aria-label="breadcrumb">
Expand Down
2 changes: 1 addition & 1 deletion _reference/tools/shapes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title : Shape tool
layout : default
permalink : /reference/tools/shapes
draft : true
order : 403
order : 404
---

<nav aria-label="breadcrumb">
Expand Down
1 change: 1 addition & 0 deletions images/icons/slice.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3191d50

Please sign in to comment.