diff --git a/src/wxmac/src/mac/wx_dccan3.cc b/src/wxmac/src/mac/wx_dccan3.cc index 4b5d58c70b..9cb7ff1a13 100644 --- a/src/wxmac/src/mac/wx_dccan3.cc +++ b/src/wxmac/src/mac/wx_dccan3.cc @@ -1083,11 +1083,14 @@ static double DrawMeasUnicodeText(const char *text, int d, int theStrlen, int uc | kATSLineDisableAllLayoutOperations | kATSLineUseDeviceMetrics | (use_cgctx ? 0 : kATSLineUseQDRendering)); - ll_theTags[cnt] = kATSULineLayoutOptionsTag; - ll_theSizes[cnt] = sizeof(ATSLineLayoutOptions); - ll_theValues[cnt] = &ll_attribs; - cnt++; + } else { + ll_attribs = (kATSLineHasNoHangers + | kATSLineHasNoOpticalAlignment); } + ll_theTags[cnt] = kATSULineLayoutOptionsTag; + ll_theSizes[cnt] = sizeof(ATSLineLayoutOptions); + ll_theValues[cnt] = &ll_attribs; + cnt++; if (use_cgctx) { ll_theTags[cnt] = kATSUCGContextTag; @@ -1140,7 +1143,7 @@ static double DrawMeasUnicodeText(const char *text, int d, int theStrlen, int uc if (angle != 0.0) ATSUDisposeTextLayout(meas_layout); - + one_res = (Fix2X(bounds.upperRight.x) - Fix2X(bounds.upperLeft.x)); if (one_res < 0) one_res = 0;