Shortcuts | MkFont

#
Shortcuts

MkFont shortcuts, what do they do, do they do things, let’s find out!

> ###
> All numeric inputs & sliders in MkFont can be modified using the mouse wheel on hover.

> Holding while scrolling or dragging will multiply the default increment by 10.

> Rule of thumb : most actions have an alternative behavior whether you’re holding or while activating them.
> Usually, has the most “dangerous” effect, and reaches further than the original behavior.
> On the contrary, has a lesser effect, and often means the action will only execute a subset of its normal instructions.

##
In the Font editor

Shortcut | Action
--- | ---
Actions
| Saves the currently edited mkfont file. Prompts a dialog if the file has never been saved before.
| Undo last action
| Redo last action
Navigation
| Previous nav state (should be the same as in a regular browser)
| Next nav state (should be the same as in a regular browser)
Selection
| Selects all glyphs currently displayed in the viewport.
| Clears the current selection
| Store the current selection as a shortcut.
| Restore the selection previously stored
| Appends the selection previously stored to the current selection

> Keep in mind that glyphs are copied and pasted in the order in which they have been selected.

> Pasting a group selection on top of another group selection will ‘wrap’ the content available in the clipboard.
> For example, if you copied `1`,`2`, and paste it over a selection that has more than 2 glyphs, the result will be `1`,`2`,`1`,`2`,`1`,…

##
In the Font viewport

Shortcut | Action
--- | ---
| Copy a single glyph to the app clipboard
| Paste the content of the clipboard in the selected glyph slot. Supports pasting directly from Adobe© Illustrator!
| Paste the glyphs copied using to their matching unicode slots. This is especially (if not only) useful to paste glyphs from an .mkfont to another in batch, while retaining their unicode positions.
| Applies the transform of the glyph stored in memory using to all glyphs in the active selection. Does not affect the path.
| Deletes the selected glyphs

> Note on copy/pasting glyphs : glyphs are copied into SVG format, with transform information embedded as SVG attributes. This means that you can safely use the clipboard’s content in any SVG-friendly app, and that casually pasting within MkFont will retain transform settings.

###
Action modifiers

Modifiers are applied when a key is pressed along with a specific button.
TL;DR : When clicking on an action while is pressed will execute the action for all glyphs within the range, not just limited to your active selection.

Modifier | Action
--- | ---
+ | Create empty glyphs in Unicode slots that have no glyph yet. Does not overwrite existing ones.
+ | Copy the unicode characters to the clipboard, with each value separated by a newline character : `\n`. (see note)
+ | Copy the unicode hex values to the clipboard, with each value separated by a newline character : `\n`. (see note)
+ | Create & execute a JSX script that will prompt Adobe© Illustrator to create a new document with artboard set-up for each glyph within the range (up to 1000), properly named in order to be exported easily. (see Third parties )
+ | Delete all glyphs within the range.

##
In the Glyph inspector

###
Header actions

Modifier | Action
--- | ---
When multiple glyph are selected, action is applied to every one of them
+ | Resets the glyph contents & create components matching the glyph composition, if any, as well as associated glyphs if they are missing.
+ | Resets the glyph contents but keeps existing components.
+ | Resets the glyph contents, and recursively creates missing glyphs along with their decomposition.

###
Components

Modifier | Action
--- | ---
Copy/paste
+ | Add components from the clipboard, instead of replacing the existing ones
+ | Only paste transform settings from matching components within the clipboard
Decomposition
+ | Create components recursively.
+ | Does not create missing components’ glyphs.
+ | Create components & missing glyphs recursively.