• Stars
    star
    236
  • Rank 164,257 (Top 4 %)
  • Language
    Ruby
  • License
    Other
  • Created over 14 years ago
  • Updated over 14 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

textorize: for a more beautiful web

Official homepage: textorize.org

textorize produces beautifully subpixel antialiased text graphics on OS X, through a Rubycocoa Ruby script.

Output format is always PNG.

Learn more

Visit textorize.org and view the presentation on why this is awesome and how it compares to other “web typography” solutions and techniques.

Install

Grab the textorize gem, and you’re done:

$ gem install textorize

This will install the textorize Ruby Gem, and the textorize command line tool.

textorize used gemcutter, so if you haven’t installed it yet, do:

$ gem install gemcutter

If you’re not using the default ruby environment on OS X, you’ll need to install RubyCocoa.

Here’s how: rubycocoa.sourceforge.net/GettingStarted

Usage (command line tool)

Usage: textorize [options] string
    -f, --font=[FONT]                Font name
    -s, --size=[SIZE]                Font size in point
    -l, --lineheight=[HEIGHT]        Line height in point
    -t, --ligatures=[TYPE]           Ligatures usage: all, standard or off
        --list-fonts                 List available fonts
    -k, --kerning=[VALUE]            Kerning adjustment
    -p, --padding=[VALUE]            Padding in px
    -o, --output=[FILENAME]          Specify filename for saving
    -b, --obliqueness=[ANGLE]        Slant angle
    -c, --color=[COLOR]              Render text in specific color (CSS color value)
    -g, --background=[COLOR]         Render background in specific color (CSS color value)
    -a, --smoothing=[VALUE]          Font smoothing: 0=no subpixel AA, 1=light, 2=normal, 3=strong
    -h, --help                       Display this message and exit

The color parameters take any CSS color, in #abc, #aabbcc, rgb(1,2,3) or rgba(1,2,3,0.5) format.

Examples

textorize -f"Gotham" -s200 Hello

textorize -fLucida\ Grande -s150 --color=rgba\(12,56,99,0.5\) --background=#ff8080 foo\ bar

Contribute!

Contributions in the form of bug fixes, features and documentation are always welcome!

textorize is released under the MIT license. © 2009 Thomas Fuchs <[email protected]>.

NSColor extensions taken from LimeChat, github.com/psychs/limechat. LimeChat is copyrighted free software by Satoshi Nakagawa <[email protected]>.

More Repositories

1

zepto

Zepto.js is a minimalist JavaScript library for modern browsers, with a jQuery-compatible API
HTML
15,001
star
2

keymaster

A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
JavaScript
6,528
star
3

scriptaculous

script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
HTML
2,320
star
4

vapor.js

The World's Smallest & Fastest JavaScript Library
JavaScript
1,364
star
5

dom-monster

JavaScript
563
star
6

emile

emile.js is a no-frills stand-alone CSS animation JavaScript framework, named after Émile Cohl, early animator.
JavaScript
530
star
7

scripty2

scripty2: for a more delicious web
JavaScript
514
star
8

pragmatic.js

Pragmatic rules for writing JavaScript
381
star
9

semicolon.js

A more secure. stable and reliable version of vapor.js
JavaScript
227
star
10

zaru

Filename sanitization for Ruby
Ruby
221
star
11

creditcard_js

A creditcard validation library for JavaScript using Prototype
JavaScript
184
star
12

downtime

Standardized JSON API to indicate downtime for apps and services
JavaScript
90
star
13

prototype_helpers

Various bits and helpers for Prototype and scriptaculous, that might prove useful or not. :)
JavaScript
75
star
14

bitarray.js

Pure JavaScript bit array/bitfield implementation
JavaScript
53
star
15

spark_pr

Pure Ruby sparklines.
Ruby
41
star
16

purrson-icon

39
star
17

creditcard_js_underscore

A port of creditcard_js to underscore.js
JavaScript
23
star
18

secure.js

JavaScript
20
star
19

jive

HTML
17
star
20

js-animation-course

JavaScript
15
star
21

gifs

Shell
14
star
22

blink

12
star
23

zeptojs.com

JavaScript
12
star
24

box2d-js

Sprocketized version of box2jd-js
JavaScript
11
star
25

dotvim

Vim Script
11
star
26

ponymizer

Generator of random pony names to be used as friendly and fun test data
Ruby
10
star
27

jslogocrazyness

6
star
28

js1k-finals

6
star
29

madrobby.github.com

5
star
30

acornkittens

JavaScript
5
star
31

yotta

A heavily-optimized JavaScript library with a large impact
HTML
5
star
32

plastic-clock

CSS
3
star
33

schnitzelconf-intro

1
star