-
Notifications
You must be signed in to change notification settings - Fork 205
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
Change glyphs #4
Comments
Hello, Boom, the PNG files in this project ending in See the So yeah, your first step is to put your own glyphs in an SVG file like these. By the way, the glyphs cycle in the order they show up in your SVG file, from top to bottom and left to right. So if you want your glyphs to cycle through a written message, you can use the grid kind of like this:
The second step is to get
So that should make you your glyphs' MSDF PNG file. The last step is to put your PNG in the repo next to the others, and edit Below that, in the
—and experiment with all the other parameters you see there once you're happy with the new glyphs. So! What's an MSDF? Well an SDF is a texture representing the distance of all its pixels to some shape. In our case, the shapes are glyphs. And an MSDF is an SDF that cleverly uses the red, green and blue channels to encode the corners of the shapes, so they look super crisp. SDFs (and MSDFs) are really useful for making 2D graphics look good in 3D graphics systems. MSDFs are explained in depth in msdfgen's programmer's master's thesis. Anyway, I hope this helps! Making this process easier would make a good future part of this project. Let me know if you have any other questions, or need clarification. -Rezmason |
Hey Rezmason, wow, that was easy! Thanks a bunch for the detailed explanation! I'd propose adding this description to the readme? Best |
Hey!
Love the appearance and the love for detail, great work! Is it possible to change the glyphs? And if so how would one do it?
Best
Markus
The text was updated successfully, but these errors were encountered: