func ExampleFpdf_AddFontFromBytes() {
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.AddPage()
	pdf.AddFontFromBytes("calligra", "", files.CalligraJson, files.CalligraZ)
	pdf.SetFont("calligra", "", 16)
	pdf.Cell(40, 10, "Hello World With Embedded Font!")
	fileStr := example.Filename("Fpdf_EmbeddedFont")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
	// Output:
	// Successfully generated pdf/Fpdf_EmbeddedFont.pdf
}
// ExampleFpdf_AddFontFromBytes demonstrate how to use embedded fonts from byte array
ExampleFpdf_AddFontFromBytes demonstrate how to use embedded fonts from byte array
// ExampleFpdf_AddFontFromBytes demonstrate how to use embedded fonts from byte array
func ExampleFpdf_AddFontFromBytes() {
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.AddPage()
	pdf.AddFontFromBytes("calligra", "", files.CalligraJson, files.CalligraZ)
	pdf.SetFont("calligra", "", 16)
	pdf.Cell(40, 10, "Hello World With Embedded Font!")
	fileStr := example.Filename("Fpdf_EmbeddedFont")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
}
func ExampleFpdf_AddFontFromBytes ( ) { pdf := gofpdf . New ( " " , " " , " " , " " ) pdf . AddPage ( ) pdf . AddFontFromBytes ( " " , " " , files . CalligraJson , files . CalligraZ ) pdf . SetFont ( " " , " " , 16 ) pdf . Cell ( 40 , 10 , " " ) fileStr := example . Filename ( " " ) err := pdf . OutputFileAndClose ( fileStr ) example . Summary ( err , fileStr ) }
ExampleFpdf_AddFontFromBytes demonstrate how to use embedded fonts from byte array
ExampleFpdf_AddFontFromBytes demonstrate how to use embedded fonts from byte array
// Output: // Successfully generated pdf/Fpdf_EmbeddedFont.pdf