- // round the returned extent: this is probably more correct anyhow but
- // we also need to do it to be consistent with GetPartialTextExtents()
- // below and avoid strange situation when the last partial extent
- // returned by it could have been greater than the full extent returned
- // by us
- CGFloat a, d, l;
- int w = CTLineGetTypographicBounds(line, &a, &d, &l) + 0.5;
+ CGFloat a, d, l, w;
+ w = CTLineGetTypographicBounds(line, &a, &d, &l);