GithubHelp home page GithubHelp logo

ikskuh / turtlefont Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 43 KB

A small vector graphics font file format with an example font.

License: MIT License

C 38.87% Makefile 0.23% Zig 57.95% Shell 0.03% Nix 2.92%

turtlefont's Introduction

Turtlefont

Turtlefont is a small vector graphics font file format with an example font. It uses simple turtle graphics rendering which allows flexible scaling.

Features

TO BE DONE

Fonts

This project also provides some font specimen examples:

Binary Format

Mime type: application/x-turtle-font

TO BE DONE

Human Readable Font Definition Format

Mime type: text/x-turtle-font

The demo features an example font format which allows the definition of multiple glyphs.

The format is line based and does not allow any other lines except for lines in the following format:

C:CODE\n

C is the character for which a glyph should be defined.

CODE is a glyph definition in the format specified in Glyph Format.

\n is a newline character.

Glyph Format

Turtlefont has a simple glyph description language which contains commands with or without parameters. A command is a single character, a parameter as well.

Parameters can only be numeric with a pretty restricted format: It is only a single hexadecimal character in the range of 0 to F. If a negative number is needed, the character can be prefixed with a -.

Whitespace is ignored.

Commands

Command Parameters Name Description
a n Advance Sets the glyph width to n elements.
M x y Move (abs) Moves the cursor without drawing.
m x y Move (rel) Moves the cursor without drawing.
P x y Print (abs) Draws a line and moves the cursor.
p x y Print (rel) Draws a line and moves the cursor.
d Dot Draws a dot at the cursor position.

turtlefont's People

Contributors

ikskuh avatar der-teufel-programming avatar

Stargazers

Ali Cheraghi avatar  avatar Chris Hart avatar False.Genesis avatar

Watchers

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