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

consider adding a default font path variable #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

consider adding a default font path variable #40

wants to merge 2 commits into from

Conversation

mateusvahl
Copy link

Hi,
I usually save my fonts into a single folder("./src/fonts"), I think many people do also.
We could add a variable for font path, when is defined, the path is prefixed to the font-scr of ks-font-face mixin.

example:

ks-font-src = './myfolder/fonts/'
font-face( "Roboto", "Roboto-Regular-webfont", normal )
@font-face {
  font-family: "Roboto";
  font-weight: normal;
  src: url("./myfolder/fonts/Roboto-Regular-webfont.eot");
  src: url("./myfolder/fonts/Roboto-Regular-webfont.eot?#iefix") format("embedded-opentype"), url("./myfolder/fonts/Roboto-Regular-webfont.woff2") format("woff2"), url("./myfolder/fonts/Roboto-Regular-webfont.woff") format("woff"), url("./myfolder/fonts/Roboto-Regular-webfont.ttf") format("truetype"), url("./myfolder/fonts/Roboto-Regular-webfont.svg#Roboto") format("svg");
}

@leny
Copy link
Owner

leny commented Jan 23, 2015

Hi, thanks for the contribution.

I'm quite busy right now, but I will merged it & publish soon.

Thanks again.

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

Successfully merging this pull request may close these issues.

2 participants