#pragma once #include #include #include namespace roro { using MeasureText = std::function; // Splits UTF-8 text into lines no wider than maxWidth: breaks at spaces when possible, inside // words only when a word alone is too wide, never inside a character. '\n' forces a break. std::vector wrapText(const std::string& text, int maxWidth, const MeasureText& measure); } // namespace roro