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

[New format request] ASCII-art font rendering #50

Open
dfnr2 opened this issue Mar 6, 2023 · 1 comment
Open

[New format request] ASCII-art font rendering #50

dfnr2 opened this issue Mar 6, 2023 · 1 comment
Assignees

Comments

@dfnr2
Copy link

dfnr2 commented Mar 6, 2023

The Hoard-of-fonts Project on Github is preserving fonts for classic computers. Their fonts are stored in an ASCII format which they call YAFF (yet another font format?) that is human- and machine-readable. Since srecord is the tool of choice for preserving and converting ROM images, supporting this format would be a great step for preserving and editing character generator files. It would be reasonable to assume that the rows are stored in consecutive addresses. A parameter could be provided that would indicate the number of columns and rows for writing, and these values could be inferred from the format on reading (and consistency check required for conversion). I am not aware of any character generator ROMs using more than 8 columns. But some of the fonts are for banners and use more than 8 columns. For these, there could be a switch to use consecutive bytes for more than 8 columns, or to split between multiple ROM images. Here is an abbreviated example of the format (DEC VT100 "A"):

# Comments are ignored on read, could be added on write 
# to include information about size, organization, etc.
# LATIN CAPITAL LETTER A

0x41:
    ........
    ...@....
    ..@.@...
    .@...@..
    @.....@.
    @@@@@@@.
    @.....@.
    @.....@.
    ........
    ........
@sierrafoxtrot sierrafoxtrot self-assigned this Mar 7, 2023
@sierrafoxtrot
Copy link
Owner

sierrafoxtrot commented Mar 7, 2023

@dfnr2, that is an intriguing concept. So many home computers from my childhood there. Actually have a couple upstairs mid-restoration...

It's a simple file format but as you described, coming up with a generic approach will be the interesting part. Looks like a fun weekend(s) project.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants