Giter VIP home page Giter VIP logo

system-font-i18n-css's Introduction

system-font-i18n-css

CircleCI Greenkeeper David npm npm

A modern system font stack for consistent multi-lingual typesetting across platforms, optimized by unicode ranges.

system-font-i18n provides twelve variations for the Sans-serif family of system font. This font stack provides more consistent character typesetting across multiple languages and all modern operating systems.

system-font-i18n is optimized to select the best system font on a per-character basis, based on the unicode range of that character.

Installation

General

The robust and preferred method is to reference the system-font-i18n.css stylesheet in the <head> of the html document. Then add the utility helper class to the body class.

<!DOCTYPE html>
<html lang=en>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="stylesheet" href="system-font-i18n.css">
</head>
<body class="system-font-i18n-sans">
  <p>this is now using the system font!</p>
</body>

Ember

Use yarn or npm to install the package.

yarn add system-font-i18n-css -D

Add the include path to your ember-cli-build.js file.

var app = new EmberApp(defaults, {
    // …
    sassOptions: {
      includePaths: [
        // …
        'node_modules/system-font-i18n-css',
        // …
      ],
    },
    // …
});

Import the CSS into your Ember project.

@import "system-font-i18n-css";  /* This should be AT or near the top */
/* … other imports */

Add the system-font-i18n-sans CSS classname to the element to be styled, e.g.:

<!--- HTML head -->
<body class="system-font-i18n-sans">
<!-- body -->

LICENSE

MIT

A product of (せい)(しん)(こう)() (seishinkouki) Co., Ltd

system-font-i18n-css's People

Contributors

0xadada avatar greenkeeper[bot] 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.