Git Product home page Git Product logo

code-web-fonts's Introduction

code-web-fonts

Web fonts for programming, including Powerline enabled fonts working in Secure Shell and working also on Chromebook (or pretty much anything running Chrome).

Preview the fonts (courtesy of raw.githack.com)

Available fonts

There are several font-family you can choose from.

Powerline enabled:

Other fixed-width fonts:

See Slant if you don't know which to choose.

Usage example

Usage example for Secure Shell

  • Launch Secure Shell and click on Options (or go to chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/nassh_preferences_editor.html):
    • Set font-family: "Source Code Pro", monospace
    • Set Custom CSS (URI) to one of the following:
      • jsdelivr CDN at hash (longest cache expiry):
        https://cdn.jsdelivr.net/gh/cfal/code-web-fonts@7b73784ae5acd0d783f9f3629c845a9e51ec1dbf/CodeFonts.css
        
      • jsdelivr CDN (latest):
        https://cdn.jsdelivr.net/gh/cfal/code-web-fonts/CodeFonts.css
        
      • github (latest):
        https://raw.githubusercontent.com/cfal/code-web-fonts/master/CodeFonts.css
        

Usage example for Crosh Window

  • Start crosh window then press Ctrl+Shift+J and paste in the following:
term_.prefs_.set('font-family', '"Source Code Pro", monospace');
term_.prefs_.set('user-css', 'https://cdn.jsdelivr.net/gh/cfal/code-web-fonts@7b73784ae5acd0d783f9f3629c845a9e51ec1dbf/CodeFonts.css');

If you have Crouton installed on a developer mode Chromebook, or if you're on pretty much any other OS, you can install those fonts locally or copy them locally and it'll work with little to no effort.

Suggesting a new font

To add a new font, you can submit a GitHub pull request through a forked repository. Your pull request should:

  • Include a new font file in WOFF2 format.
  • Add your font to CodeFonts.css, preview.html and README.md (might use Transfonter to help with the CSS).

Converting to WOFF2

There are various methods, including:

code-web-fonts's People

Contributors

adrian-martinez-dev avatar alexsavage avatar cfal avatar icecream95 avatar jamesbvaughan avatar nakulj avatar omgmog avatar remexre avatar wernight avatar yevshev 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.