Skip to content

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.

1 participant