Interface IFontSavingCallback

Interface IFontSavingCallback

名称: Aspose.Note.Saving.Html 集合: Aspose.Note.dll (25.4.0)

实施此界面,如果您想控制 Aspose.Note 在保存文档到 HTML 时如何保存字体。

public interface IFontSavingCallback
   {
      void SaveFont(string fontName, Font font);
   }

Methods

源源(FontSavingArgs)

当 Aspose.Note 保存字体时。

void FontSaving(FontSavingArgs args)
   {
      if (args.IsEmbedded)
      {
         if (args.SaveFonts || args.ExportFormat == SaveFormat.PDF)
         {
            this._fontSettings.EmbedFontFamilies = true;
         }
      }
      else
      {
         if (!this._fontSettings.EmbedAllFontFamilies)
         {
            this._fontSettings.EmbedFontFamilies = false;
         }
      }
   }

Parameters

args FontSavingArgs

节省参数

 中文