ricardoquesada / vchar64

editor for the Commodore 64
http://retro.moe/tag/vchar64/
Other
91 stars 12 forks source link

1x2 and 2x2 not working properly #45

Open c0zmo opened 7 years ago

c0zmo commented 7 years ago

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 commented 7 years ago

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

c0zmo commented 7 years ago

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 commented 7 years ago

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