private void GetFontDataCompleted(object sender, GetFontDataCompletedEventArgs e) { this.pdfExportCounter.EndUpdate(); System.Diagnostics.Debug.WriteLine("updated font:{0}", e.Result.FontFamilyName); if (e.Error == null && e.Result.IsValid) { PdfFontsServiceFontData result = e.Result; FontFamily fontFamily = new FontFamily(result.FontFamilyName); FontStyle fontStyle = GetFontStyle(result.IsItalic); FontWeight fontWeight = GetFontWeight(result.IsBold); FontsRepository.RegisterFont(fontFamily, fontStyle, fontWeight, result.Bytes); } }