private static CCBMFontConfiguration FNTConfigLoadFile(string file) { CCBMFontConfiguration pRet; if (!s_pConfigurations.TryGetValue(file, out pRet)) { pRet = CCBMFontConfiguration.Create(file); s_pConfigurations.Add(file, pRet); } return(pRet); }
public static CCBMFontConfiguration FNTConfigLoadFile(string fntName, Stream src) { CCBMFontConfiguration pRet; if (!s_pConfigurations.TryGetValue(fntName, out pRet)) { pRet = CCBMFontConfiguration.Create(src, fntName); s_pConfigurations.Add(fntName, pRet); } return(pRet); }
private static CCBMFontConfiguration FNTConfigLoadFile(string file) { CCBMFontConfiguration pRet = null; if (s_pConfigurations == null) { s_pConfigurations = new Dictionary <string, CCBMFontConfiguration>(); } if (!s_pConfigurations.Keys.Contains(file)) { pRet = CCBMFontConfiguration.Create(file); s_pConfigurations.Add(file, pRet); } else { pRet = s_pConfigurations[file]; } return(pRet); }