Path: blob/main/release-content/migration-guides/removed-font-atlas-sets.md
7223 views
------FontAtlasSetshas been removed.FontAtlasKeynow newtypes a(AssetId<Font>, u32, FontSmoothing).FontAtlasSetis now a resource. It newtypes aHashMap<FontAtlasKey, Vec<FontAtlas>>and derivesDerefandDerefMut.Font atlases are looked up directly using a
FontAtlasKey, there's no longer a separateAssetId<Font>toFontAtlasKeymap.remove_dropped_font_atlas_setshas been renamed tofree_unused_font_atlases_system.The
FontAtlasSetmethodsadd_glyph_to_atlas,get_glyph_atlas_info, andget_outlined_glyph_texturehave been moved into thefont_atlasmodule and reworked into free functions.