Shinmera / promptfont

A font with extra characters for button prompts in games
https://shinmera.github.io/promptfont/
SIL Open Font License 1.1
183 stars 13 forks source link

Missing Glyphs #2

Open Shinmera opened 5 years ago

Shinmera commented 5 years ago

Gamepad

Keyboard

Mouse

Android

Nintendo

Xbox

Play Station

Devices

Logos

Icons

floere commented 2 years ago

@Shinmera One glyph that is sorely missing for me is the spacebar key. Happy to create it if you give me some pointers how to go about it!

Shinmera commented 2 years ago

Space exists already as U+243A, it just wasn't shown on the docs.

floere commented 2 years ago

@Shinmera Thank you! ✨

Shinmera commented 2 years ago

Hm, actually, I might not have pushed that update when I added that. Should be up now.

floere commented 2 years ago

Hm, actually, I might not have pushed that update when I added that. Should be up now.

It hadn't yet been added, thanks for catching that. Now all is good.

bend-n commented 1 year ago

Arrow keys?

Shinmera commented 1 year ago

← ↑ → ↓

bend-n commented 1 year ago

Ah, okay. Didn't realize i could just use the defaults.

bend-n commented 1 year ago

reset button? like

 <---
     \
     |
----/
Shinmera commented 1 year ago

On what physical device does a reset button exist? What do you mean exactly?

bend-n commented 1 year ago

@Shinmera android has one.

image

Im talking more about the icons section though.

Shinmera commented 1 year ago

There's other fonts like FontAwesome that can provide generic icon sets.

bend-n commented 1 year ago

But your providing gears shopping carts trains anvils, why not back icons?

Shinmera commented 1 year ago

Because I don't feel like it.

bend-n commented 1 year ago

but a return/back icon is far more generic than anvil icons. I can PR it myself, if you just dont want to make the icon.

Shinmera commented 1 year ago

I haven't done any of the other icons yet either. But sure, PR away.

pauguri commented 1 year ago

A single glyph with the four WASD or arrow keys (in the typical "one at the top, three at the bottom" arrangement) would be much appreciated!

CasperH2O commented 1 year ago

@Shinmera , we (@Valkirie and me) are using your amazing work in our open source application Handheld Companion. See below for GUI screenshot of the button remapper.

As I realize you cannot accommodate every single request (as open source developers ourselves we are very familiar with that :wink:), I was wondering what are the specifications/requirements for getting new icons made by someone else accepted by you in a PR? What format do they need to be in, size, color, line thickness etc? I will try to find someone who can make them for us as a paid gig (Upwork/Fiverr). Or perhaps you know someone?

Our wish list for now is:

afbeelding afbeelding

Shinmera commented 1 year ago

Heya, glad to hear you're finding it useful!

As for format, have a look around the repository. Each custom glyph is first created as an SVG, and then imported into the font via FontForge. For text I've re-used the existing glyphs within PromptFont/Xolonium. Otherwise I haven't really outlined any specific style guides, I'm afraid. I don't think I would be super picky though as long as the work would fit in with the existing glyphs.

If you can provide the SVGs in a PR I'd be happy to review them and integrate them into the font.

CasperH2O commented 1 year ago

Hey @Shinmera me again. Attached an initial set for various icons we're missing and wanted to add. Shall I do a PR with the SVG files and let you take it from there once they're done? Any other feedback? Number 7 and 14 need a rounded rectangle box, I'll get that fixed.

afbeelding

Shinmera commented 1 year ago

Ooh, I like the adjustments you made to the LT and RT. Would be ace if those could be ported over to the L2/R2 and ZL/ZR glyphs, as well to keep things consistent.

I'm not sure what 3 and 4 are meant to symbolise?

As for 7 and 14, aren't those already covered by U+21F1 and U+21F2?

19 and 20 should be vertically centred, unless they are and the preview is just bonked.

CasperH2O commented 1 year ago

Thank you. I realize now that it's not very clear unless you know which number represents what. Sorry about that. Here you go:

1 and 2, left and right trigger partial pull. It's inspired by Steams icon, see below. I didn't see a way to add the diagonal line with only 2 colors. 3 and 4, touch left and right joystick (Steamdeck sensor on top of joystick) 5 and 12, click trackpad (Steamdeck) 6 and 13, touch trackpad (Steamdeck) 7 and 14, trackpad touch position as joystick (hence it needs a rounded square shape in the back) 8 through 11 and 15 through 18, trackpad click left right up down 19 and 20 are not vertically centered, good catch.

