gdxapp4d/gdxapp4d-lib-unicodezd/src/main/java/love/distributedrebirth/unicode4d/atlas/FontAtlas.java

34 lines
819 B
Java

package love.distributedrebirth.unicode4d.atlas;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class FontAtlas {
private Map<String, FontAtlasStore> stores = new HashMap<>();
public FontAtlas() {
}
public FontAtlasStore getStoreByName(String name) {
return stores.get(name);
}
public Collection<FontAtlasStore> getStores() {
return stores.values();
}
public void setStores(Collection<FontAtlasStore> planes) {
for (FontAtlasStore plane:planes) {
addStore(plane);
}
}
public void addStore(FontAtlasStore plane) {
this.stores.put(plane.getName(), plane);
}
}