Andy Meneely
1dc89ae76a
Port global text hints to the new conf
11 years ago
Andy Meneely
923f346575
Redesigning how config files are read, stored, and delegated
...
With the new design, we take the load off of deck.rb and simply delegate methods over to the new conf.rb. This means that things like `antialias` is now available as a method to the normal Squib scripts for easy checking (without being mutable). Squib::Conf also handles parsing and defaults, and any potential input validation we need to do in the future.
Typographer is also set up now as a deck-wide configuration. This may change in the future if we want typography customization per-command, although that seems like a strange use case.
Lots of tests for this one, and lots of cross-cutting concerns in this commit.
This commit also includes some tweaks to rspec tests, including tagging of slow tests for a `rake spec_fastonly`
Conflicts:
spec/samples/samples_regression_spec.rb
spec/spec_helper.rb
squib.sublime-project
11 years ago
Andy Meneely
25773a8ee5
Better regression tests for roo
11 years ago
Andy Meneely
035cd6259e
Fix global hinting logic
...
Fixes #63
11 years ago
Andy Meneely
a64e608b0a
Onward and upward.
11 years ago
Andy Meneely
4a0c5e78b6
Fix PDF scaling issue
...
Properly compute the size of the PDF based on DPI and PDF-specific resolution (i.e. 72dpi).
Closes #62
11 years ago
Andy Meneely
a47e26535d
Starting a bugfix version
11 years ago
Andy Meneely
8ec0a5e09a
Onward and upward.
11 years ago
Andy Meneely
fbefe098cc
I dub thee v0.5.0
11 years ago
Andy Meneely
0616512bd6
Set font antialiasing from global antialiasing
...
This is a workaround until we get a proper solution in #59
11 years ago
Andy Meneely
e268246337
Allow specific gray and subpixel choices for antialiasing
11 years ago
Andy Meneely
0e22c52b0f
Fix up config defaults
...
Also: removing include because Yard is stupid.
11 years ago
Andy Meneely
063d5156d6
Allow configuration of typographical replacements, e.g. smart quotes
...
If you're living in a non-UTF-8 character set, then you can configure what quotes are smartly changed.
If my regexes are messing things up, you can also turn this off with smart_quotes: false
Also updated docs.
This closes #50
11 years ago
Andy Meneely
beb46a9e1c
Place embedded icons based on byte offset
...
Fixes #57
11 years ago
Andy Meneely
211e7c13b3
Fix typography replacements with embeds
...
Enable embedded icons tests again
11 years ago
Andy Meneely
a5d1cb60f2
Complete overhaul of smart quotes to "typographer"
...
See README for details
Contributes to #50
11 years ago
Andy Meneely
674397c005
Smart quotes!
...
Closes #50
11 years ago
Andy Meneely
874bdba8bc
Fix a string replacement issue.
...
Contributes to #30
11 years ago
Andy Meneely
19cad2cdb8
Using a platform-specific fix for zero-width letters on embedding icons
...
Contributes to #30 and our zero-width letter woes.
11 years ago
Andy Meneely
84fa97a4d1
More debugging on this stupid error
11 years ago
Andy Meneely
91ba48f80b
Explicitly saving and restoring the matrix
11 years ago
Andy Meneely
c9f9235be7
Attempting travis fix by saving and restoring the matrix
11 years ago
Andy Meneely
b123a132ef
Better debugging to fix this travis issue
11 years ago
Andy Meneely
44a6334b26
Allowing :get_matrix in the wrapper
11 years ago
Andy Meneely
d4cd7897ab
Catching the error and printing the current cairo matrix
11 years ago
Andy Meneely
acdb56d894
Travis fix: adding save/restore to fix matrix problem
11 years ago
Andy Meneely
5c4d7c368f
Switching back to zero to try to break Travis
11 years ago
Andy Meneely
7941adc2aa
Font size of 1/1024 pixel to fix non invertible matrix error
11 years ago
Andy Meneely
03e41c7e81
Adding regression tests for various cases to test PR #53
...
Close #53 .
11 years ago
pickfifteen
f18730e927
Embed cleanup unused lines
11 years ago
pickfifteen
7cc75b24a2
Embed wrapping fix
...
Draw call locations now calculated after all string replacements. Does this fix the center and right align embed? Quick testing could not find any errors, but more thorough testing needed.
11 years ago
pickfifteen
30df4cd115
Embed size fix
...
Missed the trailing word character in last commit
11 years ago
pickfifteen
67c834960a
Embed fix size, first / last issue
...
One more fix needed to fix wrapping-- draw_calls all need to be calculated after all string substitutions have been made.
11 years ago
Andy Meneely
574b76873e
Updating regression tests, renamed bezier curve params
11 years ago
Andy Meneely
42ae2144e0
Fix index location issue, working on vertical placement
...
Contributes to #30
Also added little adjusters for the icons in case your icon is a little off.
[skip ci]
11 years ago
Andy Meneely
014646ce9f
Better default to avoid CAIRO_STATUS_INVALID_SIZE errors
...
For some silly reason Cairo checks the width and height for invalid size, not the product: http://lists.cairographics.org/archives/cairo/2010-December/021424.html
11 years ago
Andy Meneely
2cc9cc8e93
Initial implementation of curves
...
Contributes to #37
11 years ago
Andy Meneely
eee1bcf90d
Default key is specified
11 years ago
Andy Meneely
ac2b46921d
Add support for embedding pngs
...
Refactored into passing a Proc. I love those things.
11 years ago
Andy Meneely
cb7ff5f4d7
Yard: Add in lots of @api private directives
11 years ago
Andy Meneely
188112d581
Record this as a known issue and point to the bug
11 years ago
Andy Meneely
77e5fcce06
Cleaning up
...
Although it appears we still have issues with text_options being different on different cards. Very strange.
11 years ago
Andy Meneely
c6cb0ca288
Saving a wonky bug example for posterity
11 years ago
Andy Meneely
666dae393d
Base functionality of icon embedding working
...
Contributes to #30
11 years ago
Andy Meneely
58a2f9cd89
Onward and upward.
11 years ago
Andy Meneely
2caacaeece
Fixing compatibility with linux os
...
Thank you, Travis! Turns out the cairo gem isn't perfectly the same in Linux...
11 years ago
Andy Meneely
cae7144040
I dub thee v0.4.0
11 years ago
Andy Meneely
82c141fbf4
Better docs on gradient coordinate behaviors
11 years ago
Andy Meneely
d744d9d815
Documentation for backend option
11 years ago
Andy Meneely
f49bff2388
Add antialias config option
...
Closes #41
11 years ago