public void IncRef(object parameters, string fontid)
        {
            TTFTextFontStoreFont fnt = TTFTextFontStore.Instance.GetEmbeddedFont(fontid);

            if (fnt == null)
            {
                fnt = TTFTextFontStore.Instance.EnsureFont(fontid);
                fnt.BuildCharSet(fontid);
            }
            fnt.incref();
        }
 public void ResetFontStore()
 {
     embeddedFonts = new List <TTFTextFontStoreFont>();
     foreach (TTFText client in Clients)
     {
         EnsureFont(client.FontId);
     }
     foreach (TTFText client in Clients)
     {
         TTFTextFontStoreFont f = GetFont(client.FontId);
         f.incref();
         if (f.charset == null)
         {
             f.BuildCharSet(client);
         }
     }
 }