Aspose.Font.Convert 24.4.0

dotnet tool install --global Aspose.Font.Convert --version 24.4.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Aspose.Font.Convert --version 24.4.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Aspose.Font.Convert&version=24.4.0
nuke :add-package Aspose.Font.Convert --version 24.4.0

Aspose.Font Micro Apps

Aspose.Font Micro Applications provide high-level APIs for font conversion, enabling easy integration into .NET applications and facilitating various font processing scenarios.

Learn more about Aspose.Font .NET API.

Aspose.Font Convert Micro Application

This micro application facilitates the conversion of fonts between different formats, including TTF, WOFF, and more, to any desired font format.

Key Features
  • Supported Input Formats: TTF, WOFF, WOFF2, EOT, Type1 (PFA, PFB), CFF.
  • Supported Output Formats: TTF, WOFF, WOFF2, SVG.
  • Can be used both via command line and programmatically in your C# code, compatible with .NET 6.0/7.0.
Licensing

While the Aspose.Font Convert application is freely available, Aspose.Font .NET requires a valid license for use beyond trial limitations. You can apply your existing license or evaluate the application under the trial mode of Aspose.Font .NET.

System Requirements
  • Requires .NET 6.0/7.0 on Windows, Linux, or MacOS.
  • Aspose.Font Convert application installed.
Installation

The Aspose.Font Convert application can be installed either globally or locally, depending on your project's needs. It is recommended to use the local installation for project-specific use to avoid version conflicts.

Global Installation:

To install Aspose.Font Convert globally on your machine, use the following command:

dotnet tool install --global Aspose.Font.Convert

Specify the --version option if you need a specific version of the tool.

Local Installation:

For local installation within a specific project, first, navigate to your project's root directory. Then, execute the following commands:

  1. Create a tool-manifest if not already present:
dotnet new tool-manifest
  1. Install Aspose.Font Convert locally:
dotnet tool install Aspose.Font.Convert --local

Again, you can specify the --version option for a specific version.

Updating the Tool:

To update the Aspose.Font Convert tool to the latest version, use the dotnet tool update command with either --global or --local, matching your installation type.

Uninstalling the Tool:

If you need to uninstall the tool, use the dotnet tool uninstall command with either --global or --local, depending on how the tool was installed.

Usage

Command Line:

Convert your fonts using command-line arguments. Here are the available parameters:

  • -i, --input [Required]: Path to the input font file.
    • Example: --input "path/to/font.ttf"
  • -o, --output [Required]: Path where the converted font will be saved.
    • Example: --output "path/to/output/font.woff2"
  • -f, --format [Optional]: Desired output font format. Supported formats include TTF, OTF, WOFF, WOFF2, and more, as per Aspose.Font supported font formats.
    • Example: --format "woff2"
  • -l, --license [Optional]: Path to your Aspose.Font .NET license file. This parameter is optional and only necessary if you have a license to apply.
    • Example: --license "path_to_license.lic
  • -v, --verbose [Optional]: Enable verbose output for detailed operation logging.
    • Example: --verbose

Example command-line usage:

Aspose.Font.Convert --input input.ttf --output output.woff2 --format woff2

Use from code:

using Aspose.Font.Convert;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        // Initialize font convert options
        var options = new ConvertOptions
        {
            // Required: Specify the input font file path
            InputPath = "input.ttf",
            
            // Required: Specify the output font file path
            OutputPath = "output.woff2",
            
            // Optional: Specify the output font format
            ToFormat = "woff2"
        };

        // Conditional: Apply license if you have one
        if (isLicensed)
        {
            options.LicenseFile = "path_to_license.lic";
        }

        // Execute the font conversion task
        await ConvertTasks.Create(options).Execute();
    }
}

Documentation and Support

Comprehensive documentation is available on the Aspose.Font Documentation page. For questions, support, or feedback, please visit Aspose Forums.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
24.4.0 121 4/5/2024