Interface IFontSavingCallback

Interface IFontSavingCallback

Nazwa przestrzeń: Aspose.Note.Saving.Html Zgromadzenie: Aspose.Note.dll (25.4.0)

Wprowadź tę interfejs, jeśli chcesz kontrolować, jak Aspose.Note zapisuje czcionki podczas zapisania dokumentu do HTML.

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

Methods

Źródło: FontSavingArgs

Nazywane, gdy Aspose.Note przechowuje czcionkę.

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

Oszczędność parametrów.

 Polski