Jitai (字体): The font randomizer that fits

Thank you for keeping the updates coming! This is one of my favourite scripts so it’s great to see it actively maintained :smiley:

1 Like

They should be readable but not too big. I’m also missing a couple of fonts but I think this’ll do it for now:





2 Likes

Of course I couldn’t put all the screenshots in a single post…

@marciska Anyway, I’ve had trouble with the two fonts with the ‘+’ in their family name, so I had to change it. Don’t know if it’s because I’m serving them through custom css instead of installing them locally and I missed escaping them somewhere, but they don’t seem to load. I gave a very quick look at the code but couldn’t tell why this is happening.

1 Like

There’s definitely some interesting fonts inside. Though, neither Edge or Safari support local fonts, sad I cannot use those fonts :melting_face:

Chifont+ and NChifont+? I got to work them in the past. Do you have by chance an old GitHub commit to check?
There’s multiple reasons why it could not work, but the one I had to learn the hard way is that serving CSS through GitHub as raw files doesn’t work since GitHub sends a “normal textfile” type, so the browser doesn’t recognize it as CSS even though it is. Serving them through a GitHub page, however, does work.

Jitai also thrives from the community, so if you ever feel like something is missing you can contribute to Jitai directly on GitHub :wink: Fonts are very easy to contribute, and highly welcome by anybody.

3 Likes

That’s not the case, I’m serving the css from a webserver of mine which is properly configured.
I can also see in the inspector thar both css and font get downloaded but when the family contains the + the font never shows.
Again, I didn’t look extensively at the code, but I noticed that numbers also cause some issues in names, in fact i had to enclose in ’ ’ the names starting with numbers for them to work, and just the ones starting, like 123name, but not others containing numbers not at the beginning, like name123 or na123me.
I think somewere the names are jncorrectly parsed when a number is present at the beginning or a symbol like + is contained in the name.

All those screenshots were taken on firefox android, wich definitely doesn’t support local fonts, neither android supports installing them.
I serve them all as webfonts, and though this might not be for everyone, if you are using wanikani always on the same computer you could easily run a local webserver, even on the same machine, to achieve the same result.

If anyone is interested I could provide the css files or at least a template since they are all the same. Actually, I didn’t look a them, but I think the few fonts served with css outside of google and adobe ones load css from @marciska github repo for jitai, so am example should already be present.

1 Like

Hi y’all - I just found out about Jitai and had followed the visual guide posted by @Mempo to install the userscript. However, despite showing the Tampermonkey extension enabled + Jitai installed and enabled, I can’t get the script to work. I tried refreshing my browser and the extension still shows ‘No script is running’ when I go through my reviews.

Some information:
(1) I’m on Mac OS
(2) I’m using Chrome
(3) Using Tampermonkey extension
(4) I had installed a few of the recommended fonts listed in GitHub, and ensured that the file names match what’s in the userscript editor.

Can someone please help me out here? I got overwhelmed going halfway through this thread >.<;;;

Have you at least read some of the latest posts?

For various reasons, the version linked in the OP and the version that is compatible with the current website are not the same.

1 Like

Try this version :slight_smile:

2 Likes

Thank you for the reply, @Inserio and @maddness ! I am totally not tech savvy and the latest posts about CSS had me so overwhelmed >.<;;;

I did try the version posted by marciska as well.

With that version, I see that Tampermonkey picks up Jitai and it’s ‘running’, according to the extension status - but different fonts still aren’t showing up during my reviews, such as FUTENE.

I really appreciate the patience. Eager to get this working - just need some massive help :(.

1 Like

Reading your post compared to mine makes me worried that I came across passive aggressive lol (not my intent). Either way, nice follow-up :pray:


Have you configured the fonts you want to use?

image

3 Likes

Thank you, @Inserio !

Okay, now REALLY dumb question:
In your screenshot, where exactly can I find that widget? (I tried going into Tampermonkey itself, script settings tab, and the Tampermonkey’s extension widget on Chrome to try and find it.)

Thank you again, for your patience T^T.

That’s on the reviews page itself. Top left, with WaniKani Open Framework installed.

1 Like

Hey, no worries. I just thought to add a link to the post for the latest version in case they haven’t seen it. :slightly_smiling_face: From what they said it seemed like they installed an old version (same thought as yours).

You can also try to look for it in the Extra Study in the WK dashboard to see the gear icon for the Jitai font settings, in case you don’t have reviews at the moment.

Thank you to both of you, again!

It’s not in Extra Study (I only have the home widget there), and I don’t have any reviews at the moment - so I’ll wait a few hours to try and look for it when my reviews refresh!

I’ll keep you both posted. If I can get this working, I’m going to write a new guide for future newbies such as myself (one that has the new version, WaniKani Open Framework install instructions, etc. in one place).

Update! I got it to work! Thank you, @Inserio and @maddness !

I’ll work on compiling a guide that gets the updated link + instructions on WaniKani Open Framework installed for the community (if one with all the updates hasn’t already been posted in one place).

3 Likes

Hmm I do have that in mine. Maybe you can refresh the page? But if it works for your reviews, then that’s all good :slight_smile:

That would be appreciated. Although there are probably a lot of scripts one goes through before finding Jitai (I came from the dashboard scripts before encountering this one) and almost all of them has a link to guide the users to install WKOF, WKOF Additional filters and other prerequisites. But it can’t hurt to have another guide :slight_smile: As you may have noticed, the trend seems to be that the first post is sometimes outdated.

Very late to the party, idk how I didn’t see these posts from months ago, but I just wanted to say thank you very much marciska! It has to be a little stressful coming back to these projects all the time, but I’m very thankful you still update them! I love using Jitai (and Smoldering Durtle’s version of Jitai), it works like a dream now and I feel like it truly does improve my reading!

1 Like

Hello,

Thanks for the script.

I highly recommend adding the EPSON 教科書体M font (or equivalent), as I often come across it in Japanese textbooks.

My Japanese teacher uses it in her lessons, and I was quite confused at first when I couldn’t recognize kanji I was supposed to know.
Indeed, the appearance of kanji in this font can quite differ from the default Wanikani font (it’s supposed to better represent what a hand-written kanji looks like as opposed to the computer font Wanikani uses)

1 Like

This script doesn’t work for me at all, it shows up on my Tampermonkey dashboard, but it doesn’t show up under enabled scripts on the little Tampermonkey browser extension icon when I’m on the WaniKani website.

Do you know how this could be fixed?

Here you can see that it shows up under my Tampermonkey dashboard:


But here you can see that it doesn’t appear under the enabled scripts when on the WaniKani website:

Edit:
I fixed my problem