mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
font_menu::tests::the_scroll_bar_leaves_the_stars_clear starred every family in the process-wide font database and listed that database, which tests running alongside add fonts and composite fonts to. In full parallel runs it sometimes failed with "8 families, no row stars drawn". With the four bundled families alone it never reached the scroll bar check, which ran only for seven or more families. - The menu's header takes the font database it lists and hands it to the rows and the name-width measurement. The app passes the process-wide database as before. - Each FontDb has an id of its own (FontDb::id), and the widest family name the menu keeps is stored with that id as well as the generation, so a width measured for one database is not used for another at the same generation. - The test lists a database of the bundled fonts, stars its four families, opens on Inter, and runs the frames the scroll bar takes to appear. It checks that the rows overflow the list's scroll area, that a row star is drawn inside that area, and that each star stays left of the scroll bar's column (#2277). With the list's scroll bar set to floating, the test fails with a star under the bar. Without the id in the widest name's key, each_font_database_has_its_own_widest_name fails.