GithubHelp home page GithubHelp logo

mybigman / tamzen-font Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sunaku/tamzen-font

0.0 0.0 0.0 1.38 MB

๐Ÿ’Œ Bitmapped programming font, based on Tamsyn

License: Other

Ruby 100.00%

tamzen-font's Introduction

Tamzen font

This is my personal fork of the wonderful Tamsyn font by Scott Fial. It is programatically forked from Tamsyn version 1.11 by the Rakefile script (see the "Building" section below) which backports glyphs from older versions while deleting deliberately empty glyphs (which are marked as unimplemented) to allow secondary/fallback fonts to provide real glyphs at those codepoints.

The "TamzenForPowerline" fonts provide additional Powerline symbols, which are programatically injected with ZyX_I's bitmap-font-patcher. I later hand-tweaked those symbols to perfection in the gbdfed(1) editor:

  • For all icons, I expanded them to occupy the maximum available space.
  • For the fork icon (๎‚  U+E0A0), I made the branch larger than the trunk.
  • For the newline icon (๎‚ก U+E0A1), I made the "N" at the bottom larger.
  • For the padlock icon (๎‚ข U+E0A2), I replaced the keyhole with // lines.

Overview

Screenshots

man manual page tmux, vim, etc.

$ cat screenshot.txt
ABCDEFGHIJKLMNOPQRSTUVWXYZ 12345
abcdefghijklmnopqrstuvwxyz 67890
{}[]()<>$*-+=/#_%^@\&|~?'"`!,.;:
Illegal1i = oO0    ๎‚  ๎‚ก ๎‚ข ๎‚ฐ ๎‚ฑ ๎‚ฒ ๎‚ณ
The quick brown fox, (..) Hello,
jumps over lazy dog. /__\ World!

TamzenForPowerline-20

TamzenForPowerline10x20r.bdf TamzenForPowerline10x20b.bdf

TamzenForPowerline-16

TamzenForPowerline8x16r.bdf TamzenForPowerline8x16b.bdf

TamzenForPowerline-15

TamzenForPowerline8x15r.bdf TamzenForPowerline8x15b.bdf

TamzenForPowerline-14

TamzenForPowerline7x14r.bdf TamzenForPowerline7x14b.bdf

TamzenForPowerline-13

TamzenForPowerline7x13r.bdf TamzenForPowerline7x13b.bdf

TamzenForPowerline-12

TamzenForPowerline6x12r.bdf TamzenForPowerline6x12b.bdf

TamzenForPowerline-9

TamzenForPowerline5x9r.bdf TamzenForPowerline5x9b.bdf

Tamzen-20

Tamzen10x20r.bdf Tamzen10x20b.bdf

Tamzen-16

Tamzen8x16r.bdf Tamzen8x16b.bdf

Tamzen-15

Tamzen8x15r.bdf Tamzen8x15b.bdf

Tamzen-14

Tamzen7x14r.bdf Tamzen7x14b.bdf

Tamzen-13

Tamzen7x13r.bdf Tamzen7x13b.bdf

Tamzen-12

Tamzen6x12r.bdf Tamzen6x12b.bdf

Tamzen-9

Tamzen5x9r.bdf Tamzen5x9b.bdf

Installation

Using a package manager:

Packaging status

Manually, in Linux:

  • Download a release or clone this Git repository into ~/.fonts/tamzen-font and then run:

    xset +fp ~/.fonts/tamzen-font/bdf
    xset fp rehash
    
  • You should now be able to see the "Tamzen" font family in xfontsel.

Manually, in Windows:

  • Copy the files from the ttf/ folder into your Windows Fonts folder.

Manually, in macOS:

  • Drag & drop the files from the ttf/ folder into your Font Book app.

Linux VT integration

  1. Switch to a Linux VT (virtual terminal) by pressing Control-Alt-F1.

  2. Run showconsolefont to see how the character map currently looks.

  3. Run setfont ~/.fonts/tamzen-font/psf/TamzenForPowerline10x20.psf.

  4. See how the character map now displays glyphs from the Tamzen font.

  5. Try running setfont with other Tamzen fonts in the psf/ folder.

