Andy Meneely
0cbcc0c683
👮 string literals should be single-quoted
10 years ago
Andy Meneely
310030eee4
👮 spaces around operators
10 years ago
Andy Meneely
5e09e0f1e1
👮 fix spacing inside hashes
10 years ago
Andy Meneely
8a9552126c
👮 fix space after comma
10 years ago
Andy Meneely
40ac6d2b6b
Expanding the Working With Text section
...
[skip ci]
11 years ago
Andy Meneely
19767c54c4
Implement stroke_strategy option for all drawing operations
...
Fixes #102
11 years ago
Andy Meneely
8f977f5956
Update text_options.rb sample, and expected output
11 years ago
Andy Meneely
9d475995e8
Pango scaling of "spacing" in text is done once
...
Spacing also defaults to nil, not zero, as before
Fixes #98
11 years ago
Andy Meneely
79814a43ea
Start migrating text over to new args system
...
Almost there. It's working fine with the sample, but next it's time to write validators to get all this arg logic out of text.rb and make it just about drawing text.
Yes, unit tests aren't updated yet.
[skip ci]
11 years ago
Andy Meneely
71defb9e33
Fix color handling with text outline stroking
...
Needed to set squibcolor prior to translating the coordinate system so that gradients are relative to the card (as is documented). This also means stroking is done AFTER drawing the text, which looks better anyway.
11 years ago
Andy Meneely
7c69cad506
Text: outline a string with a color or gradient
...
Fill color is still the same with 'color' (i.e. can be overridden by markup still), but now there's a stroke_width and a stroke_color option that, when stroke_width > 0, will draw an outline below the text. Since this isn't a Pango feature, we can't do markup for outlines. (Maybe make that a feature request to Pango if you want it.)
Implements #51
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
d386ae0426
Finish my thought
11 years ago
Andy Meneely
50ddf0f576
Making the demo be left-aligned for now
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
666dae393d
Base functionality of icon embedding working
...
Contributes to #30
11 years ago
Andy Meneely
979cd701e6
Added a unicode sample
...
Removed the unicode from the text_options.rb sample so the regression test can be back online.
11 years ago
Andy Meneely
d5181302ad
Implementing ink extent return values
11 years ago
Andy Meneely
7af4e9a209
Samples explicitly set the encoding
11 years ago
Andy Meneely
20600a97e6
Rotation works better now!!
11 years ago
Andy Meneely
e115135d51
Rubocop: Using single-quotes properly
11 years ago
Andy Meneely
37fd4e7733
Rubocop: Trailing Whitespace
11 years ago
Andy Meneely
393eeae450
Renamed text :rotation => :angle
11 years ago
David Turner
91e7adafd5
Add text rotation
11 years ago
Andy Meneely
fd2d10771a
Added a font_size override for font description
11 years ago
Andy Meneely
a643cf8025
Hinting is set to off, not nil. Some more tests
12 years ago
Andy Meneely
4f575f9761
More unit testsgit pull
12 years ago
Andy Meneely
f6480445df
Stabilizing the code after the options switch. Getting there...
12 years ago
Andy Meneely
11f9d155ab
Fixing special character example with pango
12 years ago
Andy Meneely
70f8eb3643
Adding more to the sample
12 years ago
Andy Meneely
37794bdb56
Removing the puts from the samples
12 years ago
Andy Meneely
d7e3435715
Renaming files to be more conventional
12 years ago
Andy Meneely
a6eed0ad3d
Added valign, renaming text
12 years ago
Andy Meneely
06cf063126
Better default handling, more samples
12 years ago
Andy Meneely
9da4d0a499
Tons of text features and options added
12 years ago