Пример #1
0
 public void deleteFontDirectory(uint id, String name, uint language)
 {
     ResFontDir fontd = (ResFontDir)getDataItem(fontDirectories, id, name);
     if (fontd != null)
     {
         fontd.deleteItem(language);
     }
 }
Пример #2
0
//-----------------------------------------------------------------------------

        public void addFontDirectory(uint id, String name, uint language, byte[] data)
        {
            ResFontDir fontd = (ResFontDir)getDataItem(fontDirectories, id, name);
            if (fontd == null)
            {
                fontd = new ResFontDir(id, name);
                fontDirectories.Add(fontd);
            }
            fontd.addItem(language, data);
        }