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

Manifests should be prettified for easier readability #77

Open
jvgaultney opened this issue Oct 5, 2022 · 0 comments
Open

Manifests should be prettified for easier readability #77

jvgaultney opened this issue Oct 5, 2022 · 0 comments

Comments

@jvgaultney
Copy link
Contributor

fontmanifest.json files are intended to be read both by humans as well as scripts, so it should be prettified to match the discussed style, as in this example:

{"lisubosa": {
    "files": {
        "LisuBosa-Regular.ttf": {"axes": {"wght": 400, "ital": 0}},
        "web/LisuBosa-Regular.woff": {"axes": {"wght": 400, "ital": 0}},
        "web/LisuBosa-Regular.woff2": {"axes": {"wght": 400.0, "ital": 0}},
        "LisuBosa-Bold.ttf": {"axes": {"wght": 700, "ital": 0}},
        "web/LisuBosa-Bold.woff": {"axes": {"wght": 700.0, "ital": 0}},
        "web/LisuBosa-Bold.woff2": {"axes": {"wght": 700.0, "ital": 0}},
        "LisuBosa-ExtraBold.ttf": {"axes": {"wght": 800, "ital": 0}, "altfamily": "Lisu Bosa Extra Bold"},
        "web/LisuBosa-ExtraBold.woff": {"axes": {"wght": 800.0, "ital": 0}, "altfamily": "Lisu Bosa Extra Bold"},
        "web/LisuBosa-ExtraBold.woff2": {"axes": {"wght": 800.0, "ital": 0}, "altfamily": "Lisu Bosa Extra Bold"},
        "LisuBosa-Italic.ttf": {"axes": {"wght": 400.0, "ital": 1}},
        "web/LisuBosa-Italic.woff": {"axes": {"wght": 400.0, "ital": 1}},
        "web/LisuBosa-Italic.woff2": {"axes": {"wght": 400.0, "ital": 1}},
        "LisuBosa-BoldItalic.ttf": {"axes": {"wght": 700.0, "ital": 1}},
        "web/LisuBosa-BoldItalic.woff": {"axes": {"wght": 700.0, "ital": 1}},
        "web/LisuBosa-BoldItalic.woff2": {"axes": {"wght": 700.0, "ital": 1}},
        "LisuBosa-ExtraBoldItalic.ttf": {"axes": {"wght": 800.0, "ital": 1}, "altfamily": "Lisu Bosa Extra Bold"},
        "web/LisuBosa-ExtraBoldItalic.woff": {"axes": {"wght": 800.0, "ital": 1}, "altfamily": "Lisu Bosa Extra Bold"},
        "web/LisuBosa-ExtraBoldItalic.woff2": {"axes": {"wght": 800.0, "ital": 1}, "altfamily": "Lisu Bosa Extra Bold"}
        },
    "defaults": {
        "ttf": "LisuBosa-Regular.ttf",
        "woff": "LisuBosa-Regular.woff",
        "woff2": "LisuBosa-Regular.woff2",
        },
    "family": "Lisu Bosa", 
    "version": "6.101"
    }
}
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

1 participant