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

YAFF format support for multiple codepages #28

Open
ace-dent opened this issue Oct 14, 2023 · 1 comment
Open

YAFF format support for multiple codepages #28

ace-dent opened this issue Oct 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ace-dent
Copy link

I would like to store a canonical version of a font in the YAFF format, that supports multiple codepages.
i.e. rather than making multiple copies for each different codepages (CP886, CP1251, etc...), I want a single font file that contains the remapping info (since the glyph bitmaps won't change). Is this possible? Currently it only seems possible to embed 2 encodings per YAFF (Unicode and encoding:).

I'm thinking an extension to the existing character label, to allow per character encoding to specified...?
e.g.

0x41:
latin_a:
+cp437: 0x12
+1251: 0x44
    ....
    .@..
    @.@.
    @@@.
    @.@.
    @.@.
@robhagemans
Copy link
Owner

Yes, this is a use case I've been thinking about. I'll likely add something to the spec and implementation at some point to support this. It may be a while though as currently I have no time to develop this.

It'll likely take the form of an extended label syntax where it will be possible to define codepage labels in a way analogous to how (Unicode) character labels are currently defined, e.g. in your example this could become:

0x41:
latin_a:
u+0041:
cp437+12:
cp1251+44:
    ....
    .@..
    @.@.
    @@@.
    @.@.
    @.@.

This would not work in the current version however, as the + symbol would make this (intentionally) an invalid label.

@robhagemans robhagemans added the enhancement New feature or request label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants