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

Font maps #26

Open
ArmorDarks opened this issue Oct 8, 2014 · 4 comments
Open

Font maps #26

ArmorDarks opened this issue Oct 8, 2014 · 4 comments
Milestone

Comments

@ArmorDarks
Copy link
Owner

Store fonts in map and loop through it to output shorthand helper-classes and font-faces for each

$fonts: (
    'Open Sans': (
        file:  ... (optional);
        version: ... (optional);
        ...
    ),
    ...
) !default;
@ArmorDarks ArmorDarks added this to the 2.0.0 milestone Oct 8, 2014
@ArmorDarks
Copy link
Owner Author

Approximate structure:

// ---------------------------------------
// Font famylies
// ---------------------------------------

$fonts: (
    'Open Sans': ( // first font always base

        version: 234234432, // global version

        bold: ( // weight
            normal  ( // style
                file:      openSans-bold, // or force proper naming?
                svg-id:    svgId,
                font-face: true,
            ),
            italic  (
                file:      openSans-bold-italic,
                version:   234234432,
                svg-id:    svgId,
                font-face: true,
            ),
        ),

    ),

    'Fontello': (

        version: 234234432,

        class:   icon, // override class name

        icons: ( // icons? apply weight and style : normal by default
            file:      fontello,
            svg-id:    fontellosvgId,
        ),

    ),

    'Old variant': (

        500:  (
            file:      openSans-semibold,
            version:   234234432,
            styles:    (normal, italic),
            svg-id:    svgId,
            font-face: true,
        ),

        normal:  (
            file:      openSans-normal,
            version:   234234432,
            styles:    normal,
            svg-id:    svgId,
            font-face: true,
        ),

    ),

) !default;

@ArmorDarks
Copy link
Owner Author

Probably it's better to use separate $ekzo-icon-fonts map for icon fonts

@ArmorDarks
Copy link
Owner Author

Fonts also should have fallback map for fallback to predefined fonts.

Remember, that some local fonts should be quoted, while other — shouldn't

@ArmorDarks ArmorDarks modified the milestones: 2.0.0-alpha, 2.0.0-beta Oct 10, 2014
ArmorDarks referenced this issue Mar 1, 2016
…variables to maps; added functions `ekzo-font-family()` and `ekzo-ui-font-family` to quickly get values from font-families maps; added automatic generation of helpers based on provided font-families and options to enable/disable them
@ArmorDarks ArmorDarks modified the milestone: backlog Jan 23, 2017
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

1 participant