Jitai (字体): The font randomizer that fits

I just wanted to say this is such a flippin awesome script. I installed it a few days ago and man, that ArmandBanana is crazy.
Thanks so much for this. :hugs:

Works like a charm. So I guess the next days I’ll go crazy with installing new fonts. gg

Just thought I’d point out - the FC Flower font on the GitHub page is broken. Shame, too, that font actually looked really pretty. (Guess that would be the point, given it’s name)

Fixed it! Thanks for the heads-up!

1 Like

When I download the fonts, do I need to put them somewhere in particular so that the script knows that I have them? I’m on a Mac with current version of Mac OS.

Right now I have a bunch of fonts in my download folder, and I don’t think this I where I want to keep them. I tried to copy them to System>Library>Fonts but I was not able to do that.

My apologies if this question was already asked, it’s quite a long thread.

1 Like

I am also a complete noob when it comes to installing fonts…

I downloaded a bunch of free fonts, and have a japanese keyboard, but for some reason it only shows me the alphanumeric characters?

Edit: also I’m on Mac with Chrome and Tampermonkey, will this script work with this setup?
Edit2: It does work with Chrome and Tampermonkey just fine.

On the install screen, it should show the Alphanumeric letters… macOS assumes you’re intending to use it to type in English. Either way, the Japanese characters are present.

3 Likes

If it’s like Windows, you should be able to just double-click the files, and macOS should take care of the rest.

2 Likes

Thanks a lot. It turns out I was doing it right then. It just threw me for a loop to be installing a Japanese font that suddenly only looked English :blush:

1 Like

aha! so simple! But I never would have just thought of doing that, so thank you!!

When I did that, a new finder window opened, and the new fonts were in a folded called User that only had those fonts. On the left sidebar there was another option for “All Fonts”. There I found a huge list with many options that contained Japanese glyphs, so I added those to the list at the bottom of the userscript as well. So now I will restart and hope to be thrilled!!

Some (included the infamous Armed Banana) were in a format that I could not open - oh well :woman_shrugging:

What format is that? When I search - I find a TTF - which is arguably the most supported format. (Note I’m also using macOS :wink: )

Oh interesting, I think it was .lzh or similar. There were a few like that but maybe I should look again at the pages for those fonts that didn’t work for me.

And, I do indeed have a slew of new fonts in play now - yay!!!

Edit - I did find Armed Banana as a .ttf and, for better or worse, have installed it :stuck_out_tongue_winking_eye:

.lzh is an archive format, like .zip. Keka (https://www.keka.io/en/) can open them.

2 Likes

Ah - thank you!

2 Likes

Thanks for this tip shared back in 2018.

These days, I am not pleased with the look of the currenty used font (Meiryo), and I confirmed that Meiryo is used even I select ‘Yu Gothic’ in the Firefox preferences.
Even when TMonkey scripts or CSS sheets are disabled.
And issue is the same in IE, so it seems to be a system-level issue (Windows10).

When I tried typing in FF’s console:

$('#character').css('font-family')

it returns:

"Hiragino Kaku Gothic Pro, Meiryo, Source Han Sans Japanese, NotoSansCJK, TakaoPGothic, Yu Gothic, ヒラギノ角ゴ Pro W3, メイリオ, Osaka, MS PGothic, MS Pゴシック, Noto Sans JP, sans-serif"

So I would expect the 1st item of the list (Hiragino Kaku Gothic Pro) to be used.

If i enforce the 1st listed font by typing:
$('#character').css('font-family', 'Hiragino Kaku Gothic Pro')
… it looks much better… :
image
… than the one which is currently used (‘Meiryo’):
image

So can someone please explain:

  • how can I change the system font used in Windows10? Can I change it from default Meiryo to something else?
  • how come the font order returned by the console is not respected in FF?

Thanks & Regards