Skip to main content

build_atlas_with_sets

Function build_atlas_with_sets 

Source
pub fn build_atlas_with_sets(
    font: &BitmapFont,
    wides: &[(Option<&str>, &BitmapFont)],
    chars: &AtlasChars,
) -> Atlas
Expand description

build_atlas, and after the narrow glyphs each wide set of wides (None: the unnamed one) in turn: the glyphs of its font that chars wants in it (AtlasChars::wants_wide), in codepoint order, each over two cells of one row. A wide font’s cells must be twice as wide as font’s and as tall (check_wide).