See https://wiki.archlinux.org/index.php/Fonts#Console_fonts for details.

XTerm integration

The following Xresources let you dynamically switch between the various Tamzen fonts by holding down Control and right-clicking in the XTerm terminal.

XTerm*font  : -*-tamzen-medium-*-*-*-16-*-*-*-*-*-*-*
XTerm*font1 : -*-tamzen-medium-*-*-*-9-*-*-*-*-*-*-*
XTerm*font2 : -*-tamzen-medium-*-*-*-12-*-*-*-*-*-*-*
XTerm*font3 : -*-tamzen-medium-*-*-*-13-*-*-*-*-*-*-*
XTerm*font4 : -*-tamzen-medium-*-*-*-15-*-*-*-*-*-*-*
XTerm*font5 : -*-tamzen-medium-*-*-*-16-*-*-*-*-*-*-*
XTerm*font6 : -*-tamzen-medium-*-*-*-20-*-*-*-*-*-*-*

! Tamzen fonts for use with Powerline
XTerm*font  : -*-tamzenforpowerline-medium-*-*-*-16-*-*-*-*-*-*-*
XTerm*font1 : -*-tamzenforpowerline-medium-*-*-*-9-*-*-*-*-*-*-*
XTerm*font2 : -*-tamzenforpowerline-medium-*-*-*-12-*-*-*-*-*-*-*
XTerm*font3 : -*-tamzenforpowerline-medium-*-*-*-13-*-*-*-*-*-*-*
XTerm*font4 : -*-tamzenforpowerline-medium-*-*-*-15-*-*-*-*-*-*-*
XTerm*font5 : -*-tamzenforpowerline-medium-*-*-*-16-*-*-*-*-*-*-*
XTerm*font6 : -*-tamzenforpowerline-medium-*-*-*-20-*-*-*-*-*-*-*

Feed the above snippet into the xrdb(1) program and then start a new XTerm to see its effect. Afterwards, you can add this snippet to your ~/.Xdefaults or ~/.Xresources files to have these settings be automatically applied by XTerm.

URxvt integration

The following aliases let you dynamically switch between the various Tamzen fonts when run inside a shell that is attached to the URxvt terminal.

alias font="printf '\e]710;%s\007'"

alias Tamzen-9=Tamzen5x9r
alias Tamzen5x9r='font -misc-tamzen-medium-r-normal--9-65-100-100-c-50-iso8859-1'
alias Tamzen5x9b='font -misc-tamzen-bold-r-normal--9-65-100-100-c-50-iso8859-1'

alias Tamzen-12=Tamzen6x12r
alias Tamzen6x12r='font -misc-tamzen-medium-r-normal--12-87-100-100-c-60-iso8859-1'
alias Tamzen6x12b='font -misc-tamzen-bold-r-normal--12-87-100-100-c-60-iso8859-1'

alias Tamzen-13=Tamzen7x13r
alias Tamzen7x13r='font -misc-tamzen-medium-r-normal--13-101-100-100-c-70-iso8859-1'
alias Tamzen7x13b='font -misc-tamzen-bold-r-normal--13-101-100-100-c-70-iso8859-1'

alias Tamzen-14=Tamzen7x14r
alias Tamzen7x14r='font -misc-tamzen-medium-r-normal--14-101-100-100-c-70-iso8859-1'
alias Tamzen7x14b='font -misc-tamzen-bold-r-normal--14-101-100-100-c-70-iso8859-1'

alias Tamzen-15=Tamzen8x15r
alias Tamzen8x15r='font -misc-tamzen-medium-r-normal--15-108-100-100-c-80-iso8859-1'
alias Tamzen8x15b='font -misc-tamzen-bold-r-normal--15-108-100-100-c-80-iso8859-1'

alias Tamzen-16=Tamzen8x16r
alias Tamzen8x16r='font -misc-tamzen-medium-r-normal--16-108-100-100-c-80-iso8859-1'
alias Tamzen8x16b='font -misc-tamzen-bold-r-normal--16-108-100-100-c-80-iso8859-1'

