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

Suggestions for building a level editor #5

Open
edzillion opened this issue Nov 17, 2015 · 0 comments
Open

Suggestions for building a level editor #5

edzillion opened this issue Nov 17, 2015 · 0 comments

Comments

@edzillion
Copy link

Hi

Had a look at your engine, and it's very useful. Thanks!
I had a quick go at building a really simple level editor by just making a loop to dump a button for each glyph to the screen. The thing is, apparently it's impossible to determine whether a glyph is present in the font or not.

There is a technique of writing the font to the screen and then matching the pixels of the glyph to the (browser & platform dependent) 'missing glyph' character. I am not even sure I could get the implementation working, but even so it seems an inefficient solution.

The other option is to export the 'cmap table' using something like font-cmap which (I think) is a list of all the glyphs present with their unicode values.

Any suggestions here? Can't seem to find an editor built with this, any examples you know of?

thanks for your time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant