// ----------------------------------------------------------------------- // // Copyright 2014 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Platform { using Perspex.Media; public interface ITextService { int GetCaretIndex(FormattedText text, Point point, Size constraint); Point GetCaretPosition(FormattedText text, int caretIndex, Size constraint); double[] GetLineHeights(FormattedText text, Size constraint); Size Measure(FormattedText text, Size constraint); } }