Coder Social home page Coder Social logo

typeface-minecraft's Introduction

typeface-minecraft

The CSS and web font files for the Minecraft typeface and colors

Install

npm install --save @south-paw/typeface-minecraft

or

yarn add @south-paw/typeface-minecraft

Use

This project assumes that you're using webpack to process CSS and files.

The package includes the necessary font files (woff2, woff) and a CSS file with font-face declarations pointing at these files.

You will need to have webpack setup to load css and font files.

Many tools built with Webpack will work out of the box with this package such as Gatsby and Create React App.

To use, simply require the package in your project's entry file:

// Load Minecraft typeface
require("@south-paw/typeface-minecraft");

and then apply the font family via CSS:

body {
  font-family: "Minecraft";
}

The package also adds some global CSS classes for matching Minecraft colors:

.minecraft-black
.minecraft-dark-blue
.minecraft-dark-green
.minecraft-dark-aqua
.minecraft-dark-red
.minecraft-dark-purple
.minecraft-gold
.minecraft-gray
.minecraft-dark-gray
.minecraft-blue
.minecraft-green
.minecraft-aqua
.minecraft-red
.minecraft-light-purple
.minecraft-yellow
.minecraft-white

Any of these can be applied to an element e.g.

<div class="minecraft-blue">Minecraft</div>

Source

Colors are from the Minecraft wiki.

Package is inspired by the typefaces project.

typeface-minecraft's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nailujx86 kai-tw

typeface-minecraft's Issues

Woff2 font is not loadable

Hi, I'm trying to use the woff2 format font minecraft.woff2. However, the font file seems to be corrupted.

@font-face {
	font-family: 'Minecraft';
	src: url('minecraft.woff2') format('woff2');
}

Console output (Firefox 105.0a1):

downloadable font: cmap: Range glyph reference too high (110 > 109) (font-family: "Minecraft" style:normal weight:400 stretch:100 src index:0) source: http://127.0.0.1:8000/examples/minecraft.woff2
downloadable font: cmap: Failed to parse format 4 cmap subtable 0 (font-family: "Minecraft" style:normal weight:400 stretch:100 src index:0) source: http://127.0.0.1:8000/examples/minecraft.woff2
downloadable font: cmap: Failed to parse table (font-family: "Minecraft" style:normal weight:400 stretch:100 src index:0) source: http://127.0.0.1:8000/examples/minecraft.woff2
downloadable font: rejected by sanitizer (font-family: "Minecraft" style:normal weight:400 stretch:100 src index:0) source: http://127.0.0.1:8000/examples/minecraft.woff2 

Font update

Hello, could you please update the font to the newest available in game? I'm looking for the one with pl_PL characters, but can't find it anywhere.

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.