26 #ifndef SCRIBO_TEXT_LINE_LINKS_X_HEIGHT_HH
27 # define SCRIBO_TEXT_LINE_LINKS_X_HEIGHT_HH
33 # include <scribo/core/macros.hh>
34 # include <scribo/core/line_set.hh>
35 # include <scribo/core/line_links.hh>
58 # ifndef MLN_INCLUDE_ONLY
64 line_links<L> output = links.duplicate();
67 const line_set<L>& lines = links.lines();
68 for_all_links(l, links)
71 max_x = lines(l).x_height();
73 min_x = lines(output(l)).x_height();
76 if (lines(l).x_height() < lines(output(l)).x_height())
77 std::swap(max_x, min_x);
82 if (min_x / max_x < 0.72f)
89 # endif // ! MLN_INCLUDE_ONLY
95 #endif // ! SCRIBO_TEXT_LINE_LINKS_X_HEIGHT_HH