+ virtual int x2pos(docstring const & s, int & x, bool rtl, double ws) const = 0;
+ /**
+ * Break string at width at most x.
+ * \return true if successful
+ * \param rtl is true for right-to-left layout
+ * \param force is false for breaking at word separator, true for
+ * arbitrary position.
+ */
+ virtual bool breakAt(docstring & s, int & x, bool rtl, bool force) const = 0;