-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: line height and kern #418
Comments
API features should be available on the |
Hey! Added an annotation method. This method differs from caption as it requires a message = ' Quick\nbrown\n fox'
with Image(width=250, height=150, pseudo='xc:lightgreen') as img:
with Drawing() as ctx:
ctx.fill_color = 'orange'
ctx.font_family = 'Times New Roman'
ctx.font_size = 40
ctx.text_kerning = -4
ctx.text_interline_spacing = -20
img.annotate(message, ctx, left=30, baseline=40)
img.trim()
img.save(filename='output.png') |
Excellent. Thanks!!!
…
On Jul 12, 2019 at 8:56 AM, <Eric McConville ***@***.***)> wrote:
Hey!
Added an annotation method. This method differs from caption as it requires a wand.drawing.Drawing context to dictate type-face styles. So for kerning, and line height, you would do something like...
message = ' Quick\nbrown\n fox' with Image(width=250, height=150, pseudo='xc:lightgreen') as img: with Drawing() as ctx: ctx.fill_color = 'orange' ctx.font_family = 'Times New Roman' ctx.font_size = 40 ctx.text_kerning = -4 ctx.text_interline_spacing = -20 img.annotate(message, ctx, left=30, baseline=40) img.trim() img.save(filename='output.png')
(https://user-images.githubusercontent.com/84594/61141622-96e13480-a493-11e9-8c9e-0d93d69932bd.png)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (#418?email_source=notifications&email_token=AARQWGMLKE6B3YFHGP7SQM3P7CSRZA5CNFSM4H6WDFTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ2FCFI#issuecomment-510939413), or mute the thread (https://github.com/notifications/unsubscribe-auth/AARQWGOUS73OWVEBYB7ZHJTP7CSRZANCNFSM4H6WDFTA).
|
Howdy!
First off, I've been using this library for a couple hours and it's great. I appreciate all the work that has been put into it!
I was hoping to request API exposure for line height and kern features that ImageMagick provides for captions(see docs).
Thanks so much!
Hayden
The text was updated successfully, but these errors were encountered: