disabled hanger handling and optical alignment, even for kerned text
svn: r916
This commit is contained in:
parent
dc7ddab153
commit
ccb17d8346
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user