GoogleFontsCatalogProvider
public sealed class GoogleFontsCatalogProvider : RemoteRepositoryCatalogProvider, IRemoteCatalogProvider, IRemoteCatalogAccessProbeProvides Google Fonts family metadata and revision-pinned font downloads with their license files.
Constructors
Section titled “Constructors”
GoogleFontsCatalogProvider(HttpClient)
Section titled “GoogleFontsCatalogProvider(HttpClient)”public GoogleFontsCatalogProvider(HttpClient client = null)Creates a Google Fonts provider with an optional HTTP client for repository and family-metadata requests.
Parameters
| Name | Type |
|---|---|
client |
System.Net.Http.HttpClient |
Methods
Section titled “Methods”
FetchAsync(RemoteCatalogRequest, CancellationToken)
Section titled “FetchAsync(RemoteCatalogRequest, CancellationToken)”public override Task<RemoteCatalogPage> FetchAsync(RemoteCatalogRequest request, CancellationToken cancellationToken)Returns a filtered page of font families from a repository snapshot, including available names, designers, categories and variable-axis metadata.
Parameters
| Name | Type |
|---|---|
request |
AssetInventory.RemoteCatalogRequest |
cancellationToken |
System.Threading.CancellationToken |
Returns
System.Threading.Tasks.Task{AssetInventory.RemoteCatalogPage}
GetVariantsAsync(string, RemoteCatalogRequest, CancellationToken)
Section titled “GetVariantsAsync(string, RemoteCatalogRequest, CancellationToken)”public override Task<IReadOnlyList<RemoteDownloadVariant>> GetVariantsAsync(string itemId, RemoteCatalogRequest request, CancellationToken cancellationToken)Resolves family font variants at the requested repository revision, placing the regular style first and including the required license file.
Parameters
| Name | Type |
|---|---|
itemId |
System.String |
request |
AssetInventory.RemoteCatalogRequest |
cancellationToken |
System.Threading.CancellationToken |
Returns
System.Threading.Tasks.Task{System.Collections.Generic.IReadOnlyList{AssetInventory.RemoteDownloadVariant}}
Properties
Section titled “Properties”
public override string Id { get; }Returns
System.String