The following example detects and loads custom fonts used within a report. The application obtains a list of all fonts used in the report and loads them from the Google Fonts resource, when available. Loaded fonts are added to the DXFontRepository automatically and made available without additional installation requirements.
Note
Google Fonts are open-source, but be sure to read the associated license agreement to determine usage rights for your particular use case.
You can run the app on supported Windows platforms, Windows Subsystem for Linux or Docker. Select a platform from the debug drop-down in the toolbar, and start debugging the app.
Run the application from the dotnet CLI on Windows, Linux and MacOS with the dotnet run command. To run the Docker container from the command line, build the Docker image. You should pass the DevExpress NuGet source URL as a secret to restore NuGet packages.
set DX_NUGET=https://nuget.devexpress.com/some-nuget-token/api
docker build -t reporting-app --secret id=dxnuget,env=DX_NUGET .
docker run -p 8080:80 reporting-app:latest
export DX_NUGET=https://nuget.devexpress.com/some-nuget-token/api
DOCKER_BUILDKIT=1 docker build -t reporting-app --secret id=dxnuget,env=DX_NUGET .
docker run -p 8080:80 reporting-app:latest
The application page is available at the following URL: http://localhost:8080/.
(you will be redirected to DevExpress.com to submit your response)