Git Product home page Git Product logo

dxf-tiip-view-rails's Introduction

Install

Gemfile

gem 'dxf_tiip_view', :git => 'https://github.com/shinobushiva/dxf-tiip-view-rails'
$ bundle install

routes.rb

#DXF Tiip View
mount DxfTiipView::Engine, at: '/dxf_tiip_view'

Font file

You need typeface.js style font file.

You can use the font file as a sample fonts/honoka_antique_kaku_regular.json

To generate font file, this website will help typeface.js generator https://gero3.github.io/facetype.js/

To use Japanese font, see here https://qiita.com/calmbooks/items/4fe8b891950f5a227290

Place font file in your publicly accessible path. ex) /public/font

Usage

View (in erb)

<%= dxf_tiip('a[href*=".dxf"]', '/font/honoka_antique_kaku_regular.json')  %>

View (in haml style)

= dxf_tiip 'a[href*=".dxf"]', '/font/honoka_antique_kaku_regular.json'

dxf-tiip-view-rails's People

Contributors

shinobushiva avatar takafujimoto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.