Skip to content

Position of Strike-Out Line is Off #333

Closed
odrobnik opened this Issue Mar 7, 2013 · 1 comment

1 participant

@odrobnik
odrobnik commented Mar 7, 2013

At present the strike-out line is positioned in the center of the glyph frame:

y = roundf(runStrokeBounds.origin.y + oneRun.frame.size.height/2.0f + 1)+0.5f;

It would be more correct to position it at half the X-Height.

Since glyph runs have the same font, it should be possible to get the actually used font, get the x-height from that and use this for correct positioning.

@odrobnik

fixed in 1afd065

@odrobnik odrobnik closed this Mar 16, 2013
@odrobnik odrobnik was assigned Mar 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.