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

1x2 and 2x2 not working properly #45

Open
c0zmo opened this issue Aug 20, 2017 · 3 comments
Open

1x2 and 2x2 not working properly #45

c0zmo opened this issue Aug 20, 2017 · 3 comments

Comments

@c0zmo
Copy link

c0zmo commented Aug 20, 2017

I want to create a 1x2 font, where the lower part of the char is 64 chars away ("a"->"A"). This works for the first 64 chars, but the latter 64 chars are not editable. See attached screenshots.
vchar64-1
vchar64-2

@ricardoquesada
Copy link
Owner

ricardoquesada commented Aug 20, 2017

interesting... could you attach the charset that you are trying to edit? thanks.

@c0zmo
Copy link
Author

c0zmo commented Aug 21, 2017

Yes, of course. Don't be confused by the strange patterns beginning at char 240 - those are the width information for each character, it is intended to be proportional in our project. :)

1x2_Propo_v2.vchar64proj.zip

@ricardoquesada
Copy link
Owner

so, the issue is that you used a distance between chars = 64. which is fine, but it works like this:
tile 0 = char0 + char 64
tile 1 = char 1 + char 65
tile 2 = char 2 + char 66
...
tile 62 = char 62 + char 126
tile 63 = char 63 + char 127

... but vchar will continue with this:

tile 64 = char 64 + char 128
tile 65 = char 65 + char 129
tile 66 = char 66 + char 130

as you can see, char 64, char 64, char 66 are being used more than once.
the easiest way to fix this is by using a "distance between chars = 128". (I attached the fixed version)

In any case, vchar should let you edit these "overflow" chars. if it doesn't probably it is a bug. but my suggestion is that you convert them to a "distance = 128".

I'll see how I can fix this in the future.

1x2_Propo_v2_fixed.vchar64proj.zip

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

2 participants