alias Tamzen-20=Tamzen10x20r
alias Tamzen10x20r='font -misc-tamzen-medium-r-normal--20-145-100-100-c-100-iso8859-1'
alias Tamzen10x20b='font -misc-tamzen-bold-r-normal--20-145-100-100-c-100-iso8859-1'

# Tamzen fonts for use with Powerline
alias TamzenForPowerline-9=TamzenForPowerline5x9r
alias TamzenForPowerline5x9r='font -misc-tamzenforpowerline-medium-r-normal--9-65-100-100-c-50-iso10646-1'
alias TamzenForPowerline5x9b='font -misc-tamzenforpowerline-bold-r-normal--9-65-100-100-c-50-iso10646-1'

alias TamzenForPowerline-12=TamzenForPowerline6x12r
alias TamzenForPowerline6x12r='font -misc-tamzenforpowerline-medium-r-normal--12-87-100-100-c-60-iso10646-1'
alias TamzenForPowerline6x12b='font -misc-tamzenforpowerline-bold-r-normal--12-87-100-100-c-60-iso10646-1'

alias TamzenForPowerline-13=TamzenForPowerline7x13r
alias TamzenForPowerline7x13r='font -misc-tamzenforpowerline-medium-r-normal--13-101-100-100-c-70-iso10646-1'
alias TamzenForPowerline7x13b='font -misc-tamzenforpowerline-bold-r-normal--13-101-100-100-c-70-iso10646-1'

alias TamzenForPowerline-14=TamzenForPowerline7x14r
alias TamzenForPowerline7x14r='font -misc-tamzenforpowerline-medium-r-normal--14-101-100-100-c-70-iso10646-1'
alias TamzenForPowerline7x14b='font -misc-tamzenforpowerline-bold-r-normal--14-101-100-100-c-70-iso10646-1'

alias TamzenForPowerline-15=TamzenForPowerline8x15r
alias TamzenForPowerline8x15r='font -misc-tamzenforpowerline-medium-r-normal--15-108-100-100-c-80-iso10646-1'
alias TamzenForPowerline8x15b='font -misc-tamzenforpowerline-bold-r-normal--15-108-100-100-c-80-iso10646-1'

alias TamzenForPowerline-16=TamzenForPowerline8x16r
alias TamzenForPowerline8x16r='font -misc-tamzenforpowerline-medium-r-normal--16-108-100-100-c-80-iso10646-1'
alias TamzenForPowerline8x16b='font -misc-tamzenforpowerline-bold-r-normal--16-108-100-100-c-80-iso10646-1'

alias TamzenForPowerline-20=TamzenForPowerline10x20r
alias TamzenForPowerline10x20r='font -misc-tamzenforpowerline-medium-r-normal--20-145-100-100-c-100-iso10646-1'
alias TamzenForPowerline10x20b='font -misc-tamzenforpowerline-bold-r-normal--20-145-100-100-c-100-iso10646-1'

Building

You can build the Tamzen fonts for yourself by running these commands:

bundle exec rake                 # build things only when necessary
bundle exec rake clobber         # destroy everything that we built
bundle exec rake clobber default # rebuild everything from scratch

Requirements

sudo apt-get install ruby git imagemagick mercurial bdftopcf bdf2psf fonttosfnt default-jre
gem install bundler
bundle install

Requirements for bitmap-font-patcher:

sudo apt-get install python python-fontforge python-pip python-dev libfreetype6-dev
pip install --user bdflib
pip install --user Pillow

License

Like my work? ๐Ÿ‘ Please spare a life today as thanks! ๐Ÿ„๐Ÿ–๐Ÿ‘๐Ÿ”๐Ÿฃ๐ŸŸโœจ๐Ÿ™ŠโœŒ
Why? For ๐Ÿ’• ethics, the ๐ŸŒŽ environment, and ๐Ÿ’ช health; see link above. ๐Ÿ™‡

Copyright 2011 Suraj N. Kurapati https://github.com/sunaku

Copyright 2010 Scott Fial http://www.fial.com/~scott/

Distributed under the same terms as the Tamsyn font. See LICENSE file.

tamzen-font's People

Contributors

benroe avatar dependabot[bot] avatar sunaku 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.