Giter Site home page Giter Site logo

fontstuff's Introduction

Newcons Unicode Font Stuff

This repository contains a bits and pieces related to fixed-size bitmap fonts. The goal is to produce fonts for the FreeBSD Newcons console update project.

Some tools tools here are obtained from or similar to ones from Roman Czyborra's GNU Unifont project. Roman came up with a simple ASCII hex format for bitmap font data which is perfectly suited to this application.

To try out one of the fonts in an xterm, use:

./hex2bdf vt-default-normal.hex > vt-default-normal.bdf
mkfontdir
xset fp+ $(pwd)
xset fp rehash
xterm -fn -freebsd-misc-medium-r-normal--16-160-75-75-c-80-iso10646-1

To produce a .bmp image showing each glyph in a .hex font:

cc -o fontpic gpl/fontpic.c
./fontpic < vt-default-normal.hex > vt-default-normal.bmp

To load a font file into vt(4): (setfont is included in vidcontrol. See this commit)

vtfontcvt -o vt-default-normal.bin vt-default-normal.hex
vidcontrol -f vt-default-normal.bin

Links

Fonts in this Repository

b16.hex

Source: b16.bdf in http://openlab.ring.gr.jp/efont/dist/unicode-bdf/efont-unicode-bdf-0.4.2.tar.bz2
License: 3-clause BSD license

bold8x16.hex

Source: http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/sys/dev/wsfont/bold8x16.h
License: Public domain

gallant12x22.hex

Source: http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/sys/dev/wsfont/gallant12x22.h
License: 3-caluse BSD license

iso-8x16.hex

Source: FreeBSD share/syscons/fonts/iso-8x16.fnt

k16-1990.hex

Source: http://web.mit.edu/ghudson/dev/nokrb/third/intlfonts/Japanese/k16-1990.bdf
License: public domain
Notable content: CJK Symbols and Punctuation, Hiragana, Katakana, CJK Unified Ideographs

vt-default-{normal,bold}.hex

Source: FreeBSD sys/dev/vt/font/vt_font_default.c
License: 2-clause BSD

syscons-fonts/

Source: FreeBSD /usr/share/syscons/fonts

fontstuff's People

Contributors

emaste avatar lwhsu avatar henryshsieh 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.