How to generate keyboard key graphics?
I'm trying to figure out how to create keyboard key graphics for a tutorial rather than using text, like in the attached image. How can I do this? Thanks!
I'm trying to figure out how to create keyboard key graphics for a tutorial rather than using text, like in the attached image. How can I do this? Thanks!
Additional to the other suggestions here, you might consider searching for a vector Apple individual keys clipart source. The individual keys should be on a transparent background. This clipart most always has some cost associated with it, but can look very professional too.
If you attempt screen captures of keyboard layouts, you will have low resolution images that should have post-processing performed to remove background, or shadow artifacts from around the key image.
Or a styled HTML approach. There are better examples of button styling available, but this was handy:
and was generated in Safari 13.0.5, or Firefox 73.0.1 with the following HTML code where the Apple symbols were introduced from the character palette's Technical Symbols category.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
padding:20px;
height:100%;
font: 20px Helvetica, serif;
color: #555;
}
.keyshape {
/*Box Properties*/
display:inline-block;
width:48px;
height:48px;
margin: 0px 4px;
background: #fff;
border-radius: 4px;
box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
font: 18px/48px Helvetica, serif ;
text-transform: uppercase;
text-align: center;
color: #666;
}
</style>
</head>
<body>
<p>Use this command: <span class="keyshape">⌘</span> + <span class="keyshape">T</span>
</p>
<p>Or these: <span class="keyshape">⌥</span> + <span class="keyshape">⌘</span> + <span class="keyshape">I</span>
</p>
</body>
</html>
One enters their two or three key combination characters, saves the HTML (.html) file, and double-clicks it in the Finder to open it in a browser. Then screen capture the key sequence and copy/paste into your document.
Additional to the other suggestions here, you might consider searching for a vector Apple individual keys clipart source. The individual keys should be on a transparent background. This clipart most always has some cost associated with it, but can look very professional too.
If you attempt screen captures of keyboard layouts, you will have low resolution images that should have post-processing performed to remove background, or shadow artifacts from around the key image.
Or a styled HTML approach. There are better examples of button styling available, but this was handy:
and was generated in Safari 13.0.5, or Firefox 73.0.1 with the following HTML code where the Apple symbols were introduced from the character palette's Technical Symbols category.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
padding:20px;
height:100%;
font: 20px Helvetica, serif;
color: #555;
}
.keyshape {
/*Box Properties*/
display:inline-block;
width:48px;
height:48px;
margin: 0px 4px;
background: #fff;
border-radius: 4px;
box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
font: 18px/48px Helvetica, serif ;
text-transform: uppercase;
text-align: center;
color: #666;
}
</style>
</head>
<body>
<p>Use this command: <span class="keyshape">⌘</span> + <span class="keyshape">T</span>
</p>
<p>Or these: <span class="keyshape">⌥</span> + <span class="keyshape">⌘</span> + <span class="keyshape">I</span>
</p>
</body>
</html>
One enters their two or three key combination characters, saves the HTML (.html) file, and double-clicks it in the Finder to open it in a browser. Then screen capture the key sequence and copy/paste into your document.
Hello, OMMBOY.
What you're looking for cannot be generated by the macOS itself. You're going to have to turn to software to design those graphics. Alternatively, you might try a google search for keyboard graphic images and see what you find on the interwebs.
To be honest, you have the makings of a good start for home-brewed graphics right there in your attached image. White keys on a dark background overlaid w text isn't a bad thing.
Having said that, I just took this screenshot of the Keyboard Viewer expanded to my full screen size on iMac.
Copy/Paste and image editing, anyone?
For more info about screen shots please see:
How to take a screenshot on your Mac - Apple Support
Maybe Keyboard Viewer captures...
Or...
https://gist.github.com/Zenexer/c5243c4216f1f8cd2251
⌘ U+23180 Command
⌘
⌥
⇧
⌥
⎇
⌃
AHA, I was too slow at posting, but glad to see you beat me, I need someone to take over my spot. :)
Excellent as always! :)
Nailed it! 👍🏽
:)
You are welcome. Good to see code put to use.
WOW! I really was not expecting so many great answers! Thank you to all who contributed! And a HUGE thank you to VikingOSX who provided the simplest and cleanest approach to my request. You are all awesome!
Chris
Ya know, between the two of us I think we got this thing licked! 😎
How to generate keyboard key graphics?