[solved]Software to modify a font+ASCII code trouble

Started by lafouine88, Sat 04/05/2024 11:48:22

Previous topic - Next topic

lafouine88

Hi guys
So I m having trouble with my fonts AND french keyboard... :~(

Font first, I m using one of the fonts I found here,
https://www.adventuregamestudio.co.uk/site/ags/sci_fonts/
but since it is (I Guess) an english font it doesn t have all our weird letters that we love so much ^^(à,é,ê...).
So I read (many Times) that you Can modify the fonts but I did not fond the right software. There should be something easy like, you Can directly draw accents,or add extra letters but I did not find yet. Do you have suggestions?

Second thing is about the ASCII code or how to call a keyboard button. My #2 keyboard button is an AZERTY, so the visual sign is é. Problem is this sign Can t be called in ags with ekeycode. I found the ASCII alternative, but it seemed the system changed with 3.6.1 and now the number I found doesnt work anymore. Any ideas?

Thanks🙂

WHAM

You can import regular windows font files into AGS and use those as your fonts. This way you don't need to customize any fonts manually to cover the special characters, but when importing a font into AGS you might have to try it out a few times to get the scaling to look right in your game, as most modern fonts are designed for higher resolutions than most AGS projects are created in. Just going on Google and searching for royalty free font files and then searching those sites for small scale or pixelated fonts can give you plenty of solid options that can look nice in AGS projects.

An example site might be daFont which I've used, and fonts such as this one:
https://www.dafont.com/pixellari.font?text=S%F6me+%7ESp%EAcial+Ch%E4r%F6cters

Not quite the precise answer to your question, but hopefully this is a useful stepping stone to get started with, as it can save you some time and effort.
Wrongthinker and anticitizen one. Utterly untrustworthy. Pending removal to memory hole.

eri0o

For text input you should use on_text_input

https://adventuregamestudio.github.io/ags-manual/UpgradeTo36.html#changes-to-key-input-handling
https://adventuregamestudio.github.io/ags-manual/Globalfunctions_Event.html#on_text_input

When IME support is added (for CJK) it won't be possible to work with the old on_key_press, same for future work using on screen keyboards that compose text.

For font editing if it's pixel art fonts I use the online Editor in bitfontmaker : www.pentacom.jp/pentacom/bitfontmaker2/gallery/?page=1&order=popular

For non-pixelart fonts I edit using the python fontTools along with some vector editing program but this requires command line comfort.

lafouine88

@eri0o Thanks for bitfontmaker, that's basically what I had in mind.
One small question though, do you know if there is a trick to import one of the sci-fonts(link in my first post)? I don't know what format it is but certainly not TTf and I only found this option to be able to import.
Ok for text input, I did'nt really understand it when I read the 3.6.1 improvements but if this is going to be the way I need to get into it. Hopefully I won't come back with more questions^^

@WHAM Thanks, I know this is certainly the easiest way but I could'nt yet find the perfect font (small enough and easily readable) so I thought I would just create one that adapts to my needs. I really hate fonts...^^

 

eri0o

I don't know. But there is a wfn font Editor someone here in the forums made, I think and CW improved and I think there's is a chance it can do that. I will look to see if I can find it later - I think I built it somewhere on GitHub too.

Crimson Wizard

The extended FontEdit is here:
https://github.com/ivan-mogilko/fontedit
this may create WFN fonts with any unicode letters up to index 65535.

But I forgot to make a proper release.

It may be downloaded here instead:
https://www.dropbox.com/s/xth28bfzu78vtqi/FontEditUni.zip?st=faf33qgn&dl=0

lafouine88

Hi again and sorry I took so long to reply.
I finally could try "on_text_input" and Fontedit. Both are perfect answers to my request.
Thanks a million guys  :smiley:

SMF spam blocked by CleanTalk