<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
This maybe a pango problem that I should take elsewhere (?) but I
think the root cause is in the cairo font backends so I'll ask here
first.<br>
<br>
The problem I'm having is that the logical_rect returned by
pango_layout_get_extents() includes whitespace above and below the
text when using PangoCairoFcFont on Fedora, but not when using
PangoCairoATSUIFont on a Mac. <br>
<br>
I've attached some small images to illustrate the comparison. (Hope
this is allowed on the list?)<br>
<br>
This is causing a significant layout difference in graphviz layouts
on Macs and Fedora, because the graph nodes are sized around the
extents of the labels.<br>
<br>
I'm testing with cairo 1.10.2 on both platforms<br>
<br>
Would the cairo developers be willing to accept this as a bug, or
should I attempt to make my own backend-specific compensation to
meet my needs in graphviz?<br>
<br>
I'll post or send my test code if anyone asks.<br>
<br>
John<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;"></span><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: sans-serif; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; font-size: medium;"></span>
</body>
</html>