afbeelding afbeelding

Shinmera commented 1 year ago

Oh, I see. Hmm. I'm not sure the pulls are clear enough as it is. Maybe instead add an arrow to the side to indicate the pull?

Also, I just remembered that the deck also has the four paddle buttons, maybe adding symbols for those would be good?

CasperH2O commented 1 year ago

@Shinmera do you like any of the below to indicate a partial pull of the trigger?

image

The 4 paddle buttons are part of round 2, I figured I'd do them in batches of 20 icons.

Shinmera commented 1 year ago

I think the first is definitely clearest.

Dopply commented 1 year ago

First of all, huge thanks for this. I appreciate all the hard work put into this project.

In any case, would it be possible to add DualSense support at some point? I went ahead and made some rough SVGs based on the existing DS4 prompts.

DualSense Options: button-options-ps5

DualSense Share: button-share-ps5

DualSense Touchpad: touchpad_ps5

Thanks again!

Shinmera commented 1 year ago

Please see the CONTRIBUTING.md. I'm fine with having those glyphs in there, though imo using the PS4 ones for the DS is fine, in the very least for the touchpad. I don't think we need a new one there.

Dopply commented 1 year ago

Please see the CONTRIBUTING.md. I'm fine with having those glyphs in there, though imo using the PS4 ones for the DS is fine, in the very least for the touchpad. I don't think we need a new one there.

I apologize, I should have read the entire directory.

For PC it is definitely not an issue but as far as I know PS5 native games would require the more specific prompts to pass console certification (including touchpad). Regardless I won't open a pull request if it is felt they are unnecessary.

Shinmera commented 1 year ago

Ah, I have no idea about cert checks, but if adherence is that strict, then there should definitely be versions for them in the font.

Dopply commented 1 year ago

Okay, I went ahead and added a pull request then and made the SVGs adhere to the directory guidelines.

CasperH2O commented 9 months ago

@Shinmera I'm back for another round. I have 37 new glyphs. I made sure the meet your contribution requirements (one element, 500x500, some margin etc).

They are mostly additions for handheld gaming devices that have dedicated OEM buttons, like SteamDeck, Asus ROG Ally, AYANEO, GPD and even the upcoming Lenovo Legion Go. Additionally I have opted to add the xbox style and nintendo joycon dpad, as the current set only has the playstation dpad.

See below a picture.

image

Descriptions:

1 Steamdeck backbutton L4 2 Steamdeck backbutton L5 3 Steamdeck backbutton R4 4 Steamdeck backbutton R5 5 Ayaneo Logo button 6 Ayaneo wave button 7 Ayaneo LC button 8 Ayaneo RC button 9 OneXPlayer Keyboard 10 AOKZOE Turbo 11 AOKZOE Home 12 Lenovo Legion Go Legion Space 13 Lenovo Legion Go Quick Settings 14 GPD Custom Key 1 15 GPD Custom Key 2 16 Loki Home 17 Loki LCC 18 ASUS ROG Ally Command Center 19 ASUS ROG Ally Armoury Crate 20 ASUS ROG Ally M1 21 ASUS ROG Ally M2

22 Xbox Dpad 23 Xbox Dpad Left 24 Xbox Dpad Up 25 Xbox Dpad Right 26 Xbox Dpad Down 27 Xbox Dpad Left/Right 28 Xbox Dpad Up/Down 29 Xbox Dpad Left/Down 30 Xbox Dpad Up/Right 31 GameCube Z Shoulder 32 JoyCon SL Shoulder 33 JoyCon SR Shoulder 34 Nintendo D Button Up 35 Nintendo D Button Left 36 Nintendo D Button Down 37 Nintendo D Button Right

Let me know what you think!

Shinmera commented 9 months ago

Great! Though I'll probably just replace the existing dpad icons with the new Xbox ones you made. They look a lot better. Though they also don't seem to be 100% black for some reason?

For 12 and 13, maybe make the inner icon bigger, since otherwise the sign will be almost illegible at smaller text sizes.

I'm on holidays atm, so I don't know when I'll get around to adding them into the font, but feel free to send a PR any time.

CasperH2O commented 9 months ago

