* Get maximum dimension of a list of strings. * @param list List of strings, terminated by INVALID_STRING_ID. * @param fontsize Font size to use. * @return Dimension of highest and longest string within the list. */
| 933 | * @return Dimension of highest and longest string within the list. |
| 934 | */ |
| 935 | Dimension GetStringListBoundingBox(std::span<const StringID> list, FontSize fontsize) |
| 936 | { |
| 937 | Dimension d{0, 0}; |
| 938 | for (auto str : list) { |
| 939 | d = maxdim(d, GetStringBoundingBox(str, fontsize)); |
| 940 | } |
| 941 | return d; |
| 942 | } |
| 943 | |
| 944 | /** |
| 945 | * Draw single character horizontally centered around (x,y) |
no test coverage detected