[cairo] Cairo C Samples ported to RCairo/ Ruby

Mohit Sindhwani ml3p at onghu.com
Sat May 29 18:10:51 UTC 2021


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/

The image on the original site is clipped but when I ran the code, it 
seems that the sample does not do what it should. I made some small 
changes to the code. Both the original and modified pictures are at the 
last one on the blog page above. Inputs welcome.

Thanks & Best Regards,
Mohit.
2021-5-30 | 2:05 am.




More information about the cairo mailing list