ui.text.core-text: apply @kusumotonorio patch.

flac
John Benediktsson 2020-03-11 20:58:27 -07:00 committed by Steve Ayerhart
parent d194f3f724
commit 38a7945bf4
No known key found for this signature in database
GPG Key ID: 5BFD39C5359E967D
1 changed files with 3 additions and 3 deletions

View File

@ -49,9 +49,9 @@ M:: core-text-renderer x>offset ( x font string -- n )
[ 2drop 0 ] [
cached-line line>>
swap scale 0 <CGPoint> CTLineGetStringIndexForPosition
] if-empty
2 * 0 swap string utf16n encode subseq
utf16n decode length ;
2 * 0 swap string utf16n encode subseq
utf16n decode length
] if-empty ;
M:: core-text-renderer offset>x ( n font string -- x )
font string cached-line line>>