+ if(eot) {
+ dest->bearing = dest->xmin;
+ /* for windows font rendering, make sure coordinates are always
+ to the right of the origin (and use bearing to shift them "back".)
+ Don't do this for non-windows platforms though because e.g. OS X
+ ignores bearing. */
+ int xshift=0;
+ if(dest->xmin < 0) {
+ xshift = -dest->xmin;
+ for(s=0;s<count;s++) {
+ dest->points[s].x += xshift;
+ }
+ dest->xmin += xshift;
+ dest->xmax += xshift;
+ }
+ }
+ dest->advance = src->advance*scale;
+
+ //dest->xmin=0; //TODO: might be necessary for some font engines?
+