Skip to content

Commit

Permalink
Merge dfa66e6 into 31f29d8
Browse files Browse the repository at this point in the history
  • Loading branch information
ryecroft committed May 23, 2015
2 parents 31f29d8 + dfa66e6 commit a80db5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Core/Source/DTCoreTextLayoutFrame.m
Expand Up @@ -1369,6 +1369,12 @@ - (void)drawInContext:(CGContextRef)context options:(DTCoreTextLayoutFrameDrawin
break;
}

NSNumber *baselineOffset = oneRun.attributes[NSBaselineOffsetAttributeName];
if (baselineOffset)
{
textPosition.y += [baselineOffset floatValue];
}

CGContextSetTextPosition(context, textPosition.x, textPosition.y);

if (!oneRun.attachment)
Expand Down

0 comments on commit a80db5e

Please sign in to comment.