async void ffmpegAttachmentSupport_AttachmentFoundEvent(AttachmentSupport sender, Attachment attachment) { //폰트 저장으로 설정되어 있는 경우 폰트를 앱내에 저장 if (Settings.General.UseSaveFontInMkv) { if (attachment.MimeType == "application/x-truetype-font") { List <KeyValuePair <string, byte[]> > fonts = new List <KeyValuePair <string, byte[]> >(); fonts.Add(new KeyValuePair <string, byte[]>(attachment.FileName, attachment.BinaryData)); if (fonts != null && fonts.Any()) { var resource = ResourceLoader.GetForCurrentView(); ShowLoadingBar(string.Format(resource.GetString("Loading"), resource.GetString("FontFamily/Header/Text")) + " " + attachment.FileName); //System.Diagnostics.Debug.WriteLine(attachment.FileName); //await ThreadPool.RunAsync(async handler => //{ await FontHelper.InstallFont(fonts, false); //}); } } //단순 호출 횟수만 카운트 cntAttachment++; } }
void ffmpegAttachmentSupport_AttachmentCompletedEvent(AttachmentSupport sender, UInt32 cbAttachment) { FontHelper.FireFontFamilyListChanged(cbAttachment); }