Is there a Unicode glyph that looks like a “key” icon? [closed]

爷,独闯天下 提交于 2019-11-27 06:24:45
Anon

I used a little Python 3 script to look, and the closest I found does not display here for me (does display in Idle on my machine), but it is:

9897 ⚩ HORIZONTAL MALE WITH STROKE SIGN

(Looks like a male sign pointed right with a perpendicular stroke added between the arrow and circle)

I searched for various matches like "KEY" and "LOCK" in the unicode names using Python's unicodedata module and no luck there.

Editing to add - Ah hah - one that looks even more like a key:

9911 ⚷ CHIRON

I give both of the above code points in decimal. To see them and their hex codes, go to this link:

http://www.unicode.org/charts/PDF/U2600.pdf

See 26B7 in particular for the Chiron.

hemflit

U+1F511 🔑 KEY (128273 decimal)

Also:

U+1F5DD 🗝 (Decimal: 🗝) OLD KEY

U+26BF ⚿ SQUARED KEY

U+1F510 🔐 CLOSED LOCK WITH KEY

U+1F512 🔒 LOCK

U+1F513 🔓 OPEN LOCK

U+1F50F 🔏 LOCK WITH INK PEN

Kzqai

To find useful symbols, I have this resource:

http://shapecatcher.com

Allows you to draw a shape, which it then searches for similarly shaped unicode symbols.

I often end up using shapecatcher these days just because it's a fun break just to be able to draw the shape that you want and have the site pull it up for you. At least, sometimes it will pull it up.

Misc. Symbols Blocks

http://shapecatcher.com/unicode/block/Miscellaneous_Symbols_And_Pictographs is also a great category of unicode symbols, though as with all unicode, you may have to test compatibility.

This is duplicated from my answer here because I think the approach will be useful to others besides just me: What Unicode character do you use in your website? (instead of image icons)

Check out #26bf.

9919 ⚿ SQUARED KEY (HTML: ⚿)

It's the parental lock, which is a key inside a square. It's a newer Unicode specification so standard fonts don't support it, but if you can find a font that has it, you're home free.

I've found Google to be the best way to find Unicode characters. I didn't find see anything useful for a key symbol, however.

If you want to search visually, use the PDF charts, since HTML-based listings will only show symbols that occur in the particular set of fonts you have installed.

Lacking any specific symbol, I would just use "I" to indicate an index and "PK" for a primary key.

I browsed through all the symbols (using a PHP script I created a while back) and can't see a key symbol. You could try one of these:

A mathematic-looking P:
ℙ (#8473)

Various star shapes:
★ (#9733)
☆ (#9734)
✶ (#10038)

There doesn't seem to be a unicode character that fits your description, but I'd recommend the silk icon set by famfamfam if you can use icons in your situation--just a suggestion :P

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!