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

Add Raw Binary Exporter and Importer (.BIN) #1

Closed
TheRealHamtaro126 opened this issue Dec 4, 2019 · 7 comments
Closed

Add Raw Binary Exporter and Importer (.BIN) #1

TheRealHamtaro126 opened this issue Dec 4, 2019 · 7 comments

Comments

@TheRealHamtaro126
Copy link

TheRealHamtaro126 commented Dec 4, 2019

Hi, I would like to suggest a 1 bit Raw Binary (.BIN) Exporter and Importer:

-Specify height size and width type of font:
-0-255 Nx8 font format, (single width), or...
-0-255 Nx16 font format (double width), and...
-Also, a way to convert between the two formats would be a helpful bonus...

@drdnar
Copy link
Owner

drdnar commented Dec 7, 2019

I don't understand exactly what such a format would look like. Like the FixedWidthCEFontExporter format, but in binary instead of assembly source and without the header?

@TheRealHamtaro126
Copy link
Author

TheRealHamtaro126 commented Dec 7, 2019

There is a choice for the height for the font with either 8 or 16 pixels width window, in Binary (.BIN) form

They are already assembled without header, in other words...

the 16 pixels width window with is for DOS 40-Column Mode simulation, in which fonts use 2 pixels instead of 1 pixel.

@drdnar
Copy link
Owner

drdnar commented Dec 8, 2019

So, if you were to generate the output .bin file using assembly, the assembly source file would look like:

; 8-pixel-wide font
    ; Char 0
    .db char0_line0
    .db char0_line1
    . . .
    .db char1_line0
    . . .
    .db char255_lineN

; 16-pixel-wide font, with big-endian byte order
    ; Char 0
    .dw char0_line0
    .dw char0_line1
    . . .
    .dw char1_line0
    . . .
    .dw char255_lineN

(This is so I know exactly how to format the data.)

@TheRealHamtaro126
Copy link
Author

TheRealHamtaro126 commented Dec 8, 2019

Yep, That is the format I'm talking about here. but we need to choose the height before export or import.

@drdnar
Copy link
Owner

drdnar commented Dec 15, 2019

Wouldn't height be implied by the font settings?

@TheRealHamtaro126
Copy link
Author

TheRealHamtaro126 commented Dec 17, 2019

Yes, That would be correct. but the format is in it's assembled binary form only, and is not an executable font like .FNT or .TTF, or source like .ASM or .C, and cannot be determined unless manually input by a human.

drdnar added a commit that referenced this issue Feb 1, 2020
@drdnar
Copy link
Owner

drdnar commented Feb 1, 2020

Weeell this took a lot longer than it should have given the simplicity of the request.

@drdnar drdnar closed this as completed Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants