Giter VIP home page Giter VIP logo

bitsweetfont's Introduction

bitsweetfont

Font preview

Overview

A bitmap font for Go, made with bitfontier. It's designed to be used in pixel art games.

Currently, it only supports two "languages" and some extra symbols:

  • English
  • Russian
  • Extra misc symbols

It has two base sizes: 1 and 1.3. If you take Scale() function into account, we get many sizes to choose from:

  • 1
  • 1.3
  • 2
  • 2.6
  • 3
  • 3.9
  • 4

If you want to contribute new images for this pack, please keep in mind that I want to keep the license as open as possible to make this font easy plug-and-play without any multi-level attribution paperwork.

This is a simple font and by no means universal (look at the tiny number of languages it supports!) At the same time, it should be a good example on how to make bitmap fonts for your games using bitfontier. Good luck!

See fontinfo.md to see a full list of runes supported.

Installation

$ go get github.com/quasilyte/bitsweetfont

Usage

// import "github.com/quasilyte/bitsweetfont"

// ff is a font.Face of a base size 1.
ff := bitsweetfont.New1()

// It's possible to create programmatically scaled versions
// of the base fonts.
// Only whole scaling factors are available (2, 3, 4, ...)
ff2 := bitsweetfont.Scale(ff, 2)
ff3 := bitsweetfont.Scale(ff, 3)

Building Font

This repository already contains a built font for you to use.

But if you want to re-generate it with some other bitfontier options, it's also possible.

Take a look at Makefile's font target.

bitsweetfont's People

Contributors

quasilyte avatar

Stargazers

Denis Limarev avatar Sandalots avatar  avatar Florian Rohrweck avatar

Watchers

 avatar  avatar

bitsweetfont's Issues

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.