@Shinmera thanks for getting back to me, hopefully you have a nice holiday.

  1. Glad you like the xbox dpad! Our application currently switches between button shapes based on the device (xbox, Nintendo and PlayStation) icons where applicable, so we strongly prefer that the Xbox dpad simply gets added and not replace the PlayStation ones you already have. Hence also the addition of the 4 direction buttons for the joycons.
  2. The icons have been updated to all be black now, that was indeed an oversight.
  3. 12 and 13 internal shapes indeed need to be bigger and maybe also thicker
  4. Sure, I'll put in a PR and you can have a look and merge etc when you have the time. We are not in a rush.
  5. I noticed 11 and 16 are actually the same, owh well. 😅
offalynne commented 9 months ago

@Shinmera want to chime in another request that both split and solid dpad variants be available in the font since Sony requires the split style for prompts on anything released on their platforms, where others require the solid cross :-)

Shinmera commented 9 months ago

Ok!

Shinmera commented 9 months ago

Ok, finally got around to merging that.

I've also added a bunch of general game UI icons to the todo list. I think we could find a good middle ground of generic icons that would be generally useful.

dhamster commented 8 months ago

In terms of "generically useful game icons," would it be possible to get more circled letters added in the style of "Button A" or "Button X"? The use case would be for labeling in game actions. "Button G" and "Button T" for Guard and Throw for example.

Shinmera commented 8 months ago

That seems awfully game specific and kinda confusing? If I saw an encircled G I'd personally assume it wants me to press the G key or something.

dhamster commented 8 months ago

I was thinking in terms of how arcade games like Melty Blood label their actions: https://i.imgur.com/OpvU5Mh.png

Anyway, it's no big deal. I could use an inline sprite for that use case. PromptFont is probably better suited sticking to the physical buttons.

Shinmera commented 8 months ago

I do want to add generic icons to signify certain actions like attacking, defending, running, and so on, but I haven't had the time yet.

dhamster commented 8 months ago

Noted, thanks!

RyutoSetsujin commented 5 months ago

Hey! Just wanted to suggest the addition of dance pad arrows alongside the pad itself, that'd be nice.

Shinmera commented 5 months ago

Hey! Just wanted to suggest the addition of dance pad arrows alongside the pad itself, that'd be nice.

Can't you use the generic arrow symbols for that? Those are already in the font, too.

RyutoSetsujin commented 5 months ago

Can't you use the generic arrow symbols for that? Those are already in the font, too.

I could, I just thought it'd be cool to have DDR pad-styled arrows to use alongside the pad.

Shinmera commented 5 months ago

Ok, but how would they meaningfully differ from just the arrows that are already there?

jhintringer commented 5 months ago

Awesome font! Thank you very much!

I want to ask, if you would like to integrate 2 new devices: streamdeck (elgato) and a gamebuzzer

Shinmera commented 4 months ago

@jhintringer not sure why you edited your comment away, I think it's worth noting, so I hope you don't mind me bringing it back:

Also it would be nice, although I'm not sure if i really need it, to have the other keyboard keys available, that are used in the european market. For example Umlauts, like ÖÄÜ. They can also be pressed (and bound to the game), but then I don't know which character to show ingame.

There's a bunch of keycap glyphs that aren't covered by promptfont right now, even for standard US/ANSI boards. I understand wanting to display those keycaps to users if they've been mapped to something, but as you noted there's no clear thing to show, since what's on them varies wildly between each key layout in use, not just the ISO/ANSI form factor differences.

As such it would amount to creating a glyph for every possible printed key in the world, which I think is too large an effort for me to undertake. Maybe it could be reduced to every character that appears on a printed key, but even that I wouldn't even know what the set is or how to deal with CJK boards, etc.

offalynne commented 4 months ago

cjk layouts are a nonissue as they're just qwerty with the ime handling composition of ideographs, not relevant for key prompts

there actually aren't very many additional latin based characters you would need to cover for high marketshare layouts (qwertz, azerty).

i suppose cyrllic might be a wrinkle as some games do use it's key characters for prompts eg metro, but most players in those regions are comfortable switching software layouts and are well used to qwerty for games

Shinmera commented 4 months ago

There's stuff like this

cjk board

And many Japanese boards have extra keys not present on others:

jpn-board

offalynne commented 4 months ago

correct

they're just qwerty with the ime handling composition of ideographs, not relevant for key prompts

these aren't referred to by eg. games software. cjk games use the latin glyphs.