I am trying to render messages from SNS with Pango and Cairo. Normal texts are rendered fine, but when I use shape attributes of Pango to render custom emoji of Slack and/or Mastodon, the line that contains the shape attribute is extended by some pixels even if the shape is smaller than original line height.
How do I get rid of extra height? I wonder if I'm missing something or it's actually a bug of Pango.
I'm pasting a source code to reproduce this issue at end of this mail and attaching a png file generated by this program.
Library versions are the latest available version with Ubuntu 18.04 LTS.
% pkg-config --modversion pango
% pkg-config --modversion cairo
gtk-list mailing list
a.png (1K) Download Attachment
|Free forum by Nabble||Edit this page|