Giter VIP home page Giter VIP logo

gothic's Introduction

Gothic

I toyed around with some calligraphy a little while ago and the mathematical perfection of it appealed to me, so I decided to try implementing my own gothic typeface with a couple layers of abstraction on top of svg.

It turns out the mathematical beauty (every stroke has the same width as the space between letters and the same width as the space inside of letters) needs to be fuged EVERYWHERE. Otherwise ii (without the dots) and u and n would all be identical. So I started experimenting with different ways of fudging extra space and worked out most of the alphabet. Some of the abstractions are documented but there's a Pen class that will spit out svg polygons for letters or words. Only lowercase letters are implemented and there is no z.

Check out gothic.svg.erb for an example. You'll have to change the path to the three pen class files. erb gothic.svg.erb > gothic.svg gives you an svg.

I've experimented with two different styles of serif on the ends of letters, one where the termination of a stroke is followed by a short stroke to the side, and another where the termination is with a short stroke to form a diamon at the end. The example included does the diamond-style, but you can use the commented out alternate libraries to use the stroke-style.

gothic's People

Contributors

mawise avatar

Watchers

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