func ExampleFpdf_SetFontLoader() {
	var fr fontResourceType
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.SetFontLoader(fr)
	pdf.AddFont("Calligrapher", "", "calligra.json")
	pdf.AddPage()
	pdf.SetFont("Calligrapher", "", 35)
	pdf.Cell(0, 10, "Load fonts from any source")
	fileStr := example.Filename("Fpdf_SetFontLoader")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
	// Output:
	// Generalized font loader reading calligra.json
	// Generalized font loader reading calligra.z
	// Successfully generated pdf/Fpdf_SetFontLoader.pdf
}
// ExampleFpdf_SetFontLoader demonstrates loading a non-standard font using a generalized
// font loader. fontResourceType implements the FontLoader interface and is
// defined locally in the test source code.
ExampleFpdf_SetFontLoader demonstrates loading a non-standard font using a generalized
font loader. fontResourceType implements the FontLoader interface and is
defined locally in the test source code.
// ExampleFpdf_SetFontLoader demonstrates loading a non - standard font using a generalized // font loader . fontResourceType implements the FontLoader interface and is // defined locally in the test source code .
func ExampleFpdf_SetFontLoader() {
	var fr fontResourceType
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.SetFontLoader(fr)
	pdf.AddFont("Calligrapher", "", "calligra.json")
	pdf.AddPage()
	pdf.SetFont("Calligrapher", "", 35)
	pdf.Cell(0, 10, "Load fonts from any source")
	fileStr := example.Filename("Fpdf_SetFontLoader")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
}
func ExampleFpdf_SetFontLoader ( ) { var fr fontResourceType pdf := gofpdf . New ( " " , " " , " " , " " ) pdf . SetFontLoader ( fr ) pdf . AddFont ( " " , " " , " " ) pdf . AddPage ( ) pdf . SetFont ( " " , " " , 35 ) pdf . Cell ( 0 , 10 , " " ) fileStr := example . Filename ( " " ) err := pdf . OutputFileAndClose ( fileStr ) example . Summary ( err , fileStr ) }
ExampleFpdf_SetFontLoader demonstrates loading a non-standard font using a generalized
font loader.
ExampleFpdf_SetFontLoader demonstrates loading a non - standard font using a generalized font loader .
// Output: // Generalized font loader reading calligra.json // Generalized font loader reading calligra.z // Successfully generated pdf/Fpdf_SetFontLoader.pdf