Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSDF Fonts bugged on Android? #194

Closed
ZigZaggh opened this issue Mar 14, 2021 · 11 comments
Closed

MSDF Fonts bugged on Android? #194

ZigZaggh opened this issue Mar 14, 2021 · 11 comments
Labels
bug 😅 Juju did a bad thing

Comments

@ZigZaggh
Copy link

Hi first thank you for an amazing tool :)

I ran in to an issue with MSDF fonts on Android, on windows they look great, on android they look like in the atlas file, and at some point stop drawing.

Have I overlooked something or is this a bug?

I have added a test pictures with windows(correct) and android(bugged).

Sincerely

test

@JujuAdams JujuAdams added the bug 😅 Juju did a bad thing label Mar 14, 2021
@JujuAdams
Copy link
Owner

JujuAdams commented Mar 14, 2021

Looks like a general shader-related issue. What version are you using? What device are you testing on? What version of GM are you using? Are you seeing any compile errors in your debug log? What do you mean by "at some point stop drawing"?

@ZigZaggh
Copy link
Author

Hi Juju, thank you for getting back to me so fast.

I tested with Scribble version 7.1.1
Phone is a Samsung Galaxy s20+
GMS:
IDE v2.3.1.542
Runtime v2.3.1.409
I do not see anything out of the ordinary in the compiler output.

What I mean by "at some point stop drawing", is that I try to draw exactly the same strings on all 4 lines, both on windows and on android, and it looks like on android that the strings are cut off after the 16th character, the strings should be drawn to the edge and out of the screen as on the windows example. The first two strings are cut off at the "c" from could, and the the last two after the space from MSDF, but before the "font", looks weird on this string because it is cutting off right at the space I guess.

@JujuAdams
Copy link
Owner

Hmm... that's a bit concerning. That sounds like a vertex format issue which might not be solvable my end in a timely fashion. I'll look into this this week.

@ZigZaggh
Copy link
Author

Thank you for looking in to this.

I do not know if this matters, but I also tested on an old Nexus 4 phone with Android 5.1.1 with the same result, I have not tested on an iPhone yet, I could do that too if you like that?

@JujuAdams
Copy link
Owner

Testing on an iPhone would be helpful, yep.

@ZigZaggh
Copy link
Author

No problem, I just tested it with an actual iPhone 5s and a virtual machine iPhone 12Pro, and both had exactly the same result as on android and shown in the picture.

@JujuAdams
Copy link
Owner

JujuAdams commented Mar 15, 2021

Interesting, because I'm using Scribble for a commercial project and we regularly test on multiple iPhones (including a 5S) and have seen no issues whatsoever. This makes me think there's something else going on. Could you package up your project (.zip the entire project directory, don't use .yyz just in case there's some sort of asset config issue that export/import might fix) and send it to me please?

@ZigZaggh
Copy link
Author

Interesting, I cleaned up the project and tried to make it as simple as possible but still the same, I have added it as a zip.
scribble text engine.zip

@JujuAdams
Copy link
Owner

Thanks, I'll take a quick look now

@JujuAdams
Copy link
Owner

JujuAdams commented Mar 15, 2021

OH! Duh, I had to build a workaround for MSDF fonts in the commercial project because shader derivatives (which is what MSDF relies upon) aren't supported cross-platform by GM's GLSL ES version.

Anyway, this is a known issue. I'm going to look into it this week along with some other bugs.

@JujuAdams
Copy link
Owner

(Existing bug: #176)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 😅 Juju did a bad thing
Projects
None yet
Development

No branches or pull requests

2 participants