github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

madrobby / textorize

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 217
    • 9
  • Source
  • Commits
  • Network (9)
  • Issues (2)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (4)
    • af9c468e9e05288e9d29136a26dfcf6d51051b3d
    • ecaed690db1ca5e7b35c91f9d3f98ffd4a859bc8
    • gh-pages
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.
  cancel

http://textorize.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

 switching to gemcutter permanently 
madrobby (author)
Fri Oct 23 02:39:58 -0700 2009
commit  d121ecb2f57f4b8c2dbb0ccd8045a8dd57640836
tree    fe219105844ee36a651fca4f26243db8e2fe6ba6
parent  139424fb9dc1189db0cda5fc3193bc9f22153da8
textorize /
name age
history
message
file .gitignore Thu Oct 01 04:03:56 -0700 2009 Add *.gem to gitignore [madrobby]
file LICENSE Sat Sep 26 07:13:51 -0700 2009 cleanups, remove dead options, off-screen rende... [madrobby]
file README.rdoc Fri Oct 23 02:39:58 -0700 2009 switching to gemcutter permanently [madrobby]
file Rakefile Sat Sep 26 05:57:43 -0700 2009 initial version [madrobby]
directory bin/ Tue Oct 20 08:44:18 -0700 2009 Add padding option [madrobby]
directory lib/ Wed Oct 21 05:48:04 -0700 2009 let us call it one-oh [madrobby]
directory test/ Sat Sep 26 05:57:43 -0700 2009 initial version [madrobby]
file textorize.gemspec Wed Oct 21 05:48:04 -0700 2009 let us call it one-oh [madrobby]
README.rdoc

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 <thomas@fesch.at>.

NSColor extensions taken from LimeChat, github.com/psychs/limechat. LimeChat is copyrighted free software by Satoshi Nakagawa <psychs@limechat.net>.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server