/// <summary> /// Inits the custom font. /// </summary> private void InitCustomFont() { CurrentResourceFontLoader = new ResourceFontLoader(FactoryDWrite); CurrentFontCollection = new FontCollection(FactoryDWrite, CurrentResourceFontLoader, CurrentResourceFontLoader.Key); comboBoxFonts.Items.Add("Pericles"); comboBoxFonts.Items.Add("Kootenay"); comboBoxFonts.SelectedIndex = 0; }