/* Scale the metrics by the interpreter's scale. */
sfnt_scale_metrics (&metrics, font->interpreter->scale);
- /* How to round lbearing and rbearing? */
pcm->lbearing = metrics.lbearing >> 16;
- pcm->rbearing = outline->xmax >> 16;
+ pcm->rbearing = SFNT_CEIL_FIXED (outline->xmax) >> 16;
/* Round the advance, ascent and descent upwards. */
pcm->width = SFNT_CEIL_FIXED (metrics.advance) >> 16;
/* How to round lbearing and rbearing? */
pcm->lbearing = metrics.lbearing >> 16;
- pcm->rbearing = outline->xmax >> 16;
+ pcm->rbearing = SFNT_CEIL_FIXED (outline->xmax) >> 16;
/* Round the advance, ascent and descent upwards. */
pcm->width = SFNT_CEIL_FIXED (metrics.advance) >> 16;