ZingPDF.GoogleFonts
1.0.49
dotnet add package ZingPDF.GoogleFonts --version 1.0.49
NuGet\Install-Package ZingPDF.GoogleFonts -Version 1.0.49
<PackageReference Include="ZingPDF.GoogleFonts" Version="1.0.49" />
<PackageVersion Include="ZingPDF.GoogleFonts" Version="1.0.49" />
<PackageReference Include="ZingPDF.GoogleFonts" />
paket add ZingPDF.GoogleFonts --version 1.0.49
#r "nuget: ZingPDF.GoogleFonts, 1.0.49"
#:package ZingPDF.GoogleFonts@1.0.49
#addin nuget:?package=ZingPDF.GoogleFonts&version=1.0.49
#tool nuget:?package=ZingPDF.GoogleFonts&version=1.0.49
ZingPDF.GoogleFonts
ZingPDF.GoogleFonts resolves Google Fonts through the Google Fonts Developer API and registers them into a ZingPDF document as embedded TrueType fonts.
Installation
dotnet add package ZingPDF.GoogleFonts
Typical usage
using ZingPDF;
using ZingPDF.GoogleFonts;
using ZingPDF.Graphics;
using ZingPDF.Syntax.CommonDataStructures;
using var pdf = Pdf.Create();
var page = await pdf.GetPageAsync(1);
var client = new GoogleFontsClient("<google-fonts-api-key>");
var font = await pdf.RegisterGoogleFontAsync(
client,
new GoogleFontRequest
{
Family = "Inter",
Variant = "regular"
});
await page.AddTextAsync("Hello from Google Fonts", Rectangle.FromDimensions(300, 80), font, 18, RGBColour.Black);
Notes
- This package requires a Google Fonts Developer API key.
- High-level text registration currently targets WinAnsi / Windows-1252 text workflows.
- Most applications should reference this package alongside
ZingPDF, not instead of it.
Licensing
ZingPDF is proprietary software. Review LICENSE.txt and ensure you have an active paid subscription with sufficient seats, or another applicable commercial agreement, before commercial use or commercial bundling.
Support and compatibility
See SUPPORT.md in the package root or docs/project/SUPPORT.md in the repository for the current support stance and release-readiness notes.
More information
- core docs: zingpdf.dev/docs.html
- guides: zingpdf.dev/guides.html
- capability matrix: zingpdf.dev/capabilities.html
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- ZingPDF (>= 1.0.49)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.