ZingPDF.GoogleFonts
1.0.60
dotnet add package ZingPDF.GoogleFonts --version 1.0.60
NuGet\Install-Package ZingPDF.GoogleFonts -Version 1.0.60
<PackageReference Include="ZingPDF.GoogleFonts" Version="1.0.60" />
<PackageVersion Include="ZingPDF.GoogleFonts" Version="1.0.60" />
<PackageReference Include="ZingPDF.GoogleFonts" />
paket add ZingPDF.GoogleFonts --version 1.0.60
#r "nuget: ZingPDF.GoogleFonts, 1.0.60"
#:package ZingPDF.GoogleFonts@1.0.60
#addin nuget:?package=ZingPDF.GoogleFonts&version=1.0.60
#tool nuget:?package=ZingPDF.GoogleFonts&version=1.0.60
ZingPDF.GoogleFonts
ZingPDF.GoogleFonts downloads TrueType fonts through the public CSS API or the keyed Google Fonts Developer API and registers them into a ZingPDF document as embedded TrueType fonts.
.NET compatibility
Targets net8.0, with .NET 8 as the minimum. Runtime validation covers .NET 8,
9, and 10 on Windows. .NET Framework 4.x and applications targeting .NET 6 or 7
are not supported. Native dependencies and deployment requirements remain package-specific. See runtime and platform requirements.
Installation
dotnet add package ZingPDF.GoogleFonts
Quick start
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();
var font = await pdf.RegisterUnicodeGoogleFontAsync(
client,
new GoogleFontRequest
{
Family = "Inter",
Variant = "regular"
});
await page.AddTextAsync("Hello from Google Fonts", Rectangle.FromDimensions(300, 80), font, 18, RGBColour.Black);
Main workflows
- download and register Google Fonts into a PDF document
- use Google Fonts from the standard page API or the fluent authoring API
- embed the resolved font into the saved PDF
Notes
new GoogleFontsClient()needs no API key for downloads. It requests Latin, extended Latin, Greek, Cyrillic and Vietnamese script ranges together, accepts one combined TrueType response, and never sends document text. Not every family or variant provides this format.new GoogleFontsClient(apiKey)retains the Developer API path, including family metadata and variable-font preference.- Check character coverage before using a downloaded font. A successful download does not guarantee that every requested character exists.
- Downloads require network access. Applications can cache returned bytes locally.
RegisterUnicodeGoogleFontAsyncand fluentWithUnicodeGoogleFontuse Unicode CID mappings with glyph checks, automatic embedding and no script shaping.RegisterGoogleFontAsyncretains WinAnsi / Windows-1252 behaviour for compatibility.Pdf.CreateTextEditor()can use downloaded bytes throughPdfTextReplacementOptions.TrueTypeFontDatafor existing-line replacement with Unicode CID mappings and automatic embedding.- Most applications should reference this package alongside
ZingPDF, not instead of it.
Licensing
ZingPDF is proprietary software. Review LICENSE.txt and ensure you have paid license coverage with sufficient seats, or another applicable commercial agreement, before commercial use or commercial bundling. Versions released during a paid subscription remain licensed within the purchased scope after it ends; new versions and support require an active subscription.
Evaluation and other non-commercial use are free.
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
- repository: github.com/ZingPDF/ZingPDF
| 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.60)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.60 | 115 | 11/3/2026 |
| 1.0.59 | 131 | 10/11/2026 |
| 1.0.58 | 176 | 5/28/2026 |
| 1.0.57 | 134 | 5/25/2026 |
| 1.0.56 | 135 | 5/15/2026 |
| 1.0.54 | 154 | 4/19/2026 |
| 1.0.53 | 130 | 4/19/2026 |
| 1.0.51 | 131 | 4/19/2026 |
| 1.0.49 | 132 | 4/9/2026 |
| 1.0.48 | 137 | 4/7/2026 |
| 1.0.45 | 138 | 4/6/2026 |
| 1.0.44 | 137 | 4/6/2026 |
| 1.0.43 | 142 | 4/6/2026 |
| 1.0.40 | 137 | 4/5/2026 |
| 1.0.38 | 140 | 4/5/2026 |
| 1.0.37 | 137 | 4/5/2026 |