Andy Meneely
cd3bf1b3f2
add suffix option
...
closes #268
5 years ago
Andy Meneely
4003e00e2a
refactoring to get middle/center, possibly more
5 years ago
Andy Meneely
b4f3dbc5eb
fix default Qty field
5 years ago
Andy Meneely
abe772f804
update regressions
6 years ago
Mirko K
6d57b3e8c1
Feat/font autoscale ( #288 )
...
* PoC font autosize feature
* Take enumerables or 'auto' keyword for autoscaling
* Allo enumerables of font_size per card, where the largest font size that does not ellipsize is chosen
* Use ellipsize: :autoscale keyword to determine font autosizing
* Use binary search to find the correct font size
* Consider new ellipsize option in testcase
* Document ellipsize: :autoscale option
* Add ellipsize: :autoscale sample to text sample
* Fix double multiplication with Pango::SCALE
* Scale embedded images with text when autoscaling
* Remove stray semicolon
* Return dummy value for FontDescription.size in mock_cairo
* Update regression test data for autoscale feature.
* Add ellipsize: :autoscale example to existing font_autoscale sample
* Add missing :autoscale to list of options in documentation
6 years ago
Andy Meneely
cb66d7c31d
Flip options for sprues ( #251 ) ( #277 )
...
* Flipping works, now just need new argument
* Finishing up
* New test data
7 years ago
Andy Meneely
a40c4d7dc4
Cleaner handling of SVG ID
7 years ago
Andy Meneely
89c0e6625d
xlsx, csv, yaml: explode defaults to "qty" ( #262 )
...
Not "Qty"
7 years ago
Andy Meneely
5a8b3c5fcd
png: check magic bytes for well-formed files
...
Closes #$250
7 years ago
Andy Meneely
248eb2fb91
Layout multiple inheritance works with operators
...
The case of using relative operators and multiple inheritance is handled now.
Fixes #244
7 years ago
Andy Meneely
aada86a070
Fix extra stroke on circle, fix #248
7 years ago
Andy Meneely
2020b5a67a
sanity: fixing lots of tests
...
apparently i totally borked a lot of sanity tests. should be fixed now.
BORK BORK BORK
8 years ago
Andy Meneely
498a8224e7
samples: fix to be more consistent
8 years ago
Andy Meneely
2362e189d7
new methods: safe_zone and cut_zone
8 years ago
Andy Meneely
d07fd1f478
regression fix
8 years ago
Damien Salvador
44b899181a
save_pdf: right-to-left support
...
# Conflicts:
# CHANGELOG.md
8 years ago
Clarence "Sparr" Risher
8509ab5728
change x= to *=, add unit tests and improve existing tests
8 years ago
Clarence Sparr Risher
2a86b8f215
fix save_sheet to calculate rows correctly based on range
...
Based on PR #207
8 years ago
Seh Hui, Leong
f800c131ff
Respect DPI settings in text, add pt unit
...
This has the compatibility impact that all font sizes should be divided by 3 to maintain their same sizes.
Based on PR #225 . Thanks @felixleong!!
Conflicts:
bin/squib
lib/squib/graphics/text.rb
8 years ago
Andy Meneely
3ccc6432ab
sprues: better validation errors
8 years ago
Andy Meneely
0d076b1e85
sprues: rename "template" to "sprue"
...
Also:
* Move stuff around to a builtin/ folder
* Separate out classes to follow my one-class-per-file convention
* Samples are renamed to the underscore convention
I just like the word "sprue", and it's more descriptive than our original choice of "template". If I had to start Squib all over again, I would probably name it "Sprue" :P
9 years ago
Seh Hui, Leong
25bf0d7a67
Squash @felixleong's pdf-template feature.
...
I will be making revisions based on this, but this is all of his hard work.
Thank you!!!
Conflicts:
squib.gemspec
9 years ago
Andy Meneely
10e63c845f
Rollup of v0.13.x fixes
...
See v0.13-fixes branch for individual fixes
Conflicts:
CHANGELOG.md
lib/squib/version.rb
squib.gemspec
9 years ago
Andy Meneely
f140ff32fa
Cleanup and tests of yaml method
9 years ago
Andy Meneely
824a28c87d
Document and test rtl option
9 years ago
Andy Meneely
a55300f844
more tests for circle arc
...
Also document it in the CHANGELOG.
9 years ago
Clarence "Sparr" Risher
ebba554b5d
update existing tests for new functionality
9 years ago
Andy Meneely
1cdc9c0d71
samples: reorganize for better sanity
...
Converted to a more consistent organization of each folder for groups of samples
Contributes to #118
9 years ago
Andy Meneely
c267e1dda7
spec: rip out flaky mock object test
9 years ago
Andy Meneely
56b5a711e4
dsl: add Squib.configure
...
I ended up adding this one on a whim, but it feels like a long time coming. We need cleaner support for Rakefiles, and this is a good step toward that I think.
9 years ago
Andy Meneely
e18084d963
deck: flush surface upon exit
...
Fixes bug #180
9 years ago
Andy Meneely
0dcd2a06bc
docs: document units better
9 years ago
Andy Meneely
7c66644955
samples: better units example
9 years ago
Andy Meneely
02c78d8f13
spec: fix regression breakage
9 years ago
Andy Meneely
30395aee56
save_pdf: add crop marks
...
Should satisfy #123
Needs some testing on printers but the functionality is there.
9 years ago
Andy Meneely
ee2ed28550
text: rewrite embedding to use set_shape_renderer
...
No more arcane unicode magic!
Closes #177
Related to #170 , #171 , #158 , #103 , and #153 too.
9 years ago
Andy Meneely
0501a94bac
test: update regression test for rotated ellipse
9 years ago
Andy Meneely
d2eae64da2
shapes: rect and ellipse get the angle option
...
Closes #162
9 years ago
Andy Meneely
4ec1a33cfd
layouts: support unit conversion in extends
...
fixes bug #173
Also: LayoutParser is now a proper class, as God intended.
9 years ago
Andy Meneely
ee0d232478
text: rewrite how image space is carved
...
Embedded images avoid zero-sized fonts by using non-printable characters instead.
This is for #153 and #103
10 years ago
Andy Meneely
bdcd7d94ad
save_png: update regression tests
10 years ago
Andy Meneely
87fd3b7b6f
samples: update regression test
10 years ago
Andy Meneely
43ab4b0ae8
samples: gistify colors
10 years ago
Andy Meneely
8cd651d5f1
samples: gistifying excel.rb and csv.rb
10 years ago
Andy Meneely
bd5e6c92f6
samples: gistify saves
10 years ago
Andy Meneely
dd32e3bfae
samples: cleanup regression tests
10 years ago
Andy Meneely
795b4e4478
csv: yield to block on each cell
...
Closes #151
Related to #145
10 years ago
Andy Meneely
2329a069d1
save_pdf: flush to file
...
Fixes #150
10 years ago
Andy Meneely
d7943da750
csv: allow all Ruby csv parsing options
...
Closes #149
Generalization on PR #146 by Qgel. Thanks for the contribution!
10 years ago
Andy Meneely
38e3d669c5
tests: show how CSVs can include newlines
...
Sanity check for #145
10 years ago