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

woff_path should from css option not fonts #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

p-l-h
Copy link

@p-l-h p-l-h commented Jul 26, 2018

        # we get @font_path base from css option @ line 42
        fonts_path = Pathname.new(@options[:output][:fonts]).realdirpath
        css_path = Pathname.new(@options[:output][:css]).realdirpath
        preview_path = Pathname.new(@options[:output][:preview]).realdirpath
        @font_path = File.join fonts_path.relative_path_from(css_path).to_s, name

        # but we get woff_path base from fonts option @ line 189
        def woff_base64
            woff_path = File.join(@options[:output][:fonts], "#{@font_path}.woff")
           Base64.encode64(File.binread(File.join(woff_path))).gsub("\n", "")
        end

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

Successfully merging this pull request may close these issues.

None yet

1 participant