Comments (15)
Yeah, I noticed this earlier too. Unfortunately I really don't know how to fix this... do you have any ideas? (It doesn't look like Slick's API has anything to handle this, and I don't know much about dealing with fonts otherwise.)
from opsu.
The only thing I can think of is to use a font that's big enough, or merge some fonts together into one file... falling back to system's sans-serif seems impossible after actully looking into the code.
from opsu.
Wow, apparently I'm still here!
Hey, you should take a look at this, @itdelatrisu: https://www.google.com/get/noto/cjk.html
It's OTF, though.. does Slick not have an OTF handling class?
from opsu.
It doesn't; those were actually the first fonts I tried using, but Slick's font support is terrible. Kochi Gothic is the best thing I could find.
from opsu.
@itdelatrisu I'm testing out Unifont, but it's extremely ugly... :(
from opsu.
For the most part, it kind of works...
from opsu.
Well... I could add a font switching option and keep Kochi Gothic as the default, but it'd really bloat the file size... I don't know. x-x
from opsu.
@itdelatrisu Yeah :(
Unifont is around 11mb with all (most) glyphs, and adding that with Kochi Gothic would make opsu! really big. 20mb for just fonts? That's a LOT.
from opsu.
(If you're still around, let me know what you think of the new font!)
from opsu.
I wish the English font was Roboto :(
But Droid Sans works too!
from opsu.
I tried playing around for a bit, but I think it'd be too much of a hassle to use multiple fonts for English/CJK text, at least using Slick's font engine (which won't let you provide fallback fonts, as far as I can tell). It's difficult to get consistent layouts on all resolutions if I switch between two fonts, too, and I can't think of an efficient way to check if every rendered string contains non-ascii glyphs (aside from just wrapping the String
class).
I don't know if merging the TTF files is possible without losing any quality, but that seems like the only reasonable approach.
from opsu.
DroidSansFallback looks fine to me...
I was thinking converting Noto CJK to TTF, but realized that's still only CJK and wouldn't be much better than DroidSansFallback.
from opsu.
If you want to give it a shot, let me know how it turns out -- I'm not completely satisfied with Droid Sans, but I agree that it's definitely fine for now.
from opsu.
I tried to convert it with FontForge by importing it and exporting as TrueType Font. It gave me a bunch of warning, and after ignoring all warnings it created the ttf, put it into the .jar and it is just like no font have been loaded.
from opsu.
@flyingfeather1501 If you load the ttf in Windows Font Viewer (or your operating system's respective font viewer), do the glyphs look correct?
from opsu.
Related Issues (20)
- Failed to load audio file 'combobreak.wav'.
- ** Uncaught Exception! **
- Invalid value (1281)
- Failed to load audio file 'soft-hitwhistle.wav'.
- 1 gamemode
- The databases could not be initialized.
- ShitMaps are not played
- Cant start opsu via Nautlius
- Failed to load audio file 'menuhit.wav'. HOT 1
- Failed to initialise the LWJGL display HOT 1
- ** Uncaught Exception! **
- New Version
- Could not start a clip 'soft-hitclap.wav'.
- how to build opsu? HOT 4
- ** Uncaught Exception! **
- ** Uncaught Exception! **
- No line matching interface Clip supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian is supported.
- Game.update() failure.
- The databases could not be initialized.
- Could not start a clip 'soft-hitnormal.wav'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opsu.