Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

rename custom font-families #65

Open
robsonsobral opened this issue Dec 4, 2015 · 2 comments
Open

rename custom font-families #65

robsonsobral opened this issue Dec 4, 2015 · 2 comments

Comments

@robsonsobral
Copy link

Hi!

I just had an idea that might interest you: to obfuscate the custom font-family.

@font-face {
    font-family: 'custom-Font';
    src: url('custom-font-webfont.eot');
    src: url('custom-font-webfont.eot?#iefix') format('embedded-opentype'),
         url('custom-font-webfont.svg#custom-font') format('svg'),
         url('custom-font-webfont.woff') format('woff'),
         url('custom-font-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.foo {
    font-family: 'custom-font';
}

It can be changed to:

@font-face {
    font-family: 'a';
    src: url('custom-font-webfont.eot');
    src: url('custom-font-webfont.eot?#iefix') format('embedded-opentype'),
         url('custom-font-webfont.svg#custom-font') format('svg'),
         url('custom-font-webfont.woff') format('woff'),
         url('custom-font-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.foo {
    font-family: 'a';
}

I'm sorry, but I don't have the expertise to implement it myself.

hail2u added a commit that referenced this issue Dec 5, 2015
By renaming web font saves extra bytes from CSS file.

This suggested on #65.
@hail2u
Copy link
Owner

hail2u commented Dec 5, 2015

I had same idea some time ago. It’s good, but implementation can be too complicated for saving around 10 bytes.

I keep this issue open, but don’t expect much of me.

@robsonsobral
Copy link
Author

Thanks for considering.

I'm not waiting for the feature. I just want to share the idea.

I'm sorry I can't implement it myself.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants