Contents

fractionOfDistanceThroughGlyph(for:)

Returns character index for a point inside the line fragment coordinate system.

Declaration

func fractionOfDistanceThroughGlyph(for point: CGPoint) -> CGFloat

Parameters

  • point:

    A Cgpoint that represents the point inside the line fragment.

Return Value

The fraction of distance from the upstream edge.

See Also

Finding specific text