Code Monkey home page Code Monkey logo

ttffs's Introduction

# status

needs testing.


# intro

ttffs is a 9P2000 server, serving ttf files in any size as inferno/plan
9 (sub)fonts.  ttffs serves the file "index", returning a listing
of available fonts.  walks to files of the form
"<name>.<style>.<size>.font" succeed if a ttf file that matches
that description (sanitized name, style, size) exists and size is
numeric > 1.  the file is a normal inferno font and points to
subfonts named "<name>.<style><size>.<index>", with index a numeric
index for a glyph range.  these subfonts are also synthesized by
ttffs on demand.

see the manual page for more information and limitations.


# install

make sure $ROOT is set.  now "mk install" to compile and install the
files.

when building from within inferno, insert SYSHOST=Inferno and ROOT=
in the mk invocations to override the values in the mkconfig.


# latest version

the latest version can be found at:

    http://www.ueber.net/code/r/ttffs


# licence & author

all files are in the public domain.  this code has been written by
mechiel lukkien, reachable at [email protected].


# todo

- handle fonts that don't have a glyph 0.  should never crash on glyphs with 0 width/height.
- think of generating glyphs for ranges 0x1-0x1f with ascii names drawn
- generate smaller ranges for big fonts, otherwise we easily run out of memory.

ttffs's People

Contributors

mjl- avatar

Watchers

James Cloos 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.