Code Monkey home page Code Monkey logo

Comments (15)

itdelatrisu avatar itdelatrisu commented on June 15, 2024

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.

kisaragi-hiu avatar kisaragi-hiu commented on June 15, 2024

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.

iceblade112 avatar iceblade112 commented on June 15, 2024

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.

itdelatrisu avatar itdelatrisu commented on June 15, 2024

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.

iceblade112 avatar iceblade112 commented on June 15, 2024

@itdelatrisu I'm testing out Unifont, but it's extremely ugly... :(

from opsu.

iceblade112 avatar iceblade112 commented on June 15, 2024

For the most part, it kind of works...

but that ugliness...
ftm

from opsu.

itdelatrisu avatar itdelatrisu commented on June 15, 2024

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.

iceblade112 avatar iceblade112 commented on June 15, 2024

@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.

itdelatrisu avatar itdelatrisu commented on June 15, 2024

(If you're still around, let me know what you think of the new font!)

from opsu.

iceblade112 avatar iceblade112 commented on June 15, 2024

I wish the English font was Roboto :(
But Droid Sans works too!

from opsu.

itdelatrisu avatar itdelatrisu commented on June 15, 2024

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.

kisaragi-hiu avatar kisaragi-hiu commented on June 15, 2024

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.

itdelatrisu avatar itdelatrisu commented on June 15, 2024

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.

kisaragi-hiu avatar kisaragi-hiu commented on June 15, 2024

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.
untitled

from opsu.

iceblade112 avatar iceblade112 commented on June 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.