node-csswring
node-csswring copied to clipboard
rename custom font-families
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.
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.
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!