yomichan icon indicating copy to clipboard operation
yomichan copied to clipboard

Kiwi browser change font

Open Geniusssmit opened this issue 3 years ago • 5 comments

Hello, I want to change font in yomichan mobile kiwi browser. I changed custom css font to "Yu Mincho" but it's not working. My guess is I need to somehow "install" the font in OS for it to work just like on windows. How can I do that?

Geniusssmit avatar Feb 22 '22 07:02 Geniusssmit

That has nothing to do with yomichan, just google your issue whether that is android or iOS, or change the custom css font to an already installed font and see if it doesn't work, then we'll try help you

Ceynou avatar Feb 22 '22 10:02 Ceynou

Ok. lets say I downloaded .ttf font file and placed it somewhere on my phone. How can I make yomichan use that font file using custom css?

Geniusssmit avatar Feb 22 '22 11:02 Geniusssmit

body {
    font-family: 'YOUR-FONT-NAME-HERE', 'Segoe UI', Tahoma, sans-serif;
}

(The 'Segoe UI', Tahoma, sans-serif part would be the fallbacks, using Yomichan's current settings.)

That being said, I'm not sure how Chromium browsers detect fonts, or if it's even possible to install custom fonts on mobile devices at all. Using CSS @import or @font-face with external URLS (e.g. from https://fonts.google.com/) is not supported, so unfortunately that option wouldn't work.

toasted-nutbread avatar Feb 23 '22 00:02 toasted-nutbread

Using CSS @import or @font-face with external URLS (e.g. from https://fonts.google.com/) is not supported

Font file will be stored locally, still no hope?

Geniusssmit avatar Feb 23 '22 06:02 Geniusssmit

If the browser can detect it as a system font, @import and @font-face wouldn't even be necessary, but again I have no idea if the browser supports that.

toasted-nutbread avatar Feb 23 '22 23:02 toasted-nutbread