Mais conteúdo relacionado Semelhante a Textorize (20) Textorize8. sIFR 2 + 3 (beta)
sluggish if
overused
9. sIFR 2 + 3 (beta)
fonts must be
converted
15. Photoshop
12pt Consolas, no AA
12pt Consolas, “sharp”
12pt Consolas, “crisp”
17. Photoshop
12pt Consolas, no AA
12pt Consolas, “sharp”
12pt Consolas, “crisp”
artifacts on
curves
18. Photoshop
12pt Consolas, no AA
12pt Consolas, “sharp”
spacing
issues
12pt Consolas, “crisp”
19. Photoshop
12pt Consolas, no AA
12pt Consolas, “sharp”
12pt Consolas, “crisp”
no subpixel
AA
22. letter
ImageMagick spacing
fail
convert -‐background white -‐fill black -‐font
Consolas.ttf -‐pointsize 12 label:OMFGZ
omfgz.png
23. no
subpixel
AA
ImageMagick
convert -‐background white -‐fill black -‐font
Consolas.ttf -‐pointsize 12 label:OMFGZ
omfgz.png
24. ImageMagick
pixelsoup
convert -‐background white -‐fill black -‐font
Consolas.ttf -‐pointsize 12 label:OMFGZ
omfgz.png
29. textorize
sub-pixel AA
textorize.rb -‐f"Consolas" -‐s12 "OMFGZ"
32. require 'osx/cocoa'
module Textorize
class Runner
def initialize(string, output, options)
app = OSX::NSApplication.sharedApplication
delegate = RunnerApplication.alloc.init
delegate.options = options
delegate.string = string
delegate.output = output
app.setDelegate delegate
app.run
end
end
class RunnerApplication < OSX::NSObject
include OSX
attr_accessor :options
attr_accessor :string
attr_accessor :output
def initialize
@window = NSWindow.alloc.initWithContentRect_styleMask_backing_defer([150, 1500, 1000, 500], NSBorderlessWindowMask, 2, 0)
end
def applicationDidFinishLaunching(notification)
renderer = Renderer.new(@window, @string, @options)
Saver.new(renderer).write_to_file(@output)
NSApplication.sharedApplication.terminate(nil)
end
end
end
37. major annoyances (could be fixed)
needs background color (or no
subpixel AA)
no text selection (IMHO a feature,
not a bug)
not searchable