Discussion:
Cairo graphics samples ported to Ruby/ RCairo
Mohit Sindhwani
2021-05-30 07:16:05 UTC
Permalink
Hi Everyone,

Over the past couple of days, I ported the C samples from the Cairo
website to Ruby using RCairo.

These are on my blog at:
https://notepad.onghu.com/2021/cairo-samples-in-ruby/
All the code is available at: https://github.com/mohits/rcairo_samples

Separately, I have a question about the last sample:
https://www.cairographics.org/samples/text_extents/

If you're using Cairo in Ruby, I'd love to hear from you.

If Kouhei is on the group, thanks for creating RCairo :)

Thanks & Best Regards,
Mohit.



Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Sutou Kouhei
2021-05-31 02:30:06 UTC
Permalink
Hi,

In <543ddebb-861f-cd03-4d45-***@onghu.com>
"Cairo graphics samples ported to Ruby/ RCairo" on Sun, 30 May 2021 15:16:05 +0800,
Post by Mohit Sindhwani
Over the past couple of days, I ported the C samples from the Cairo
website to Ruby using RCairo.
https://notepad.onghu.com/2021/cairo-samples-in-ruby/
All the code is available at: https://github.com/mohits/rcairo_samples
Thanks!
Post by Mohit Sindhwani
https://www.cairographics.org/samples/text_extents/
I think that this is just for showing values in
Cairo::TextExtents. So the original sample isn't wrong.
Post by Mohit Sindhwani
If Kouhei is on the group, thanks for creating RCairo :)
I'm on here (and ***@cairographics.org too).
I'm the current maintainer not the original author but
thanks. :-)


Thanks,
--
kou

Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Mohit Sindhwani
2021-05-31 03:00:26 UTC
Permalink
Post by Sutou Kouhei
I think that this is just for showing values in
Cairo::TextExtents. So the original sample isn't wrong.
Post by Mohit Sindhwani
If Kouhei is on the group, thanks for creating RCairo :)
I'm the current maintainer not the original author but
thanks. :-)
Thanks Kouhei. I am now also creating a separate post for "porting" C
code to Ruby/RCairo based on the experience of doing this one. I hope to
publish that some time this week.

Best Regards,
Mohit.
2021-5-31 | 10:59 am.



Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Mohit Sindhwani
2021-05-31 09:20:01 UTC
Permalink
[Image]
打不开呢?blog是不是有问题?需要打开cookie? 邮件正文结束标识。
I'm sorry I can't see the image you posted to the group. Based on Google
Can't open it? Is there a problem with the blog? Need to open cookies?
There is no problem from where I can check and it seems to be OK. I can
still connect from here.

Best Regards,
Mohit.



Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-tal
Mohit Sindhwani
2021-06-01 16:21:49 UTC
Permalink
Hi Everyone,

Further to the post below.
Post by Mohit Sindhwani
Over the past couple of days, I ported the C samples from the Cairo
website to Ruby using RCairo.
https://notepad.onghu.com/2021/cairo-samples-in-ruby/
All the code is available at: https://github.com/mohits/rcairo_samples
While porting from the C API to the Ruby/ RCairo API, I wrote a number
of notes and have documented these notes in a new post.
https://notepad.onghu.com/2021/cairo-rcairo-porting/

I'm hopeful someone will find it useful.
As always, comments welcome.

Best Regards,
Mohit.


Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Loading...